Skip to content

Commit

Permalink
YGO06: Change lists to sets
Browse files Browse the repository at this point in the history
Co-authored-by: Scipio Wright <[email protected]>
  • Loading branch information
Rensen3 and ScipioWright authored Oct 25, 2024
1 parent 806d404 commit 5adcd42
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions worlds/yugioh06/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5adcd42

Please sign in to comment.