OriBF: Move Ori and the Blind Forest to `worlds_disabled`. (#1906)

* OriBF: Move Ori and the Blind Forest to `worlds_disabled/`

* Add readme for `worlds_disabled` folder

* fix link

* fix link 2

* Remove useless comment

Co-authored-by: el-u <109771707+el-u@users.noreply.github.com>

---------

Co-authored-by: el-u <109771707+el-u@users.noreply.github.com>
This commit is contained in:
Zach Parks 2023-06-29 13:36:48 -05:00 committed by GitHub
parent 325299286b
commit c9fb443c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 20 additions and 18 deletions

View File

@ -2,7 +2,6 @@ import unittest
from BaseClasses import CollectionState from BaseClasses import CollectionState
from worlds.AutoWorld import AutoWorldRegister from worlds.AutoWorld import AutoWorldRegister
from . import setup_solo_multiworld from . import setup_solo_multiworld
@ -34,25 +33,23 @@ class TestBase(unittest.TestCase):
def testDefaultAllStateCanReachEverything(self): def testDefaultAllStateCanReachEverything(self):
for game_name, world_type in AutoWorldRegister.world_types.items(): for game_name, world_type in AutoWorldRegister.world_types.items():
# Final Fantasy logic is controlled by finalfantasyrandomizer.com unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set())
if game_name not in {"Ori and the Blind Forest"}: # TODO: fix Ori Logic with self.subTest("Game", game=game_name):
unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set()) world = setup_solo_multiworld(world_type)
with self.subTest("Game", game=game_name): excluded = world.exclude_locations[1].value
world = setup_solo_multiworld(world_type) state = world.get_all_state(False)
excluded = world.exclude_locations[1].value for location in world.get_locations():
state = world.get_all_state(False) if location.name not in excluded:
for location in world.get_locations(): with self.subTest("Location should be reached", location=location):
if location.name not in excluded: self.assertTrue(location.can_reach(state), f"{location.name} unreachable")
with self.subTest("Location should be reached", location=location):
self.assertTrue(location.can_reach(state), f"{location.name} unreachable")
for region in world.get_regions(): for region in world.get_regions():
if region.name not in unreachable_regions: if region.name not in unreachable_regions:
with self.subTest("Region should be reached", region=region): with self.subTest("Region should be reached", region=region):
self.assertTrue(region.can_reach(state)) self.assertTrue(region.can_reach(state))
with self.subTest("Completion Condition"): with self.subTest("Completion Condition"):
self.assertTrue(world.can_beat_game(state)) self.assertTrue(world.can_beat_game(state))
def testDefaultEmptyStateCanReachSomething(self): def testDefaultEmptyStateCanReachSomething(self):
for game_name, world_type in AutoWorldRegister.world_types.items(): for game_name, world_type in AutoWorldRegister.world_types.items():

View File

@ -0,0 +1,5 @@
## Folder Purpose
This folder is for already merged worlds that are unmaintained and currently broken. If you are interested in fixing and
stepping up as maintainer for any of these worlds, please review the [world maintainer](/docs/world%20maintainer.md)
documentation.