fix(ludic.npc): a name picked and a name let go build nothing - the body's names counted in place, the last eight who left in a ring made with the state

ludic deps --allocs (25.2) found npc_pick_name making a list of the body's names at every spawn and
np_left making a new list of the recent names at every retire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 15:53:27 +03:00
parent dec64e8a59
commit 58f0dbbc84
3 changed files with 31 additions and 13 deletions

View file

@ -6,7 +6,8 @@ export state NpcState {
np_wx: float = 0.0
np_wz: float = 0.0
np_clock: float = 0.0
np_recent: []string = new []string # the last few names that left
np_recent: []string = np_recent_new() # the last few names that left, a ring
np_rnext: int = 0
np_walkers: []NpcPerson = new []NpcPerson
np_posts: []NpcPerson = new []NpcPerson
np_max: int = 10 # walkers at most