about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/client.gd4
-rw-r--r--Archipelago/load.gd6
2 files changed, 10 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 4e3ca75..e8f9bba 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -233,6 +233,10 @@ func sendLocation(loc_id):
233 _held_locations.append(loc_id) 233 _held_locations.append(loc_id)
234 234
235 235
236func completedGoal():
237 sendMessage([{"cmd": "StatusUpdate", "status": 30}]) # CLIENT_GOAL
238
239
236func mapFinishedLoading(): 240func mapFinishedLoading():
237 if !_map_loaded: 241 if !_map_loaded:
238 for item in _held_items: 242 for item in _held_items:
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 6d6fcf0..d17bfac 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -38,6 +38,12 @@ 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.
42 var the_end = self.get_node("Decorations/EndPanel/Panel_end_end")
43 the_end.get_node("Viewport/GUI/Panel/TextEdit").connect(
44 "answer_correct", apclient, "completedGoal"
45 )
46
41 # Proceed with the rest of the load. 47 # Proceed with the rest of the load.
42 global._print("Hooked Load End") 48 global._print("Hooked Load End")
43 ._load() 49 ._load()