summaryrefslogtreecommitdiff
path: root/scripts/game_data.gd
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-29 17:54:38 -0400
committerbd <bdunahu@operationnull.com>2025-05-29 17:54:38 -0400
commitc121b6fcd2286d4b7d3f905d1e34fb6547f915a4 (patch)
tree4438ea108a949cd5c79df50c9f86d7800ca14775 /scripts/game_data.gd
parent85d7a4817421e6a6fc254c9d9676f7d0c6253c18 (diff)
Rework some sound effects
Diffstat (limited to 'scripts/game_data.gd')
-rw-r--r--scripts/game_data.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/game_data.gd b/scripts/game_data.gd
index d050e25..cc20c13 100644
--- a/scripts/game_data.gd
+++ b/scripts/game_data.gd
@@ -41,7 +41,7 @@ func subtract_morale(amount: int):
emit_signal("morale_changed")
if (_morale < 1):
get_tree().change_scene_to_file("res://scenes/game_over.tscn")
- else:
+ elif (_morale == 1):
_play_sound(morale_down)
func get_is_spawning() -> bool: