[SC2] Item name groups and item game name fix (#555)
This commit is contained in:
parent
f515f680a4
commit
e1926c973e
|
@ -1,6 +1,7 @@
|
||||||
from BaseClasses import Item
|
from BaseClasses import Item
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
|
|
||||||
class ItemData(typing.NamedTuple):
|
class ItemData(typing.NamedTuple):
|
||||||
code: typing.Optional[int]
|
code: typing.Optional[int]
|
||||||
type: typing.Optional[str]
|
type: typing.Optional[str]
|
||||||
|
@ -11,7 +12,7 @@ class ItemData(typing.NamedTuple):
|
||||||
|
|
||||||
|
|
||||||
class StarcraftWoLItem(Item):
|
class StarcraftWoLItem(Item):
|
||||||
game: str = "Starcraft2WoL"
|
game: str = "Starcraft 2 Wings of Liberty"
|
||||||
|
|
||||||
def __init__(self, name, advancement: bool = False, code: int = None, player: int = None):
|
def __init__(self, name, advancement: bool = False, code: int = None, player: int = None):
|
||||||
super(StarcraftWoLItem, self).__init__(name, advancement, code, player)
|
super(StarcraftWoLItem, self).__init__(name, advancement, code, player)
|
||||||
|
@ -153,13 +154,15 @@ basic_unit: typing.Tuple[str, ...] = (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
item_name_groups = {"Missions":
|
item_name_groups = {}
|
||||||
{"Beat Liberation Day", "Beat The Outlaws", "Beat Zero Hour", "Beat Evacuation",
|
for item, data in item_table.items():
|
||||||
|
item_name_groups.setdefault(data.type, []).append(item)
|
||||||
|
item_name_groups["Missions"] = ["Beat Liberation Day", "Beat The Outlaws", "Beat Zero Hour", "Beat Evacuation",
|
||||||
"None Outbreak", "Beat Safe Haven", "Beat Haven's Fall", "Beat Smash and Grab", "Beat The Dig",
|
"None Outbreak", "Beat Safe Haven", "Beat Haven's Fall", "Beat Smash and Grab", "Beat The Dig",
|
||||||
"Beat The Moebius Factor", "Beat Supernova", "Beat Maw of the Void", "Beat Devil's Playground",
|
"Beat The Moebius Factor", "Beat Supernova", "Beat Maw of the Void", "Beat Devil's Playground",
|
||||||
"Beat Welcome to the Jungle", "Beat Breakout", "Beat Ghost of a Chance",
|
"Beat Welcome to the Jungle", "Beat Breakout", "Beat Ghost of a Chance",
|
||||||
"Beat The Great Train Robbery", "Beat Cutthroat", "Beat Engine of Destruction",
|
"Beat The Great Train Robbery", "Beat Cutthroat", "Beat Engine of Destruction",
|
||||||
"Beat Media Blitz", "Beat Piercing the Shroud"}}
|
"Beat Media Blitz", "Beat Piercing the Shroud"]
|
||||||
|
|
||||||
filler_items: typing.Tuple[str, ...] = (
|
filler_items: typing.Tuple[str, ...] = (
|
||||||
'+5 Starting Minerals',
|
'+5 Starting Minerals',
|
||||||
|
|
Loading…
Reference in New Issue