Compose buildings from definitions and capabilities

This commit is contained in:
Loïc Wisniewski 2026-08-14 21:44:28 +02:00
commit 0504b24d8d
46 changed files with 1091 additions and 878 deletions

View file

@ -72,9 +72,9 @@ func _process(delta: float) -> bool:
# Since #21 an unresearched structure is not listed at all, rather
# than listed and greyed. It is therefore unreachable from the
# menu - but the popup must still refuse if something calls
# _on_place_crafter() by another route.
# the generic definition entry point by another route.
var hidden: bool = not scene.get_node("UI/BuildMenu/CrafterButton").visible
controller._on_place_crafter()
controller._show_building_info(GameState.BUILDING_SHIP_CRAFTER)
var offered: bool = popup.get_node("Panel/BuildButton").visible
print("locked crafter: hidden_from_menu=%s confirm_offered=%s" % [hidden, offered])
if not hidden or offered: