SC2: fix bitflag overflow when multiple instances of an Item are acquired (#1008)

This commit is contained in:
Fabian Dill
2022-09-12 01:51:25 +02:00
committed by GitHub
parent e204a0fce6
commit b2aa251c47
2 changed files with 34 additions and 39 deletions

View File

@@ -163,3 +163,17 @@ filler_items: typing.Tuple[str, ...] = (
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in get_full_item_list().items() if
data.code}
# Map type to expected int
type_flaggroups: typing.Dict[str, int] = {
"Unit": 0,
"Upgrade": 1,
"Armory 1": 2,
"Armory 2": 3,
"Building": 4,
"Mercenary": 5,
"Laboratory": 6,
"Protoss": 7,
"Minerals": 8,
"Vespene": 9,
"Supply": 10,
}