RustRoguelike
RustRoguelike copied to clipboard
Alert State From Sounds
Currently golems go directly from idle to attacking if they hear the player, go into investigating mode, turn around, see them, and then go into attacking mode.
This feels like it defeats the purpose of Alert mode, since golems can still go directly from idle to attacking you under some circumstances.
I added a way to get golems to face a sound, and then check whether they see the player. If they do, they are alert. If not, they investigate the sound position. This means that if they do not see the player, they immediately move towards the sound. We could have them wait a turn in this case as well.