mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
DS3: Don't return early in the location loop (#3856)
This caused behavior errors when some locations in a group were excluded and others were not.
This commit is contained in:

committed by
GitHub

parent
8ed466bf24
commit
f81335d614
@@ -1292,10 +1292,10 @@ class DarkSouls3World(World):
|
||||
locations = location if isinstance(location, list) else [location]
|
||||
for location in locations:
|
||||
data = location_dictionary[location]
|
||||
if data.dlc and not self.options.enable_dlc: return
|
||||
if data.ngp and not self.options.enable_ngp: return
|
||||
if data.dlc and not self.options.enable_dlc: continue
|
||||
if data.ngp and not self.options.enable_ngp: continue
|
||||
|
||||
if not self._is_location_available(location): return
|
||||
if not self._is_location_available(location): continue
|
||||
if isinstance(rule, str):
|
||||
assert item_dictionary[rule].classification == ItemClassification.progression
|
||||
rule = lambda state, item=rule: state.has(item, self.player)
|
||||
|
Reference in New Issue
Block a user