feat: add consequence with modifiers for properties

This commit is contained in:
Rijad Zuzo
2026-06-20 17:12:10 +02:00
parent 4fb1cfabc1
commit d185dcacf3
3 changed files with 51 additions and 8 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func _init(
position = Vector3(randf_range(-8.0, 8.0), 0.0, randf_range(-8.0, 8.0))
func simulate_tick(village: SimVillage) -> void:
hunger += 5.0
hunger += 5.0 * village.food_modifier
energy -= 2.0
hunger = clamp(hunger, 0.0, 100.0)