about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd12
1 files changed, 11 insertions, 1 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 9568f69..052aa84 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -267,12 +267,22 @@ func _load():
267 painting_node.move_to_z = painting_node.translation.z 267 painting_node.move_to_z = painting_node.translation.z
268 painting_node.translation.x = 88 268 painting_node.translation.x = 88
269 painting_node.translation.z = 39 269 painting_node.translation.z = 39
270 270
271 var fearless_door = get_node("Doors/Naps Room Doors/Door_hider_5").duplicate() 271 var fearless_door = get_node("Doors/Naps Room Doors/Door_hider_5").duplicate()
272 fearless_door.name = "Door_hider_new1" 272 fearless_door.name = "Door_hider_new1"
273 fearless_door.translation.y = 5 273 fearless_door.translation.y = 5
274 get_node("Doors/Naps Room Doors").add_child(fearless_door) 274 get_node("Doors/Naps Room Doors").add_child(fearless_door)
275 275
276 # Set up notifiers for each achievement panel, for the tracker.
277 var notifier_script = ResourceLoader.load("user://maps/Archipelago/notifier.gd")
278 for panel in gamedata.panels:
279 if "achievement" in panel:
280 var panel_node = panels_parent.get_node(panel["id"])
281 var script_instance = notifier_script.new()
282 script_instance.name = "Achievement_Notifier"
283 script_instance.key = "Achievement|%s" % panel["achievement"]
284 panel_node.add_child(script_instance)
285
276 # Attach a script to every panel so that we can do things like conditionally 286 # Attach a script to every panel so that we can do things like conditionally
277 # disable them. 287 # disable them.
278 var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd") 288 var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd")