mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
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:
@@ -2,7 +2,6 @@ import unittest
|
||||
|
||||
from BaseClasses import CollectionState
|
||||
from worlds.AutoWorld import AutoWorldRegister
|
||||
|
||||
from . import setup_solo_multiworld
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
5
worlds_disabled/README.md
Normal file
5
worlds_disabled/README.md
Normal 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.
|
Reference in New Issue
Block a user