nsmryan / RustRoguelike

This Rust Roguelike is a Roguelike written in Rust.
17 stars 3 forks source link

Armil Golems continuous investigating #463

Open MicroChasm opened 2 years ago

MicroChasm commented 2 years ago

I had a situation where two Armil golems sort of circled one another continuously in investigation mode.

action_log.txt

nsmryan commented 2 years ago

I've seen this before too. I tried to untangle why this happens.

My current thought is that it has to do with golems hearing each other and turning to invstigate, but then walking behind each other, causing the next golem to hear them.

I tried to fix this by having golems turn towards where they are investigating, and to notice if a golem made the sound so they don't need to investigate, but in this case the golem can't yet see the golem that made the sound.

I wonder if there is something we could do with short investigations- I'm not sure why the golem even bothers to move given that the location they must be investigating should be 1 tile away.