mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00

* Lingo: Add option to prevent shuffling postgame * Allow roof access on door shuffle * Fix broken unit test * Simplified THE END edge case * Revert unnecessary change * Review comments * Fix mastery unit test * Update generated.dat * Added player's name to error message
63 lines
2.2 KiB
Python
63 lines
2.2 KiB
Python
from . import LingoTestBase
|
|
|
|
|
|
class TestPostgameVanillaTheEnd(LingoTestBase):
|
|
options = {
|
|
"shuffle_doors": "none",
|
|
"victory_condition": "the_end",
|
|
"shuffle_postgame": "false",
|
|
}
|
|
|
|
def test_requirement(self):
|
|
location_names = [location.name for location in self.multiworld.get_locations(self.player)]
|
|
|
|
self.assertTrue("The End (Solved)" in location_names)
|
|
self.assertTrue("Champion's Rest - YOU" in location_names)
|
|
self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names)
|
|
self.assertFalse("The Red - Achievement" in location_names)
|
|
|
|
|
|
class TestPostgameComplexDoorsTheEnd(LingoTestBase):
|
|
options = {
|
|
"shuffle_doors": "complex",
|
|
"victory_condition": "the_end",
|
|
"shuffle_postgame": "false",
|
|
}
|
|
|
|
def test_requirement(self):
|
|
location_names = [location.name for location in self.multiworld.get_locations(self.player)]
|
|
|
|
self.assertTrue("The End (Solved)" in location_names)
|
|
self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names)
|
|
self.assertTrue("The Red - Achievement" in location_names)
|
|
|
|
|
|
class TestPostgameLateColorHunt(LingoTestBase):
|
|
options = {
|
|
"shuffle_doors": "none",
|
|
"victory_condition": "the_end",
|
|
"sunwarp_access": "disabled",
|
|
"shuffle_postgame": "false",
|
|
}
|
|
|
|
def test_requirement(self):
|
|
location_names = [location.name for location in self.multiworld.get_locations(self.player)]
|
|
|
|
self.assertFalse("Champion's Rest - YOU" in location_names)
|
|
|
|
|
|
class TestPostgameVanillaTheMaster(LingoTestBase):
|
|
options = {
|
|
"shuffle_doors": "none",
|
|
"victory_condition": "the_master",
|
|
"shuffle_postgame": "false",
|
|
}
|
|
|
|
def test_requirement(self):
|
|
location_names = [location.name for location in self.multiworld.get_locations(self.player)]
|
|
|
|
self.assertTrue("Orange Tower Seventh Floor - THE END" in location_names)
|
|
self.assertTrue("Orange Tower Seventh Floor - Mastery Achievements" in location_names)
|
|
self.assertTrue("The Red - Achievement" in location_names)
|
|
self.assertFalse("Mastery Panels" in location_names)
|