From 87128e274733aea20ab90b84e43962a24a5cad84 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 23 Apr 2023 23:48:14 -0400 Subject: Fix THE END location The THE END location did not function properly before. Because THE END is not in Panels (it's in Decorations), node lookup did not work right before and the THE END location ended up using the panel from the previous location, which was ENTER (fifth floor orange). This fixes that lookup so that the location works correctly. --- Archipelago/load.gd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Archipelago') diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 80f7d06..ea8eb5f 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd @@ -33,7 +33,12 @@ func _load(): location.total = panels.size() for panel in panels: - var that_panel = panels_parent.get_node(panel) + var that_panel + if panel.begins_with("EndPanel"): + that_panel = self.get_node("Decorations").get_node(panel) + else: + that_panel = panels_parent.get_node(panel) + that_panel.get_node("Viewport/GUI/Panel/TextEdit").connect( "answer_correct", location, "handle_correct" ) -- cgit 1.4.1