refactor(packages): 0.R5 - the shop's week is rolled by its tick and asking reads it; needs start filled and vehicles start with their list; character, physics, vehicles and nativeecho's lazy starts are defaults; --tighten over all four
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
67d8079c47
commit
87259f989d
31 changed files with 104 additions and 111 deletions
|
|
@ -5,7 +5,7 @@ function needs_tick(needs_st: mut NeedsState, t: Tick) -> void {
|
|||
needs_watch(needs_st, t.dt)
|
||||
}
|
||||
|
||||
export function needs_save(needs_st: mut NeedsState) -> Val {
|
||||
export function needs_save(needs_st: NeedsState) -> Val {
|
||||
let v = Value.object()
|
||||
sv_put_float(v, "warmth", needs_warmth(needs_st))
|
||||
sv_put_float(v, "food", needs_food(needs_st))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue