summary refs log tree commit diff stats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-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 a84548a..5d17d68 100644 --- a/client/Archipelago/player.gd +++ b/client/Archipelago/player.gd
@@ -39,4 +39,16 @@ func _ready():
39 39
40 get_parent().add_child.call_deferred(locationListener) 40 get_parent().add_child.call_deferred(locationListener)
41 41
42 for mastery in gamedata.objects.get_masteries():
43 var room = gamedata.objects.get_rooms()[mastery.get_room_id()]
44 if room.get_map_id() != map_id:
45 continue
46
47 var locationListener = ap.SCRIPT_locationListener.new()
48 locationListener.location_id = mastery.get_ap_id()
49 locationListener.name = "locationListener_%d" % mastery.get_ap_id()
50 locationListener.senders.append(NodePath("/root/scene/" + mastery.get_path()))
51
52 get_parent().add_child.call_deferred(locationListener)
53
42 super._ready() 54 super._ready()