Usuniecie zbednych funkcji

This commit is contained in:
Tomasz Boruc 2025-10-30 18:42:11 +01:00
parent 4fb3cd0edf
commit b8925701e6

View File

@ -7,7 +7,7 @@ func _ready():
if GameData.game_lunched == false:
_generate_galaxy(Settings.NUMBER_OF_SYSTEMS) # 5 gwiazd testowo
GameData.game_lunched = true
print_all_stars_and_planets()
func _generate_galaxy(count: int):
@ -37,18 +37,7 @@ func _generate_galaxy(count: int):
star.add_child(planet) # Planeta należy do gwiazdy!
star.planets.append(planet)
func print_all_stars_and_planets():
print("--- Lista gwiazd i planet ---")
for star in get_children():
if star is Star:
print("Gwiazda: ", star.star_name)
if star.planets.size() == 0:
print(" (Brak planet)")
else:
for planet in star.planets:
print("Planeta: ", planet.pname, " | Surowiec: ", planet.resource_type)
print("--- Koniec listy ---")