summary refs log tree commit diff stats
path: root/client/Archipelago/player.gd
diff options
context:
space:
mode:
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()