Support gas cargo transfers
This commit is contained in:
parent
e9acca569e
commit
4c82155cf3
7 changed files with 91 additions and 2 deletions
|
|
@ -51,6 +51,11 @@ func _process(delta: float) -> bool:
|
|||
game_state._arrive(game_state.transporters[0])
|
||||
if game_state.gas != game_state.transporter_load_limit() or game_state.rocks != 0:
|
||||
return _fail("gas delivery banked gas=%d ore=%d" % [game_state.gas, game_state.rocks])
|
||||
var mothership_id: int = int(game_state.buildings[0].id)
|
||||
if game_state.transfer_gas_to_fleet(mothership_id, 7) != 7 or game_state.fleet_gas_cargo != 7:
|
||||
return _fail("could not load banked gas into fleet cargo")
|
||||
if game_state.transfer_gas_to_building(2, 7) != 7 or game_state.building_gas_holdings(2) != 7:
|
||||
return _fail("could not unload fleet gas into a building")
|
||||
print("gas giant animated; transporter banked %d gas without creating ore" % game_state.gas)
|
||||
print("TEST_GAS_SYSTEM: PASS")
|
||||
quit(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue