Skip to content

Commit

Permalink
OriBF: Move Ori and the Blind Forest to worlds_disabled. (Archipela…
Browse files Browse the repository at this point in the history
…goMW#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 <[email protected]>

---------

Co-authored-by: el-u <[email protected]>
  • Loading branch information
ThePhar and el-u authored Jun 29, 2023
1 parent 3252992 commit c9fb443
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 18 deletions.
33 changes: 15 additions & 18 deletions test/general/TestReachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from BaseClasses import CollectionState
from worlds.AutoWorld import AutoWorldRegister

from . import setup_solo_multiworld


Expand Down Expand Up @@ -34,25 +33,23 @@ class TestBase(unittest.TestCase):

def testDefaultAllStateCanReachEverything(self):
for game_name, world_type in AutoWorldRegister.world_types.items():
# Final Fantasy logic is controlled by finalfantasyrandomizer.com
if game_name not in {"Ori and the Blind Forest"}: # TODO: fix Ori Logic
unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set())
with self.subTest("Game", game=game_name):
world = setup_solo_multiworld(world_type)
excluded = world.exclude_locations[1].value
state = world.get_all_state(False)
for location in world.get_locations():
if location.name not in excluded:
with self.subTest("Location should be reached", location=location):
self.assertTrue(location.can_reach(state), f"{location.name} unreachable")
unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set())
with self.subTest("Game", game=game_name):
world = setup_solo_multiworld(world_type)
excluded = world.exclude_locations[1].value
state = world.get_all_state(False)
for location in world.get_locations():
if location.name not in excluded:
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():
if region.name not in unreachable_regions:
with self.subTest("Region should be reached", region=region):
self.assertTrue(region.can_reach(state))
for region in world.get_regions():
if region.name not in unreachable_regions:
with self.subTest("Region should be reached", region=region):
self.assertTrue(region.can_reach(state))

with self.subTest("Completion Condition"):
self.assertTrue(world.can_beat_game(state))
with self.subTest("Completion Condition"):
self.assertTrue(world.can_beat_game(state))

def testDefaultEmptyStateCanReachSomething(self):
for game_name, world_type in AutoWorldRegister.world_types.items():
Expand Down
5 changes: 5 additions & 0 deletions worlds_disabled/README.md
Original file line number Diff line number Diff line change
@@ -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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c9fb443

Please sign in to comment.