Core: add generic handling of excluded locations

Currently there can be locations that are marked as excluded,
but don't have rules to enforce it, while fill has special handling
for excluded locations already.

This change removes special rules, and adds a generic rule instead.
This commit is contained in:
black-sliver
2022-10-31 00:47:23 +01:00
parent 2db55ac50b
commit 0ed3baabd4
5 changed files with 11 additions and 8 deletions

View File

@@ -242,7 +242,6 @@ class SoEWorld(World):
for location in self.multiworld.random.sample(spheres[trash_sphere][typ], count):
assert location.name != "Energy Core #285", "Error in sphere generation"
location.progress_type = LocationProgressType.EXCLUDED
# TODO: do we need to set an item rule?
def sphere1_blocked_items_rule(item):
if isinstance(item, SoEItem):