feat: add initial starvation consequence

This commit is contained in:
Rijad Zuzo
2026-06-20 18:18:00 +02:00
parent d185dcacf3
commit 852d10f7ae
4 changed files with 29 additions and 5 deletions
+7
View File
@@ -94,3 +94,10 @@ func add_safety(amount: float) -> void:
func add_knowledge(amount: float) -> void:
village.knowledge += amount
village_changed.emit(village)
func get_starving_count() -> int:
var count := 0
for npc in npcs:
if npc.is_starving:
count += 1
return count