ludic.compass, inventory, shop, base, things: the compass's lists are state defaults and push through kept_push; the pack clears in place; setup, bind and load paths say so in @alloc_ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
cd71da9330
commit
bdfe3f18fe
13 changed files with 26 additions and 12 deletions
|
|
@ -23,6 +23,7 @@ export state InventoryState {
|
|||
}
|
||||
|
||||
# the kinds, by the name each is saved under; the pack starts empty
|
||||
@alloc_ok("once: the pack's kinds are bound at start")
|
||||
export function inv_config(inventory_st: mut InventoryState, keys: []string) -> void {
|
||||
inventory_st.iv_keys = keys
|
||||
if len(inventory_st.iv_pool) == 0 { for i in 0 .. IV_POOL { push(inventory_st.iv_pool, new ItemChanged) } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue