ludic.wildlife (18.3): wildlife_listed - still one of this state's animals, so a crowd lets go of one a load or a clear removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 00:36:31 +03:00
parent 9ec1b3a9bf
commit 95f2087148
4 changed files with 10 additions and 3 deletions

View file

@ -43,3 +43,6 @@ export function wildlife_moved(wildlife_st: mut WildlifeState, a: WildAnimal, x:
if r >= 0 { tb_set_xz(a.tab, WA_X, WA_Z, r, x, z) }
wl_walked(wildlife_st, a, wl_sp(wildlife_st, a.sp), d)
}
# still one of this state's animals: false once cleared, reloaded or removed (a crowd lets it go)
export function wildlife_listed(wildlife_st: WildlifeState, a: WildAnimal) -> bool { return a != null and a.tab == wildlife_st.wl.tab and wl_row(a) >= 0 }