Support gas cargo transfers
This commit is contained in:
parent
e9acca569e
commit
4c82155cf3
7 changed files with 91 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ func _process(delta: float) -> void:
|
|||
if fleet.get_centroid().distance_to(vent) < 90.0:
|
||||
progress += delta
|
||||
if progress >= 1.0:
|
||||
GameState.gas += int(progress)
|
||||
GameState.collect_gas_cargo(int(progress))
|
||||
progress = fmod(progress, 1.0)
|
||||
return
|
||||
progress = 0.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue