DS3: Fix health locations setting not enabling (#2147)

* DS3: Fix health locations setting not enabling

* DS3: Move health locations to their own table

* DS3: Bump data version
This commit is contained in:
Bryce Wilson
2023-09-16 03:17:40 -07:00
committed by GitHub
parent f9120c620f
commit cff6c7c4da
2 changed files with 13 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ class DarkSouls3World(World):
option_definitions = dark_souls_options
topology_present: bool = True
web = DarkSouls3Web()
data_version = 7
data_version = 8
base_id = 100000
enabled_location_categories: Set[DS3LocationCategory]
required_client_version = (0, 4, 2)
@@ -89,7 +89,7 @@ class DarkSouls3World(World):
def create_regions(self):
progressive_location_table = []
if self.multiworld.enable_progressive_locations[self.player].value:
if self.multiworld.enable_progressive_locations[self.player]:
progressive_location_table = [] + \
location_tables["Progressive Items 1"] + \
location_tables["Progressive Items 2"] + \
@@ -99,6 +99,9 @@ class DarkSouls3World(World):
if self.multiworld.enable_dlc[self.player].value:
progressive_location_table += location_tables["Progressive Items DLC"]
if self.multiworld.enable_health_upgrade_locations[self.player]:
progressive_location_table += location_tables["Progressive Items Health"]
# Create Vanilla Regions
regions: Dict[str, Region] = {}
regions["Menu"] = self.create_region("Menu", progressive_location_table)