ludic.wildlife, ludic.npc (18.3): a crowd walker carries its walker's id (set_crowd(a, id), -1 off)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
24c16ebee4
commit
9ec1b3a9bf
6 changed files with 13 additions and 5 deletions
|
|
@ -23,8 +23,11 @@ function wl_crowd_step(a: WildAnimal) -> bool {
|
|||
return true
|
||||
}
|
||||
|
||||
# walked by a crowd, or by its own step again (off, it keeps where the crowd left it)
|
||||
export function wildlife_set_crowd(a: WildAnimal, on: bool) -> void { a.crowd = on }
|
||||
# walked by a crowd as its walker `id`, or by its own step again with -1 (it keeps where it was left)
|
||||
export function wildlife_set_crowd(a: WildAnimal, id: int) -> void {
|
||||
a.crowd_id = id
|
||||
a.crowd = id >= 0
|
||||
}
|
||||
|
||||
# where the crowd put a walker, and how fast it went: its place, its heading from its velocity, its
|
||||
# ground from the world's, and its prints as it goes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue