feat(ludic.inventory, ludic.wallet): the pack and the purse as mechanic packages
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>
This commit is contained in:
parent
6cfaaf0bf9
commit
8075892e0e
12 changed files with 445 additions and 0 deletions
6
packages/ludic.wallet/index.ludic
Normal file
6
packages/ludic.wallet/index.ludic
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ludic.wallet - one purse of whole money: verbs to earn, spend (only what is there) and lose (a
|
||||
# cost that happens anyway), a MoneyChanged fact per change, and its own save section
|
||||
module ludic_wallet
|
||||
numbers float
|
||||
import "ludic.base"
|
||||
import "wallet.ludic"
|
||||
Loading…
Add table
Add a link
Reference in a new issue