feat: regrow finite berry sources toward their authored cap
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user