Make shield vessels unarmed hexagons
This commit is contained in:
parent
3fc04f816a
commit
18a7d44db4
3 changed files with 20 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue