about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-23 23:48:14 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-23 23:48:14 -0400
commit87128e274733aea20ab90b84e43962a24a5cad84 (patch)
treef73d1edc42474714e9789ef55eaace2a44f046e0
parent9a17d17635696902bc15da67b4be6d289472d9c2 (diff)
downloadlingo-archipelago-87128e274733aea20ab90b84e43962a24a5cad84.tar.gz
lingo-archipelago-87128e274733aea20ab90b84e43962a24a5cad84.tar.bz2
lingo-archipelago-87128e274733aea20ab90b84e43962a24a5cad84.zip
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.
-rw-r--r--Archipelago/load.gd7
1 files changed, 6 insertions, 1 deletions
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():
33 location.total = panels.size() 33 location.total = panels.size()
34 34
35 for panel in panels: 35 for panel in panels:
36 var that_panel = panels_parent.get_node(panel) 36 var that_panel
37 if panel.begins_with("EndPanel"):
38 that_panel = self.get_node("Decorations").get_node(panel)
39 else:
40 that_panel = panels_parent.get_node(panel)
41
37 that_panel.get_node("Viewport/GUI/Panel/TextEdit").connect( 42 that_panel.get_node("Viewport/GUI/Panel/TextEdit").connect(
38 "answer_correct", location, "handle_correct" 43 "answer_correct", location, "handle_correct"
39 ) 44 )