Key extractors by stable planet identity
This commit is contained in:
parent
14081ad230
commit
e2d4297ee5
11 changed files with 71 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue