diff options
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r-- | Archipelago/load.gd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index ea8eb5f..e3ae24e 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
@@ -22,10 +22,9 @@ func _load(): | |||
22 | # loaded but the panels haven't been solved from the save file yet. | 22 | # loaded but the panels haven't been solved from the save file yet. |
23 | var panels_parent = self.get_node("Panels") | 23 | var panels_parent = self.get_node("Panels") |
24 | var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") | 24 | var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") |
25 | for location_name in apclient._location_name_to_id: | 25 | for location_id in apclient._panel_ids_by_location.keys(): |
26 | var location = location_script.new() | 26 | var location = location_script.new() |
27 | location.ap_name = location_name | 27 | location.ap_id = int(location_id) |
28 | location.ap_id = apclient._location_name_to_id[location_name] | ||
29 | location.name = "AP_location_" + location.ap_id | 28 | location.name = "AP_location_" + location.ap_id |
30 | self.add_child(location) | 29 | self.add_child(location) |
31 | 30 | ||