summary refs log tree commit diff stats
path: root/client/Archipelago/player.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 13:30:58 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 13:30:58 -0400
commit8566f6e7fb54f5f52241ac86ebd1a6636ceb4a08 (patch)
treefb1374cb88bcbb30aff54ddb6a01b4864e185966 /client/Archipelago/player.gd
parentcda8cb3349483146d23ab020fe73f3e2c54b10eb (diff)
downloadlingo2-archipelago-8566f6e7fb54f5f52241ac86ebd1a6636ceb4a08.tar.gz
lingo2-archipelago-8566f6e7fb54f5f52241ac86ebd1a6636ceb4a08.tar.bz2
lingo2-archipelago-8566f6e7fb54f5f52241ac86ebd1a6636ceb4a08.zip
[Client] Added ending locations
Getting an ending (other than White) also does not send you to the credits.
Diffstat (limited to 'client/Archipelago/player.gd')
-rw-r--r--client/Archipelago/player.gd12
1 files changed, 12 insertions, 0 deletions
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():
51 51
52 get_parent().add_child.call_deferred(locationListener) 52 get_parent().add_child.call_deferred(locationListener)
53 53
54 for ending in gamedata.objects.get_endings():
55 var room = gamedata.objects.get_rooms()[ending.get_room_id()]
56 if room.get_map_id() != map_id:
57 continue
58
59 var locationListener = ap.SCRIPT_locationListener.new()
60 locationListener.location_id = ending.get_ap_id()
61 locationListener.name = "locationListener_%d" % ending.get_ap_id()
62 locationListener.senders.append(NodePath("/root/scene/" + ending.get_path()))
63
64 get_parent().add_child.call_deferred(locationListener)
65
54 super._ready() 66 super._ready()