about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-19 09:30:42 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-19 09:30:42 -0400
commit5406ebc4486340bb5d158ffa864bf2e60ffb410d (patch)
tree41984bafd02443bf357e453dc571ac3f9c4ff249 /Archipelago/load.gd
parent0a62e8ba6b78de0f316c5a860649972037428591 (diff)
downloadlingo-archipelago-5406ebc4486340bb5d158ffa864bf2e60ffb410d.tar.gz
lingo-archipelago-5406ebc4486340bb5d158ffa864bf2e60ffb410d.tar.bz2
lingo-archipelago-5406ebc4486340bb5d158ffa864bf2e60ffb410d.zip
Set some more static panels
Also added the entry room panels back into the pool so that their values can still show up on other panels in panel shuffle mode.
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd33
1 files changed, 19 insertions, 14 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index af1f6b5..c720f45 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -18,20 +18,6 @@ func _load():
18 if "answer" in node: 18 if "answer" in node:
19 node.answer = apclient.ap_user 19 node.answer = apclient.ap_user
20 20
21 # Handle our other static panels.
22 set_static_panel("Entry Room/Panel_write_write", "seed")
23 set_static_panel("Entry Room/Panel_same_same", str(apclient._slot_seed))
24 set_static_panel("Entry Room/Panel_type_type", "victory")
25
26 var victory_condition = "unknown"
27 if apclient._victory_condition == apclient.kTHE_END:
28 victory_condition = "the end"
29 elif apclient._victory_condition == apclient.kTHE_MASTER:
30 victory_condition = "the master"
31
32 set_static_panel("Entry Room/Panel_this_this", victory_condition)
33 set_static_panel("Entry Room/Panel_hidden_hidden", "hewwo")
34
35 # This is the best time to create the location nodes, since the map is now 21 # This is the best time to create the location nodes, since the map is now
36 # 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.
37 var panels_parent = self.get_node("Panels") 23 var panels_parent = self.get_node("Panels")
@@ -104,6 +90,25 @@ func _load():
104 target_panel_node.text = source["hint"] 90 target_panel_node.text = source["hint"]
105 target_panel_node.answer = source["answer"] 91 target_panel_node.answer = source["answer"]
106 92
93 # Handle our other static panels after panel randomization, so that the old
94 # values can enter the pool, if necessary.
95 set_static_panel("Entry Room/Panel_hi_hi", "hi")
96 set_static_panel("Entry Room/Panel_write_write", "seed")
97 set_static_panel("Entry Room/Panel_same_same", str(apclient._slot_seed))
98 set_static_panel("Entry Room/Panel_type_type", "victory")
99
100 var victory_condition = "unknown"
101 if apclient._victory_condition == apclient.kTHE_END:
102 victory_condition = "the end"
103 elif apclient._victory_condition == apclient.kTHE_MASTER:
104 victory_condition = "the master"
105
106 set_static_panel("Entry Room/Panel_this_this", victory_condition)
107 set_static_panel("Entry Room/Panel_hidden_hidden", "hewwo")
108 set_static_panel("Entry Room/Panel_hi_high", "goode", "good")
109 set_static_panel("Entry Room/Panel_low_low", "serendipity", "luck")
110 set_static_panel("Shuffle Room/Panel_secret_secret", "trans rights", "human rights")
111
107 # Randomize the paintings, if necessary. 112 # Randomize the paintings, if necessary.
108 if apclient._painting_shuffle: 113 if apclient._painting_shuffle:
109 var pd_script = ResourceLoader.load("user://maps/Archipelago/paintingdata.gd") 114 var pd_script = ResourceLoader.load("user://maps/Archipelago/paintingdata.gd")