about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-07-30 15:56:23 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-07-30 15:56:23 -0400
commit62f06090014aee90231eb90da36d5ae1b65171a3 (patch)
treee60b7bee0d0b10082df81cde7d8e9d0c58bf9929 /Archipelago/load.gd
parent80744f7ead1fd6abf391a5ea538d8df49ff19962 (diff)
downloadlingo-archipelago-62f06090014aee90231eb90da36d5ae1b65171a3.tar.gz
lingo-archipelago-62f06090014aee90231eb90da36d5ae1b65171a3.tar.bz2
lingo-archipelago-62f06090014aee90231eb90da36d5ae1b65171a3.zip
Added LEVEL 2 victory condition
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd13
1 files changed, 12 insertions, 1 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index bb14fea..0157395 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -87,6 +87,10 @@ func _load():
87 get_node("CountdownPanels").add_child(new_master_cdp) 87 get_node("CountdownPanels").add_child(new_master_cdp)
88 old_master_cdp.queue_free() 88 old_master_cdp.queue_free()
89 89
90 # Configure AN OTHER WAY.
91 var another_cdp = get_node("CountdownPanels/CountdownPanel_level2_0")
92 another_cdp.maxlength = (apclient._level_2_requirement - 1)
93
90 # This is the best time to create the location nodes, since the map is now 94 # This is the best time to create the location nodes, since the map is now
91 # loaded but the panels haven't been solved from the save file yet. 95 # loaded but the panels haven't been solved from the save file yet.
92 var panels_parent = self.get_node("Panels") 96 var panels_parent = self.get_node("Panels")
@@ -238,6 +242,8 @@ func _load():
238 victory_condition = "the end" 242 victory_condition = "the end"
239 elif apclient._victory_condition == apclient.kTHE_MASTER: 243 elif apclient._victory_condition == apclient.kTHE_MASTER:
240 victory_condition = "the master" 244 victory_condition = "the master"
245 elif apclient._victory_condition == apclient.kLEVEL_2:
246 victory_condition = "level 2"
241 247
242 set_static_panel("Entry Room/Panel_this_this", victory_condition) 248 set_static_panel("Entry Room/Panel_this_this", victory_condition)
243 set_static_panel("Entry Room/Panel_hidden_hidden", "hewwo") 249 set_static_panel("Entry Room/Panel_hidden_hidden", "hewwo")
@@ -366,11 +372,16 @@ func _load():
366 apclient.connect("evaluate_solvability", script_instance, "evaluate_solvability") 372 apclient.connect("evaluate_solvability", script_instance, "evaluate_solvability")
367 373
368 # Hook up the goal panel. 374 # Hook up the goal panel.
369 if apclient._victory_condition == 1: 375 if apclient._victory_condition == apclient.kTHE_MASTER:
370 var the_master = self.get_node("Panels/Countdown Panels/Panel_master_master") 376 var the_master = self.get_node("Panels/Countdown Panels/Panel_master_master")
371 the_master.get_node("Viewport/GUI/Panel/TextEdit").connect( 377 the_master.get_node("Viewport/GUI/Panel/TextEdit").connect(
372 "answer_correct", apclient, "completedGoal" 378 "answer_correct", apclient, "completedGoal"
373 ) 379 )
380 elif apclient._victory_condition == apclient.kLEVEL_2:
381 var level_2 = self.get_node("Decorations/EndPanel/Panel_level_2")
382 level_2.get_node("Viewport/GUI/Panel/TextEdit").connect(
383 "answer_correct", apclient, "completedGoal"
384 )
374 else: 385 else:
375 var the_end = self.get_node("Decorations/EndPanel/Panel_end_end") 386 var the_end = self.get_node("Decorations/EndPanel/Panel_end_end")
376 the_end.get_node("Viewport/GUI/Panel/TextEdit").connect( 387 the_end.get_node("Viewport/GUI/Panel/TextEdit").connect(