diff options
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r-- | Archipelago/load.gd | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 7f86c91..59d2ac2 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
@@ -91,9 +91,21 @@ func _load(): | |||
91 | 91 | ||
92 | wanderer_achieve.translation = Vector3(-51, -33, 35) # way under the map | 92 | wanderer_achieve.translation = Vector3(-51, -33, 35) # way under the map |
93 | 93 | ||
94 | # Turn THE COLORFUL into a cdp. | ||
95 | var real_colorful = panels_parent.get_node("Countdown Panels/Panel_colorful_colorful") | ||
96 | var cdp_auto_scene = load("res://nodes/panel_countdown_auto.tscn") | ||
97 | var colorful_cdp = cdp_auto_scene.instance() | ||
98 | colorful_cdp.name = "CountdownPanel_colorful" | ||
99 | colorful_cdp.replace_with = "../../Panels/Countdown Panels/Panel_colorful_colorful" | ||
100 | colorful_cdp.panels = "../../Panels/Doorways Room" | ||
101 | colorful_cdp.translation = real_colorful.translation | ||
102 | colorful_cdp.rotation = real_colorful.rotation | ||
103 | get_node("CountdownPanels").add_child(colorful_cdp) | ||
104 | real_colorful.translation = Vector3(-51, -35, 35) # way under the map | ||
105 | get_node("Doors/Doorway Room Doors/Door_gray2").queue_free() | ||
106 | |||
94 | # Set up The Master to be variable. | 107 | # Set up The Master to be variable. |
95 | var old_master_cdp = get_node("CountdownPanels/CountdownPanel_countdown_16") | 108 | var old_master_cdp = get_node("CountdownPanels/CountdownPanel_countdown_16") |
96 | var cdp_auto_scene = load("res://nodes/panel_countdown_auto.tscn") | ||
97 | var new_master_cdp = cdp_auto_scene.instance() | 109 | var new_master_cdp = cdp_auto_scene.instance() |
98 | new_master_cdp.name = "AP_variable_master" | 110 | new_master_cdp.name = "AP_variable_master" |
99 | new_master_cdp.replace_with = old_master_cdp.replace_with | 111 | new_master_cdp.replace_with = old_master_cdp.replace_with |
@@ -565,6 +577,15 @@ func _load(): | |||
565 | global._print("Hooked Load End") | 577 | global._print("Hooked Load End") |
566 | ._load() | 578 | ._load() |
567 | 579 | ||
580 | # Activate any cached traps. | ||
581 | if apclient._cached_slowness > 0: | ||
582 | effects.trigger_slowness_trap(apclient._cached_slowness) | ||
583 | if apclient._cached_iceland > 0: | ||
584 | effects.trigger_iceland_trap(apclient._cached_iceland) | ||
585 | if apclient._cached_atbash > 0: | ||
586 | for _i in range(0, apclient._cached_atbash): | ||
587 | effects.trigger_atbash_trap() | ||
588 | |||
568 | # Process any items received while the map was loading, and send the checks | 589 | # Process any items received while the map was loading, and send the checks |
569 | # from the save load. | 590 | # from the save load. |
570 | apclient.mapFinishedLoading() | 591 | apclient.mapFinishedLoading() |