mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-21 15:03:18 -07:00
Compare commits
1 Commits
webhost_qu
...
revert-404
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83d8bd584b |
@@ -89,7 +89,6 @@ class DarkSouls3World(World):
|
|||||||
self.all_excluded_locations = set()
|
self.all_excluded_locations = set()
|
||||||
|
|
||||||
def generate_early(self) -> None:
|
def generate_early(self) -> None:
|
||||||
self.created_regions = set()
|
|
||||||
self.all_excluded_locations.update(self.options.exclude_locations.value)
|
self.all_excluded_locations.update(self.options.exclude_locations.value)
|
||||||
|
|
||||||
# Inform Universal Tracker where Yhorm is being randomized to.
|
# Inform Universal Tracker where Yhorm is being randomized to.
|
||||||
@@ -295,7 +294,6 @@ class DarkSouls3World(World):
|
|||||||
new_region.locations.append(new_location)
|
new_region.locations.append(new_location)
|
||||||
|
|
||||||
self.multiworld.regions.append(new_region)
|
self.multiworld.regions.append(new_region)
|
||||||
self.created_regions.add(region_name)
|
|
||||||
return new_region
|
return new_region
|
||||||
|
|
||||||
def create_items(self) -> None:
|
def create_items(self) -> None:
|
||||||
@@ -1307,7 +1305,7 @@ class DarkSouls3World(World):
|
|||||||
def _add_entrance_rule(self, region: str, rule: Union[CollectionRule, str]) -> None:
|
def _add_entrance_rule(self, region: str, rule: Union[CollectionRule, str]) -> None:
|
||||||
"""Sets a rule for the entrance to the given region."""
|
"""Sets a rule for the entrance to the given region."""
|
||||||
assert region in location_tables
|
assert region in location_tables
|
||||||
if region not in self.created_regions: return
|
if not any(region == reg for reg in self.multiworld.regions.region_cache[self.player]): return
|
||||||
if isinstance(rule, str):
|
if isinstance(rule, str):
|
||||||
if " -> " not in rule:
|
if " -> " not in rule:
|
||||||
assert item_dictionary[rule].classification == ItemClassification.progression
|
assert item_dictionary[rule].classification == ItemClassification.progression
|
||||||
|
|||||||
Reference in New Issue
Block a user