diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 12:20:16 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 12:20:16 -0400 |
commit | 46623fb9dc34c4e44859f437f752206e1889dbce (patch) | |
tree | a5d30978ce3fc0e11edb8bf25e29a64f302a0735 /Archipelago/load.gd | |
parent | dfadb2b4a436c073438c7219ba7726ac9c760c2d (diff) | |
download | lingo-archipelago-46623fb9dc34c4e44859f437f752206e1889dbce.tar.gz lingo-archipelago-46623fb9dc34c4e44859f437f752206e1889dbce.tar.bz2 lingo-archipelago-46623fb9dc34c4e44859f437f752206e1889dbce.zip |
THE MASTER requirement can now be set by the player
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r-- | Archipelago/load.gd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 56991fb..c637ccb 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd | |||
@@ -58,6 +58,19 @@ func _load(): | |||
58 | 58 | ||
59 | wanderer_achieve.translation = Vector3(-51, -33, 35) # way under the map | 59 | wanderer_achieve.translation = Vector3(-51, -33, 35) # way under the map |
60 | 60 | ||
61 | # Set up The Master to be variable. | ||
62 | var old_master_cdp = get_node("CountdownPanels/CountdownPanel_countdown_16") | ||
63 | var cdp_auto_scene = load("res://nodes/panel_countdown_auto.tscn") | ||
64 | var new_master_cdp = cdp_auto_scene.instance() | ||
65 | new_master_cdp.name = "AP_variable_master" | ||
66 | new_master_cdp.replace_with = old_master_cdp.replace_with | ||
67 | new_master_cdp.panels = "../../Panels/Countdown Panels" | ||
68 | new_master_cdp.maxlength = apclient._mastery_achievements | ||
69 | new_master_cdp.translation = old_master_cdp.translation | ||
70 | new_master_cdp.rotation = old_master_cdp.rotation | ||
71 | get_node("CountdownPanels").add_child(new_master_cdp) | ||
72 | old_master_cdp.queue_free() | ||
73 | |||
61 | # This is the best time to create the location nodes, since the map is now | 74 | # This is the best time to create the location nodes, since the map is now |
62 | # loaded but the panels haven't been solved from the save file yet. | 75 | # loaded but the panels haven't been solved from the save file yet. |
63 | var panels_parent = self.get_node("Panels") | 76 | var panels_parent = self.get_node("Panels") |