From 8f7ed56a6ec615f84833e32fcfd781958b06a4b2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 18 Apr 2023 20:05:32 -0400 Subject: Set up some static panels --- Archipelago/load.gd | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Archipelago') 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(): if "answer" in node: node.answer = apclient.ap_user + # Handle our other static panels. + set_static_panel("Entry Room/Panel_write_write", "seed") + set_static_panel("Entry Room/Panel_same_same", str(apclient._slot_seed)) + set_static_panel("Entry Room/Panel_type_type", "victory") + + var victory_condition = "unknown" + if apclient._victory_condition == apclient.kTHE_END: + victory_condition = "the end" + elif apclient._victory_condition == apclient.kTHE_MASTER: + victory_condition = "the master" + + set_static_panel("Entry Room/Panel_this_this", victory_condition) + set_static_panel("Entry Room/Panel_hidden_hidden", "hewwo") + # This is the best time to create the location nodes, since the map is now # loaded but the panels haven't been solved from the save file yet. var panels_parent = self.get_node("Panels") @@ -178,6 +192,16 @@ func sort_by_link(a, b): return a["link"] < b["link"] +func set_static_panel(name, question, answer = ""): + if answer == "": + answer = question + + var node = self.get_node("Panels").get_node(name) + + node.text = question + node.answer = answer + + func instantiate_painting(name, scene): var apclient = global.get_node("Archipelago") -- cgit 1.4.1