about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/load.gd24
1 files changed, 24 insertions, 0 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 3c6b31c..af1f6b5 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -18,6 +18,20 @@ 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
21 # This is the best time to create the location nodes, since the map is now 35 # This is the best time to create the location nodes, since the map is now
22 # loaded but the panels haven't been solved from the save file yet. 36 # loaded but the panels haven't been solved from the save file yet.
23 var panels_parent = self.get_node("Panels") 37 var panels_parent = self.get_node("Panels")
@@ -178,6 +192,16 @@ func sort_by_link(a, b):
178 return a["link"] < b["link"] 192 return a["link"] < b["link"]
179 193
180 194
195func set_static_panel(name, question, answer = ""):
196 if answer == "":
197 answer = question
198
199 var node = self.get_node("Panels").get_node(name)
200
201 node.text = question
202 node.answer = answer
203
204
181func instantiate_painting(name, scene): 205func instantiate_painting(name, scene):
182 var apclient = global.get_node("Archipelago") 206 var apclient = global.get_node("Archipelago")
183 207