feat: let trusted villagers ask the player directly as standing grows

This commit is contained in:
2026-08-08 20:35:07 +02:00
parent 6cdeea6e46
commit 3b6e35ba6d
5 changed files with 122 additions and 24 deletions
+7
View File
@@ -34,6 +34,8 @@ func _ready() -> void:
simulation_manager.player_quest_expired.connect(_on_quest_expired)
if simulation_manager.has_signal("player_standing_changed"):
simulation_manager.player_standing_changed.connect(_on_standing_changed)
if simulation_manager.has_signal("player_tier_advanced"):
simulation_manager.player_tier_advanced.connect(_on_tier_advanced)
if simulation_manager.has_signal("opportunity_resolved"):
simulation_manager.opportunity_resolved.connect(_on_opportunity_resolved)
if simulation_manager.has_signal("state_restored"):
@@ -53,6 +55,11 @@ func _on_standing_changed(_standing: PlayerStandingRecord) -> void:
_refresh()
func _on_tier_advanced(_tier: int, tier_name: String) -> void:
_refresh()
_show_thanks("Standing grows", "The village now calls you a %s." % tier_name)
func _on_opportunity_resolved(
_opportunity: OpportunityStateRecord, _cause_event: EconomicEventRecord
) -> void: