nsmryan / RustRoguelike

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

Golem attacks over walls #407

Open MicroChasm opened 2 years ago

MicroChasm commented 2 years ago

Golems should only be able to attack the player overtop an inter-tile wall if the player is in the running or walking state. In the crouching state, the wall should block them from attacking.

nsmryan commented 2 years ago

I did a little bit of testing with the map

cargo run -- -m test_wall

Using both a pawn and a gol. This seemed to work to me.

Is this related to how the player enter the crouching state? You should be able to crouch by passing a turn in 'sneak' mode, but I don't think that this currently works.

nsmryan commented 2 years ago

Is this related to ranged vs melee attacks? Perhaps we were testing with different golems.