Skip to content

Commit

Permalink
Fix certain items with brackets not being in parent/race item groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Salzkorn committed Feb 4, 2024
1 parent f29aa26 commit 6493e2a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions worlds/sc2/ItemGroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6493e2a

Please sign in to comment.