HK: add item name groups

This commit is contained in:
Fabian Dill
2022-04-04 00:15:16 +02:00
committed by Hussein Farran
parent 0eb37883ca
commit 66bd793306
2 changed files with 6 additions and 1 deletions

View File

@@ -18,3 +18,7 @@ lookup_id_to_name: Dict[int, str] = {data.id: item_name for item_name, data in i
lookup_type_to_names: Dict[str, Set[str]] = {}
for item, item_data in item_table.items():
lookup_type_to_names.setdefault(item_data.type, set()).add(item)
item_name_groups = {group: lookup_type_to_names[group] for group in ("Skill", "Charm", "Mask", "Vessel",
"Relic", "Root", "Map", "Stag", "Cocoon",
"Soul", "DreamWarrior", "DreamBoss")}