From 6493e2a1ecb8dd916e768830b2fc3d18b5396a74 Mon Sep 17 00:00:00 2001 From: Salzkorn Date: Sun, 4 Feb 2024 08:19:06 +0100 Subject: [PATCH] Fix certain items with brackets not being in parent/race item groups --- worlds/sc2/ItemGroups.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/worlds/sc2/ItemGroups.py b/worlds/sc2/ItemGroups.py index 0dc6a490ce10..a77fb920f64d 100644 --- a/worlds/sc2/ItemGroups.py +++ b/worlds/sc2/ItemGroups.py @@ -60,11 +60,10 @@ if '(' in item: short_name = item[:item.find(' (')] # Ambiguous short-names are dropped - if short_name in bracketless_duplicates: - continue - item_name_groups[short_name] = [item] - # Short-name groups are unlisted - unlisted_item_name_groups.add(short_name) + if short_name not in bracketless_duplicates: + item_name_groups[short_name] = [item] + # Short-name groups are unlisted + unlisted_item_name_groups.add(short_name) # Items with a parent get assigned to their parent's group if data.parent_item: # The parent groups need a special name, otherwise they are ambiguous with the parent