Key extractors by stable planet identity
This commit is contained in:
parent
14081ad230
commit
e2d4297ee5
11 changed files with 71 additions and 16 deletions
|
|
@ -50,7 +50,7 @@ func building_markers() -> Array:
|
|||
func chunk_has_extractor_badge(chunk: Vector2i) -> bool:
|
||||
if not WorldGen.has_planet_at_chunk(chunk):
|
||||
return false
|
||||
return GameState.has_extractor_at(WorldGen.planet_data_at_chunk(chunk).name)
|
||||
return GameState.has_extractor_at(WorldGen.planet_data_at_chunk(chunk).planet_id)
|
||||
|
||||
|
||||
func _regular_polygon(center: Vector2, radius: float, sides: int, phase: float = 0.0) -> PackedVector2Array:
|
||||
|
|
|
|||
Loading…
Reference in a new issue