From 8566f6e7fb54f5f52241ac86ebd1a6636ceb4a08 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 29 Aug 2025 13:30:58 -0400 Subject: [Client] Added ending locations Getting an ending (other than White) also does not send you to the credits. --- client/Archipelago/player.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'client/Archipelago/player.gd') diff --git a/client/Archipelago/player.gd b/client/Archipelago/player.gd index 5d17d68..082aa64 100644 --- a/client/Archipelago/player.gd +++ b/client/Archipelago/player.gd @@ -51,4 +51,16 @@ func _ready(): get_parent().add_child.call_deferred(locationListener) + for ending in gamedata.objects.get_endings(): + var room = gamedata.objects.get_rooms()[ending.get_room_id()] + if room.get_map_id() != map_id: + continue + + var locationListener = ap.SCRIPT_locationListener.new() + locationListener.location_id = ending.get_ap_id() + locationListener.name = "locationListener_%d" % ending.get_ap_id() + locationListener.senders.append(NodePath("/root/scene/" + ending.get_path())) + + get_parent().add_child.call_deferred(locationListener) + super._ready() -- cgit 1.4.1