summaryrefslogtreecommitdiff
path: root/scenes/UI/morale.gd
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-22 13:50:49 -0400
committerbd <bdunahu@operationnull.com>2025-05-22 13:50:49 -0400
commit8c5c4863aeacb4afcf70f339df6d601e2df1a7a6 (patch)
tree6c2af54a18271534864a7a1daed7814ebac5abd1 /scenes/UI/morale.gd
parent80e145ba2b85e08f895e76ba6a03bb67bc9ce9ea (diff)
Reorganized files into scenes and scripts
Diffstat (limited to 'scenes/UI/morale.gd')
-rw-r--r--scenes/UI/morale.gd11
1 files changed, 0 insertions, 11 deletions
diff --git a/scenes/UI/morale.gd b/scenes/UI/morale.gd
deleted file mode 100644
index d5a8046..0000000
--- a/scenes/UI/morale.gd
+++ /dev/null
@@ -1,11 +0,0 @@
-extends Label
-
-func _ready():
- GameData.connect("morale_changed", Callable(self, "_on_morale_changed"))
- update_label(GameData.get_morale())
-
-func _on_life_changed(new_morale: int) -> void:
- update_label(new_morale)
-
-func update_label(new_morale: int) -> void:
- text = "Morale:" + str(new_morale)