Key extractors by stable planet identity

This commit is contained in:
Loïc Wisniewski 2026-08-14 22:16:40 +02:00
commit e2d4297ee5
11 changed files with 71 additions and 16 deletions

View file

@ -135,7 +135,7 @@ func _process(delta: float) -> bool:
return true
controller._confirm_build()
var built: bool = game_state.has_extractor_at(planet2.planet_name)
var built: bool = game_state.has_extractor_at(planet2.planet_id)
var charged: bool = game_state.rocks == rocks_before - GameState.EXTRACTOR_COST
print("over planet '%s': enabled=%s built=%s rocks %d->%d charged=%s" % [
planet2.planet_name, button.enabled, built, rocks_before, game_state.rocks, charged