feat: regrow finite berry sources toward their authored cap

This commit is contained in:
Rijad Zuzo
2026-08-11 00:40:13 +02:00
parent 82e44a9f5d
commit 549a365ab2
8 changed files with 200 additions and 1 deletions
+7
View File
@@ -171,6 +171,7 @@ func simulate_tick() -> void:
print("--- Tick ", tick_count, " ---")
animal_care.advance(tick_count)
advance_player_needs()
_advance_resource_regrowth()
var village_was_changed := false
_population_view.rebuild(npcs)
for npc in npcs:
@@ -1065,6 +1066,12 @@ func advance_player_needs() -> void:
player_system.advance_needs(village.food_modifier)
func _advance_resource_regrowth() -> void:
for resource_id in resource_states:
var resource_state := resource_states[resource_id] as ResourceStateRecord
resource_state.regrow()
func get_player_state() -> PlayerStateRecord:
return player_system.player_state