Add planet scanner and octopus biome
This commit is contained in:
parent
2ecd61de98
commit
8fbcc340ce
21 changed files with 784 additions and 30 deletions
|
|
@ -21,10 +21,16 @@ func _initialize() -> void:
|
|||
])
|
||||
return
|
||||
var provider: Node = building.visual.get_node_or_null("ActionProvider")
|
||||
if definition.definition_id == GameState.BUILDING_TRANSPORT_HUB:
|
||||
if "transport_hub" in definition.capabilities:
|
||||
if provider != null or not building.available_actions().is_empty():
|
||||
_fail("transport hub composed a manual action")
|
||||
return
|
||||
elif "planet_scanner" in definition.capabilities:
|
||||
if provider == null or not provider.actions.has("scanner") \
|
||||
or provider.actions.has("transfer"):
|
||||
_fail("%s did not compose its scanner-only action" \
|
||||
% definition.definition_id)
|
||||
return
|
||||
elif provider == null or not provider.actions.has("transfer"):
|
||||
_fail("%s has no composed transfer action" % definition.definition_id)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue