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 +++- Archipelago/location.gd | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Archipelago') 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] diff --git a/Archipelago/location.gd b/Archipelago/location.gd index 7e76427..b85b5c4 100644 --- a/Archipelago/location.gd +++ b/Archipelago/location.gd @@ -4,7 +4,6 @@ var ap_name = "" var ap_id = 0 var total = 0 var solved = 0 -var classification = 0 var ran = false @@ -15,5 +14,4 @@ func handle_correct(): ran = true var apclient = global.get_node("Archipelago") - if classification & apclient._location_classification_bit: - apclient.sendLocation(ap_id) + apclient.sendLocation(ap_id) -- cgit 1.4.1