Add transfer amounts and active gas vents

This commit is contained in:
Loïc Wisniewski 2026-08-14 13:44:10 +02:00
commit e4df9bc41a
8 changed files with 147 additions and 12 deletions

View file

@ -33,6 +33,23 @@ func _process(delta: float) -> bool:
if nearby_position.length() > WorldGen.CHUNK_SIZE * 2.0:
return _fail("nearby gas giant spawned too far away: %s" % nearby_position)
# Gas surfaces have vents only: no deferred ore pickups, and the vent
# emission advances continuously so the source visibly looks active.
game_state.planet_name = "Gas Test"
game_state.planet_type = "gas_giant"
var surface: Node = load("res://PlanetSurface.tscn").instantiate()
root.add_child(surface)
var rock_field: Node = surface.get_node("RockField")
var gas_field: Node = surface.get_node("GasVentField")
if not rock_field.rocks.is_empty() or rock_field.is_processing():
surface.free()
return _fail("gas surface spawned or continued processing ore rocks")
gas_field._process(0.5)
if gas_field.emission_phase <= 0.0:
surface.free()
return _fail("gas-source emission animation did not advance")
surface.free()
var found_giant: bool = false
for x in range(-12, 13):
for y in range(-12, 13):