nsmryan / RustRoguelike

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

Alert State From Sounds #477

Open nsmryan opened 2 years ago

nsmryan commented 2 years ago

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.

MicroChasm commented 2 years ago

I would be fine with golems immediately moving towards sound or waiting a turn-- either way seems fine.

nsmryan commented 2 years ago

The thing is that alert mode only fixes the problem with golems immediately attacking you if they happen to be facing towards you when you first see them. Currently this will work either way- whether they saw you first or they heard you first.

Lets try this way out for a bit and see if it works.