A few minor bug fixes with area expansion.

This commit is contained in:
Storm Dragon
2026-01-17 23:44:10 -05:00
parent ff9aa00590
commit 764eab45e4
7 changed files with 109 additions and 166 deletions

View File

@@ -609,9 +609,7 @@ bool damage_zombie_at(int pos, int damage) {
if (zombies[i].health <= 0) {
play_1d_with_volume_step("sounds/enemies/enemy_falls.ogg", x, pos, false, ZOMBIE_SOUND_VOLUME_STEP);
zombies.remove_at(i);
screen_reader_speak("Zombie killed.", true);
} else {
screen_reader_speak("Hit zombie.", true);
}
return true;
}
@@ -814,9 +812,7 @@ bool damage_bandit_at(int pos, int damage) {
if (bandits[i].health <= 0) {
play_1d_with_volume_step("sounds/enemies/enemy_falls.ogg", x, pos, false, BANDIT_SOUND_VOLUME_STEP);
bandits.remove_at(i);
screen_reader_speak("Bandit killed.", true);
} else {
screen_reader_speak("Hit bandit.", true);
}
return true;
}
@@ -842,4 +838,3 @@ WorldStream@ get_stream_at(int pos) {
bool is_position_in_water(int pos) {
return get_stream_at(pos) != null;
}