Make shield vessels unarmed hexagons

This commit is contained in:
Loïc Wisniewski 2026-08-14 22:46:30 +02:00
commit 18a7d44db4
3 changed files with 20 additions and 5 deletions

View file

@ -37,6 +37,10 @@ func _process(delta: float) -> bool:
return _fail("%s metadata did not come from its definition" % definition.definition_id)
if ships[0].has_capability("shield") or not ships[1].has_capability("shield"):
return _fail("shield behavior is not controlled by component presence")
if (ships[1].has_capability("weapon")
or definitions[1].hull_points.size() != 6
or definitions[1].icon != IconButton.Icon.SHIELD_VESSEL):
return _fail("shield vessel is not an unarmed hexagon")
if ships[2].has_capability("weapon") or not ships[2].has_capability("transport"):
return _fail("transporter capabilities were composed incorrectly")
print("TEST_VESSEL_COMPOSITION: PASS")