From 9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 17 Nov 2023 10:47:24 -0500 Subject: Don't create nodes for locations outside of classification --- Archipelago/load.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Archipelago/load.gd') 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(): var panels_parent = self.get_node("Panels") var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") for location_id in gamedata.panel_ids_by_location_id.keys(): + if !(gamedata.classification_by_location_id[location_id] & apclient._location_classification_bit): + continue + var location = location_script.new() location.ap_id = location_id location.name = "AP_location_%d" % location.ap_id - location.classification = gamedata.classification_by_location_id[location_id] self.add_child(location) var panels = gamedata.panel_ids_by_location_id[location_id] -- cgit 1.4.1