summary refs log tree commit diff stats
path: root/client
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 13:16:17 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 13:16:17 -0400
commitcda8cb3349483146d23ab020fe73f3e2c54b10eb (patch)
tree87efeb35cd654ae720e06c7e2af5a5b0d0b15fe8 /client
parentf4a383ae208da8363ef9ffad7763e0853e02a678 (diff)
downloadlingo2-archipelago-cda8cb3349483146d23ab020fe73f3e2c54b10eb.tar.gz
lingo2-archipelago-cda8cb3349483146d23ab020fe73f3e2c54b10eb.tar.bz2
lingo2-archipelago-cda8cb3349483146d23ab020fe73f3e2c54b10eb.zip
[Client] Added mastery checks
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()