Skip to content

Commit

Permalink
Adding Removed options to error (ArchipelagoMW#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exempt-Medic authored May 11, 2024
1 parent bf0cd05 commit 079f992
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
18 changes: 16 additions & 2 deletions worlds/dark_souls_3/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import typing

from Options import Choice, DeathLink, DefaultOnToggle, ExcludeLocations, ItemDict, NamedRange, Option, PerGameCommonOptions, Range, Toggle, VerifyKeys
from Options import Choice, DeathLink, DefaultOnToggle, ExcludeLocations, ItemDict, NamedRange, Option, PerGameCommonOptions, Range, Removed, Toggle, VerifyKeys


class ExcludedLocationsOption(Choice):
Expand Down Expand Up @@ -348,7 +348,7 @@ class ImpatientMimicsOption(Toggle):


class DS3ExcludeLocations(ExcludeLocations):
"""Prevent these locations from having an important item"""
"""Forces these locations to have certain types of items, exact behavior depends on the "Excluded Locations" option."""
default = {"Hidden", "Small Crystal Lizards", "Upgrade", "Small Souls", "Miscellaneous"}


Expand Down Expand Up @@ -391,3 +391,17 @@ class DarkSouls3Options(PerGameCommonOptions):
all_chests_are_mimics: AllChestsAreMimicsOption
impatient_mimics: ImpatientMimicsOption
exclude_locations: DS3ExcludeLocations

# Removed
pool_type: Removed
enable_weapon_locations: Removed
enable_shield_locations: Removed
enable_armor_locations: Removed
enable_ring_locations: Removed
enable_spell_locations: Removed
enable_key_locations: Removed
enable_boss_locations: Removed
enable_npc_locations: Removed
enable_misc_locations: Removed
enable_health_upgrade_locations: Removed
enable_progressive_locations: Removed
5 changes: 0 additions & 5 deletions worlds/dark_souls_3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ def generate_early(self):
self.yhorm_location = default_yhorm_location


def _exclude_location_group(self, name: str):
"""Adds all the locations in the given location group to the set of excluded locations."""
self.options.exclude_locations.value.update(location_name_groups[name])


def _allow_boss_for_yhorm(self, boss: DS3BossInfo) -> bool:
"""Returns whether boss is a valid location for Yhorm in this seed."""

Expand Down

0 comments on commit 079f992

Please sign in to comment.