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

@ -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: