Skip to content

Commit

Permalink
Fix flaggroup item name groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Salzkorn committed Feb 3, 2024
1 parent 530c845 commit 50b6d74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/sc2/ItemGroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
item_name_groups.setdefault(data.type, []).append(item)
# Numbered flaggroups get sorted into an unnumbered group
# Currently supports numbers of one or two digits
if item[-2:].strip().isnumeric:
type_group = item[:-2].strip()
if data.type[-2:].strip().isnumeric:
type_group = data.type[:-2].strip()
item_name_groups.setdefault(type_group, []).append(item)
# Flaggroups with numbers are unlisted
unlisted_item_name_groups.add(data.type)
# Items with a bracket get a short-hand name group for ease of use in YAMLs
if '(' in item:
short_name = item[:item.find(' (')]
Expand Down

0 comments on commit 50b6d74

Please sign in to comment.