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
|
|
@ -31,6 +31,7 @@ export function sv_str(v: Val, key: string, fallback: string) -> string {
|
|||
}
|
||||
|
||||
# a list of ints; a missing key or a non-list is the empty list
|
||||
@alloc_ok("on load: a saved list read back")
|
||||
export function sv_ints(v: Val, key: string) -> []int {
|
||||
let out = new []int
|
||||
if not sv_has(v, key) { return out }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue