diff options
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r-- | Archipelago/load.gd | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index b6d0fba..8360185 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
@@ -41,7 +41,7 @@ func _load(): | |||
41 | set_gridmap_tile(-3.5, 6.5, 57.5, "MeshInstance5") | 41 | set_gridmap_tile(-3.5, 6.5, 57.5, "MeshInstance5") |
42 | 42 | ||
43 | var door_scene = load("res://nodes/door.tscn") | 43 | var door_scene = load("res://nodes/door.tscn") |
44 | var door_script = load("user://maps/Archipelago/doorControl.gd") | 44 | var door_script = apclient.SCRIPT_doorControl |
45 | var wanderer_entrance = door_scene.instance() | 45 | var wanderer_entrance = door_scene.instance() |
46 | wanderer_entrance.name = "Door_wanderer_entrance" | 46 | wanderer_entrance.name = "Door_wanderer_entrance" |
47 | wanderer_entrance.translation = Vector3(7.5, 5, 53) | 47 | wanderer_entrance.translation = Vector3(7.5, 5, 53) |
@@ -113,7 +113,7 @@ func _load(): | |||
113 | # loaded but the panels haven't been solved from the save file yet. | 113 | # loaded but the panels haven't been solved from the save file yet. |
114 | var gamedata = apclient.get_node("Gamedata") | 114 | var gamedata = apclient.get_node("Gamedata") |
115 | var panels_parent = self.get_node("Panels") | 115 | var panels_parent = self.get_node("Panels") |
116 | var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") | 116 | var location_script = apclient.SCRIPT_location |
117 | for location_id in gamedata.panel_ids_by_location_id.keys(): | 117 | for location_id in gamedata.panel_ids_by_location_id.keys(): |
118 | if not (gamedata.classification_by_location_id[location_id] & apclient._location_classification_bit): | 118 | if not (gamedata.classification_by_location_id[location_id] & apclient._location_classification_bit): |
119 | continue | 119 | continue |
@@ -296,7 +296,7 @@ func _load(): | |||
296 | 296 | ||
297 | if apclient._early_color_hallways: | 297 | if apclient._early_color_hallways: |
298 | var painting_scene = load("res://nodes/paintings/dan_L1_gate.tscn") | 298 | var painting_scene = load("res://nodes/paintings/dan_L1_gate.tscn") |
299 | var mypainting_script = ResourceLoader.load("user://maps/Archipelago/mypainting.gd") | 299 | var mypainting_script = apclient.SCRIPT_mypainting |
300 | 300 | ||
301 | var exit_painting = painting_scene.instance() | 301 | var exit_painting = painting_scene.instance() |
302 | exit_painting.set_name("color_exit_painting") | 302 | exit_painting.set_name("color_exit_painting") |
@@ -413,7 +413,7 @@ func _load(): | |||
413 | get_node("Doors/Naps Room Doors").add_child(fearless_door) | 413 | get_node("Doors/Naps Room Doors").add_child(fearless_door) |
414 | 414 | ||
415 | # Set up notifiers for each achievement panel, for the tracker. | 415 | # Set up notifiers for each achievement panel, for the tracker. |
416 | var notifier_script = ResourceLoader.load("user://maps/Archipelago/notifier.gd") | 416 | var notifier_script = apclient.SCRIPT_notifier |
417 | for panel in gamedata.panels: | 417 | for panel in gamedata.panels: |
418 | if "achievement" in panel: | 418 | if "achievement" in panel: |
419 | var panel_node = panels_parent.get_node(panel["id"]) | 419 | var panel_node = panels_parent.get_node(panel["id"]) |
@@ -431,7 +431,7 @@ func _load(): | |||
431 | 431 | ||
432 | # Attach a script to every panel so that we can do things like conditionally | 432 | # Attach a script to every panel so that we can do things like conditionally |
433 | # disable them. | 433 | # disable them. |
434 | var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd") | 434 | var panel_script = apclient.SCRIPT_panel |
435 | for panel in gamedata.panels: | 435 | for panel in gamedata.panels: |
436 | var panel_node | 436 | var panel_node |
437 | if panel["id"].begins_with("EndPanel"): | 437 | if panel["id"].begins_with("EndPanel"): |
@@ -462,7 +462,7 @@ func _load(): | |||
462 | ) | 462 | ) |
463 | 463 | ||
464 | # Create the effects node. | 464 | # Create the effects node. |
465 | var effects_script = ResourceLoader.load("user://maps/Archipelago/effects.gd") | 465 | var effects_script = apclient.SCRIPT_effects |
466 | var effects = effects_script.new() | 466 | var effects = effects_script.new() |
467 | effects.set_name("AP_Effects") | 467 | effects.set_name("AP_Effects") |
468 | self.add_child(effects) | 468 | self.add_child(effects) |
@@ -515,7 +515,7 @@ func instantiate_painting(name, scene): | |||
515 | new_painting.translation = old_painting.translation | 515 | new_painting.translation = old_painting.translation |
516 | new_painting.rotation = old_painting.rotation | 516 | new_painting.rotation = old_painting.rotation |
517 | 517 | ||
518 | var mypainting_script = ResourceLoader.load("user://maps/Archipelago/mypainting.gd") | 518 | var mypainting_script = apclient.SCRIPT_mypainting |
519 | var mps_inst = mypainting_script.new() | 519 | var mps_inst = mypainting_script.new() |
520 | mps_inst.set_name("Script") | 520 | mps_inst.set_name("Script") |
521 | 521 | ||