Skip to content

Commit cff6c7c

Browse files
authored
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
1 parent f9120c6 commit cff6c7c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

worlds/dark_souls_3/Locations.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def get_name_to_id() -> dict:
7777
"Progressive Items 3",
7878
"Progressive Items 4",
7979
"Progressive Items DLC",
80+
"Progressive Items Health",
8081
]
8182

8283
output = {}
@@ -581,11 +582,7 @@ def get_name_to_id() -> dict:
581582
[DS3LocationData(f"Titanite Shard #{i + 1}", "Titanite Shard", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(26)] +
582583
[DS3LocationData(f"Large Titanite Shard #{i + 1}", "Large Titanite Shard", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(28)] +
583584
[DS3LocationData(f"Titanite Slab #{i + 1}", "Titanite Slab", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(3)] +
584-
[DS3LocationData(f"Twinkling Titanite #{i + 1}", "Twinkling Titanite", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(15)] +
585-
586-
# Healing
587-
[DS3LocationData(f"Estus Shard #{i + 1}", "Estus Shard", DS3LocationCategory.HEALTH) for i in range(11)] +
588-
[DS3LocationData(f"Undead Bone Shard #{i + 1}", "Undead Bone Shard", DS3LocationCategory.HEALTH) for i in range(10)],
585+
[DS3LocationData(f"Twinkling Titanite #{i + 1}", "Twinkling Titanite", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(15)],
589586

590587
"Progressive Items 2": [] +
591588
# Items
@@ -683,7 +680,12 @@ def get_name_to_id() -> dict:
683680
[DS3LocationData(f"Dark Gem ${i + 1}", "Dark Gem", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(2)] +
684681
[DS3LocationData(f"Blood Gem ${i + 1}", "Blood Gem", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(1)] +
685682
[DS3LocationData(f"Blessed Gem ${i + 1}", "Blessed Gem", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(2)] +
686-
[DS3LocationData(f"Hollow Gem ${i + 1}", "Hollow Gem", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(2)]
683+
[DS3LocationData(f"Hollow Gem ${i + 1}", "Hollow Gem", DS3LocationCategory.PROGRESSIVE_ITEM) for i in range(2)],
684+
685+
"Progressive Items Health": [] +
686+
# Healing
687+
[DS3LocationData(f"Estus Shard #{i + 1}", "Estus Shard", DS3LocationCategory.HEALTH) for i in range(11)] +
688+
[DS3LocationData(f"Undead Bone Shard #{i + 1}", "Undead Bone Shard", DS3LocationCategory.HEALTH) for i in range(10)],
687689
}
688690

689691
location_dictionary: Dict[str, DS3LocationData] = {}

worlds/dark_souls_3/__init__.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class DarkSouls3World(World):
4646
option_definitions = dark_souls_options
4747
topology_present: bool = True
4848
web = DarkSouls3Web()
49-
data_version = 7
49+
data_version = 8
5050
base_id = 100000
5151
enabled_location_categories: Set[DS3LocationCategory]
5252
required_client_version = (0, 4, 2)
@@ -89,7 +89,7 @@ def generate_early(self):
8989

9090
def create_regions(self):
9191
progressive_location_table = []
92-
if self.multiworld.enable_progressive_locations[self.player].value:
92+
if self.multiworld.enable_progressive_locations[self.player]:
9393
progressive_location_table = [] + \
9494
location_tables["Progressive Items 1"] + \
9595
location_tables["Progressive Items 2"] + \
@@ -99,6 +99,9 @@ def create_regions(self):
9999
if self.multiworld.enable_dlc[self.player].value:
100100
progressive_location_table += location_tables["Progressive Items DLC"]
101101

102+
if self.multiworld.enable_health_upgrade_locations[self.player]:
103+
progressive_location_table += location_tables["Progressive Items Health"]
104+
102105
# Create Vanilla Regions
103106
regions: Dict[str, Region] = {}
104107
regions["Menu"] = self.create_region("Menu", progressive_location_table)

0 commit comments

Comments
 (0)