ludic.inventory: counts per item kind, a PackRules port (stack_limit), add what fits / take all or none / set outright, an ItemChanged queue, and a save section keyed by item NAME so a game can reorder its items with no migration. ludic.wallet: earn, spend only what is there, lose down to zero, set, a MoneyChanged queue and its own save section. Six and five test blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
312 B
Text
8 lines
312 B
Text
# ludic.inventory - one pack of counts by item kind: the game names the kinds (so the save is by
|
|
# name, never by position) and answers how many of one fit; every change is a fact on a queue
|
|
module ludic_inventory
|
|
numbers float
|
|
import "ludic.base"
|
|
import "state.ludic"
|
|
import "verbs.ludic"
|
|
import "system.ludic"
|