about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd16
1 files changed, 11 insertions, 5 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index ca1269b..7b7e648 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -38,11 +38,17 @@ func _load():
38 "answer_correct", location, "handle_correct" 38 "answer_correct", location, "handle_correct"
39 ) 39 )
40 40
41 # Hardcode THE END as the goal for now. 41 # Hook up the goal panel.
42 var the_end = self.get_node("Decorations/EndPanel/Panel_end_end") 42 if apclient._victory_condition == 1:
43 the_end.get_node("Viewport/GUI/Panel/TextEdit").connect( 43 var the_master = self.get_node("Panels/Countdown Panels/Panel_master_master")
44 "answer_correct", apclient, "completedGoal" 44 the_master.get_node("Viewport/GUI/Panel/TextEdit").connect(
45 ) 45 "answer_correct", apclient, "completedGoal"
46 )
47 else:
48 var the_end = self.get_node("Decorations/EndPanel/Panel_end_end")
49 the_end.get_node("Viewport/GUI/Panel/TextEdit").connect(
50 "answer_correct", apclient, "completedGoal"
51 )
46 52
47 # Create the messages node. 53 # Create the messages node.
48 var messages_script = ResourceLoader.load("user://maps/Archipelago/messages.gd") 54 var messages_script = ResourceLoader.load("user://maps/Archipelago/messages.gd")