SC2: Switched mission item group to a list comprehension to fix missile shuffle errors (#959)

This commit is contained in:
Magnemania 2022-08-23 17:20:39 -04:00 committed by GitHub
parent 295ea97544
commit 1aaf89ff2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,6 @@
from BaseClasses import Item, ItemClassification
import typing
from .MissionTables import vanilla_mission_req_table
class ItemData(typing.NamedTuple):
@ -153,12 +154,7 @@ basic_unit: typing.Tuple[str, ...] = (
item_name_groups = {}
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",
"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 The Great Train Robbery", "Beat Cutthroat", "Beat Engine of Destruction",
"Beat Media Blitz", "Beat Piercing the Shroud"]
item_name_groups["Missions"] = ["Beat " + mission_name for mission_name in vanilla_mission_req_table]
filler_items: typing.Tuple[str, ...] = (
'+15 Starting Minerals',