fix(ludic.wildlife): a newcomer takes the record of one of its species removed for good - its row, its key and so the game's drawing, every other field as new
Each morning's repopulation made a new WildAnimal (and the game a new drawing, actor and skeleton, keyed by an ever-rising key) for every animal that had gone. A legend's record is never taken, nor one still in a crowd. reuse_test: a hundred removes and makes are one record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3311269b23
commit
0e2d2a6fab
5 changed files with 158 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ export const WILD_WARY: int = 13 # turned away, a step or two of distance t
|
|||
export const WILD_LAND: int = 14 # a bird gliding down to a spot
|
||||
|
||||
export property WildAnimal {
|
||||
key: int = 0 # unique for the run, never reused: the game's drawing is found by it
|
||||
key: int = 0 # unique among the living; a reused record keeps it, and the game its drawing
|
||||
nid: int = 0 # its id across machines (the port's next_id)
|
||||
sp: int = 0
|
||||
legend: bool = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue