about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Archipelago/load.gd24
-rw-r--r--data/LL1.yaml12
2 files changed, 30 insertions, 6 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
diff --git a/data/LL1.yaml b/data/LL1.yaml index d7fcb36..ab5a312 100644 --- a/data/LL1.yaml +++ b/data/LL1.yaml
@@ -1,22 +1,22 @@
1--- 1---
2- id: Entry Room/Panel_hi_hi 2- id: Entry Room/Panel_hi_hi
3 color: white 3 color: white
4 tag: midwhite 4 tag: forbid
5- id: Entry Room/Panel_type_type 5- id: Entry Room/Panel_type_type
6 color: white 6 color: white
7 tag: midwhite 7 tag: forbid
8- id: Entry Room/Panel_this_this 8- id: Entry Room/Panel_this_this
9 color: white 9 color: white
10 tag: midwhite 10 tag: forbid
11- id: Entry Room/Panel_write_write 11- id: Entry Room/Panel_write_write
12 color: white 12 color: white
13 tag: midwhite 13 tag: forbid
14- id: Entry Room/Panel_same_same 14- id: Entry Room/Panel_same_same
15 color: white 15 color: white
16 tag: midwhite 16 tag: forbid
17- id: Entry Room/Panel_hidden_hidden 17- id: Entry Room/Panel_hidden_hidden
18 color: white 18 color: white
19 tag: midwhite 19 tag: forbid
20- id: Entry Room/Panel_hi_high 20- id: Entry Room/Panel_hi_high
21 color: white 21 color: white
22 tag: topwhite 22 tag: topwhite