Label first battle capture objective

This commit is contained in:
2026-06-19 12:44:55 +09:00
parent 5a52ae264e
commit 6938ab2ee7
5 changed files with 76 additions and 4 deletions

View File

@@ -3524,6 +3524,13 @@ func _check_terrain_and_unit_presentation(failures: Array[String]) -> void:
failures.append("village terrain should expose Korean name and healing")
if scene.state.get_terrain_heal(Vector2i(12, 1)) != 8:
failures.append("castle terrain should expose stronger healing")
scene._create_hud()
scene.hover_cell = Vector2i(12, 1)
scene._update_cell_info()
if scene.cell_info_label == null or not scene.cell_info_label.text.contains("목표: 성채 장악") or not scene.cell_info_label.text.contains("회복 +8"):
failures.append("castle objective cell info should expose capture label and healing: %s" % scene.cell_info_label.text)
scene.cell_info_label.free()
scene.cell_info_label = null
var background_fill: Color = scene._terrain_fill_color(Vector2i(0, 0), "G", true)
var fallback_fill: Color = scene._terrain_fill_color(Vector2i(0, 0), "G", false)
if background_fill.a >= 0.20: