From 5adcd42e5143600eec3bef92bb374927705b9bb6 Mon Sep 17 00:00:00 2001 From: Rensen3 <127029481+Rensen3@users.noreply.github.com> Date: Fri, 25 Oct 2024 17:07:33 +0200 Subject: [PATCH] YGO06: Change lists to sets Co-authored-by: Scipio Wright --- worlds/yugioh06/__init__.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/worlds/yugioh06/__init__.py b/worlds/yugioh06/__init__.py index d14f839e2099..c8daf4f395fc 100644 --- a/worlds/yugioh06/__init__.py +++ b/worlds/yugioh06/__init__.py @@ -113,17 +113,17 @@ class Yugioh06World(World): for k, v in Required_Cards.items(): location_name_to_id[k] = v + start_id - item_name_groups = { - "Core Booster": core_booster, - "Campaign Boss Beaten": ["Tier 1 Beaten", "Tier 2 Beaten", "Tier 3 Beaten", "Tier 4 Beaten", "Tier 5 Beaten"], - "Challenge": challenges, - "Tier 1 Opponent": tier_1_opponents, - "Tier 2 Opponent": tier_2_opponents, - "Tier 3 Opponent": tier_3_opponents, - "Tier 4 Opponent": tier_4_opponents, - "Tier 5 Opponent": tier_5_opponents, - "Campaign Opponent": tier_1_opponents + tier_2_opponents + tier_3_opponents + - tier_4_opponents + tier_5_opponents + item_name_groups: Dict[str, Set[str]] = { + "Core Booster": set(core_booster), + "Campaign Boss Beaten": {"Tier 1 Beaten", "Tier 2 Beaten", "Tier 3 Beaten", "Tier 4 Beaten", "Tier 5 Beaten"}, + "Challenge": set(challenges), + "Tier 1 Opponent": set(tier_1_opponents), + "Tier 2 Opponent": set(tier_2_opponents), + "Tier 3 Opponent": set(tier_3_opponents), + "Tier 4 Opponent": set(tier_4_opponents), + "Tier 5 Opponent": set(tier_5_opponents), + "Campaign Opponent": set(tier_1_opponents + tier_2_opponents + tier_3_opponents + + tier_4_opponents + tier_5_opponents) } removed_challenges: List[str]