From 195b2765a4c413a34fdbc58ed8bbae09afab8bcb Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 21 Feb 2021 19:40:31 +0100 Subject: [PATCH] Fix a few more issues with the same classes. --- game/modules/planets/test_planet/dungeons/dungeon.gd | 4 ++-- .../planets/test_planet/planets/dung_simple_planet.gd | 7 ++----- game/modules/planets/test_planet/planets/simple_planet.gd | 7 ++----- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/game/modules/planets/test_planet/dungeons/dungeon.gd b/game/modules/planets/test_planet/dungeons/dungeon.gd index 9138244..2eaeb4c 100644 --- a/game/modules/planets/test_planet/dungeons/dungeon.gd +++ b/game/modules/planets/test_planet/dungeons/dungeon.gd @@ -22,10 +22,10 @@ extends Dungeon # SOFTWARE. func _setup(): - if data.get_dungeon_start_room_data_count() == 0: + if get_dungeon_start_room_data_count() == 0: return - var drd : DungeonRoom = data.get_dungeon_start_room_data(0) + var drd : DungeonRoom = get_dungeon_start_room_data(0) var dung : DungeonRoom if drd.target_script != null: diff --git a/game/modules/planets/test_planet/planets/dung_simple_planet.gd b/game/modules/planets/test_planet/planets/dung_simple_planet.gd index 161d864..1f089b3 100644 --- a/game/modules/planets/test_planet/planets/dung_simple_planet.gd +++ b/game/modules/planets/test_planet/planets/dung_simple_planet.gd @@ -22,13 +22,10 @@ extends Planet # SOFTWARE. func _setup(): - if data == null: + if get_biome_count() == 0: return - if data.get_biome_data_count() == 0: - return - - var bdata : Biome = data.get_biome_data(0) + var bdata : Biome = get_biome(0) var b : Biome diff --git a/game/modules/planets/test_planet/planets/simple_planet.gd b/game/modules/planets/test_planet/planets/simple_planet.gd index fe1383f..7aebc58 100644 --- a/game/modules/planets/test_planet/planets/simple_planet.gd +++ b/game/modules/planets/test_planet/planets/simple_planet.gd @@ -22,13 +22,10 @@ extends Planet # SOFTWARE. func _setup(): - if data == null: + if get_biome_count() == 0: return - if data.get_biome_data_count() == 0: - return - - var bdata : Biome = data.get_biome_data(0) + var bdata : Biome = get_biome(0) var b : Biome