Keep battlefield observation prompt visible

This commit is contained in:
2026-06-20 23:03:39 +09:00
parent 4d89c03948
commit 9621eba866
2 changed files with 17 additions and 6 deletions

View File

@@ -5664,9 +5664,16 @@ func _check_terrain_and_unit_presentation(failures: Array[String]) -> void:
if scene.state.get_event_marker_kind(Vector2i(4, 6)) != "tactic":
failures.append("tactical lure marker should expose tactic kind")
scene.hover_cell = Vector2i(-1, -1)
scene.battle_started = true
scene._update_cell_info()
if scene.cell_info_panel != null and scene.cell_info_panel.visible:
failures.append("cell info panel should hide when the cursor is outside the board")
if scene.cell_info_panel == null or not scene.cell_info_panel.visible:
failures.append("cell info panel should keep a compact observation prompt during active battle")
elif scene.cell_info_label == null or scene.cell_info_label.text != "전장 칸 관측 대기":
failures.append("idle cell info prompt should explain battlefield observation: %s" % ("" if scene.cell_info_label == null else scene.cell_info_label.text))
elif not scene.cell_info_label.tooltip_text.contains("지형") or not scene.cell_info_label.tooltip_text.contains("부대"):
failures.append("idle cell info prompt should keep detail in tooltip: %s" % scene.cell_info_label.tooltip_text)
elif scene.cell_info_icon == null or str(scene.cell_info_icon.get_meta("icon_kind", "")) != "terrain":
failures.append("idle cell info prompt should use terrain observation icon")
scene.state.select_unit("cao_cao")
var forecast_enemy: Dictionary = scene.state.get_unit("yellow_turban_1")
forecast_enemy["pos"] = Vector2i(1, 5)