spaceship/GasCargoCounter.gd

10 lines
315 B
GDScript3
Raw Normal View History

extends "res://GasCounter.gd"
# Fleet-side companion to GasCounter. It keeps the gas bubble glyph instead
# of recolouring ore, and occupies the same row as banked gas in the HUD.
func _process(_delta: float) -> void:
visible = GameState.fleet_gas_cargo > 0
if visible:
set_amount(GameState.fleet_gas_cargo)