feat: surface inspected villager's open village need in field notes

This commit is contained in:
Rijad Zuzo
2026-08-10 23:36:47 +02:00
parent 8a7e6b12eb
commit 9ed985d6a3
5 changed files with 154 additions and 3 deletions
+6
View File
@@ -13,6 +13,7 @@ const EXIT_OFFSET := 4.0
@onready var activity_label: Label = $Copy/Activity
@onready var target_label: Label = $Copy/Target
@onready var carrying_label: Label = $Copy/Carrying
@onready var need_label: Label = $Copy/Need
@onready var reason_label: Label = $Copy/Reason
var copy_resting_position: Vector2
@@ -63,6 +64,11 @@ func _present(context: VillagerInspectionResult, animate: bool) -> void:
activity_label.text = context.activity_text()
target_label.text = "Target · %s" % context.target_name
carrying_label.text = "Carrying · %s" % context.carrying_text()
if context.has_open_need:
need_label.text = "Need · %s\n%s" % [context.need_progress, context.need_response]
need_label.visible = true
else:
need_label.visible = false
reason_label.text = "Why · %s" % context.decision_reason
visible = true
accent.pivot_offset = accent.size * 0.5