about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:44:08 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:44:08 -0500
commite0ffa141c91e40171c367a2aca777d22be824c98 (patch)
tree1c889df4a49b250a05d40f9abc51d7d5054a2700 /Archipelago
parent9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c (diff)
downloadlingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.tar.gz
lingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.tar.bz2
lingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.zip
Track hunt panels
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/load.gd9
1 files changed, 8 insertions, 1 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 4c6c178..ce97918 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -115,7 +115,7 @@ func _load():
115 var panels_parent = self.get_node("Panels") 115 var panels_parent = self.get_node("Panels")
116 var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") 116 var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd")
117 for location_id in gamedata.panel_ids_by_location_id.keys(): 117 for location_id in gamedata.panel_ids_by_location_id.keys():
118 if !(gamedata.classification_by_location_id[location_id] & apclient._location_classification_bit): 118 if not (gamedata.classification_by_location_id[location_id] & apclient._location_classification_bit):
119 continue 119 continue
120 120
121 var location = location_script.new() 121 var location = location_script.new()
@@ -421,6 +421,13 @@ func _load():
421 script_instance.key = "Achievement|%s" % panel["achievement"] 421 script_instance.key = "Achievement|%s" % panel["achievement"]
422 panel_node.add_child(script_instance) 422 panel_node.add_child(script_instance)
423 423
424 if "hunt" in panel and panel["hunt"] and not (gamedata.classification_by_location_id[panel["loc"]] & apclient._location_classification_bit):
425 var panel_node = panels_parent.get_node(panel["id"])
426 var script_instance = notifier_script.new()
427 script_instance.name = "Hunt_Notifier"
428 script_instance.key = "Hunt|%d" % panel["loc"]
429 panel_node.add_child(script_instance)
430
424 # Attach a script to every panel so that we can do things like conditionally 431 # Attach a script to every panel so that we can do things like conditionally
425 # disable them. 432 # disable them.
426 var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd") 433 var panel_script = ResourceLoader.load("user://maps/Archipelago/panel.gd")