about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 10:47:24 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 10:47:24 -0500
commit9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c (patch)
treeb4c3b68046792fe558e06da8df03fbf210b73a88 /Archipelago/load.gd
parentd4384d35031657294ba9fa296facaa6e33ac2d55 (diff)
downloadlingo-archipelago-9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c.tar.gz
lingo-archipelago-9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c.tar.bz2
lingo-archipelago-9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c.zip
Don't create nodes for locations outside of classification
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index 8cc9120..4c6c178 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -115,10 +115,12 @@ 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):
119 continue
120
118 var location = location_script.new() 121 var location = location_script.new()
119 location.ap_id = location_id 122 location.ap_id = location_id
120 location.name = "AP_location_%d" % location.ap_id 123 location.name = "AP_location_%d" % location.ap_id
121 location.classification = gamedata.classification_by_location_id[location_id]
122 self.add_child(location) 124 self.add_child(location)
123 125
124 var panels = gamedata.panel_ids_by_location_id[location_id] 126 var panels = gamedata.panel_ids_by_location_id[location_id]