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

* Created panels mode door shuffle * Added some panel door item names * Remove RUNT TURN panel door Not really useful. * Fix logic with First SIX related stuff * Add group_doors to slot data * Fix LEVEL 2 behavior with panels mode * Fixed unit tests * Fixed duplicate IDs from merge * Just regenerated new IDs * Fixed duplication of color and door group items * Removed unnecessary unit test option * Fix The Seeker being achievable without entrance door * Fix The Observant being achievable without locked panels * Added some more panel doors * Added Progressive Suits Area * Lingo: Fix Basement access with THE MASTER * Added indirect conditions for MASTER-blocked entrances * Fixed Incomparable achievement access * Fix STAIRS panel logic * Fix merge error with good items * Is this clearer? * DREAD and TURN LEARN * Allow a weird edge case for reduced locations Panels mode door shuffle + grouped doors + color shuffle + pilgrimage enabled is exactly the right number of items for reduced locations. Removing color shuffle also allows for disabling pilgrimage, adding sunwarp locking, or both, with a couple of locations left over. * Prevent small sphere one on panels mode * Added shuffle_doors aliases for old options * Fixed a unit test * Updated datafile * Tweaked requirements for reduced locations * Added player name to OptionError messages * Update generated.dat
139 lines
6.1 KiB
Python
139 lines
6.1 KiB
Python
from . import LingoTestBase
|
|
|
|
|
|
class TestDisabledPilgrimage(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "false",
|
|
"shuffle_colors": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
self.collect_by_name("Pilgrim Room - Sun Painting")
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
|
|
class TestPilgrimageWithRoofAndPaintings(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "true",
|
|
"shuffle_colors": "false",
|
|
"shuffle_doors": "doors",
|
|
"pilgrimage_allows_roof_access": "true",
|
|
"pilgrimage_allows_paintings": "true",
|
|
"early_color_hallways": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
|
|
"Outside The Undeterred - Green Painting"]
|
|
|
|
for door in doors:
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
self.collect_by_name(door)
|
|
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
|
|
class TestPilgrimageNoRoofYesPaintings(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "true",
|
|
"shuffle_colors": "false",
|
|
"shuffle_doors": "doors",
|
|
"pilgrimage_allows_roof_access": "false",
|
|
"pilgrimage_allows_paintings": "true",
|
|
"early_color_hallways": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
|
|
"Outside The Undeterred - Green Painting", "Crossroads - Tower Entrance",
|
|
"Orange Tower Fourth Floor - Hot Crusts Door", "Orange Tower First Floor - Shortcut to Hub Room",
|
|
"Starting Room - Street Painting"]
|
|
|
|
for door in doors:
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
self.collect_by_name(door)
|
|
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
|
|
class TestPilgrimageNoRoofNoPaintings(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "true",
|
|
"shuffle_colors": "false",
|
|
"shuffle_doors": "doors",
|
|
"pilgrimage_allows_roof_access": "false",
|
|
"pilgrimage_allows_paintings": "false",
|
|
"early_color_hallways": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
|
|
"Outside The Undeterred - Green Painting", "Orange Tower First Floor - Shortcut to Hub Room",
|
|
"Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room",
|
|
"Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door",
|
|
"Color Hunt - Shortcut to The Steady", "The Bearer - Entrance",
|
|
"Orange Tower Fifth Floor - Quadruple Intersection", "The Tenacious - Shortcut to Hub Room",
|
|
"Outside The Agreeable - Tenacious Entrance", "Crossroads - Tower Entrance",
|
|
"Orange Tower Fourth Floor - Hot Crusts Door"]
|
|
|
|
for door in doors:
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
self.collect_by_name(door)
|
|
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
|
|
class TestPilgrimageRequireStartingRoom(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "true",
|
|
"shuffle_colors": "false",
|
|
"shuffle_doors": "complex",
|
|
"pilgrimage_allows_roof_access": "false",
|
|
"pilgrimage_allows_paintings": "false",
|
|
"early_color_hallways": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
|
|
"Outside The Undeterred - Green Painting", "Outside The Undeterred - Number Hunt",
|
|
"Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room",
|
|
"Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door",
|
|
"Color Hunt - Shortcut to The Steady", "The Bearer - Entrance",
|
|
"Orange Tower Fifth Floor - Quadruple Intersection", "The Tenacious - Shortcut to Hub Room",
|
|
"Outside The Agreeable - Tenacious Entrance", "Crossroads - Tower Entrance",
|
|
"Orange Tower Fourth Floor - Hot Crusts Door", "Challenge Room - Welcome Door",
|
|
"Number Hunt - Challenge Entrance", "Welcome Back Area - Shortcut to Starting Room"]
|
|
|
|
for door in doors:
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
self.collect_by_name(door)
|
|
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
|
|
|
|
class TestPilgrimageYesRoofNoPaintings(LingoTestBase):
|
|
options = {
|
|
"enable_pilgrimage": "true",
|
|
"shuffle_colors": "false",
|
|
"shuffle_doors": "doors",
|
|
"pilgrimage_allows_roof_access": "true",
|
|
"pilgrimage_allows_paintings": "false",
|
|
"early_color_hallways": "false"
|
|
}
|
|
|
|
def test_access(self):
|
|
doors = ["Second Room - Exit Door", "Crossroads - Roof Access", "Hub Room - Crossroads Entrance",
|
|
"Outside The Undeterred - Green Painting", "Orange Tower First Floor - Shortcut to Hub Room",
|
|
"Starting Room - Street Painting", "Outside The Initiated - Shortcut to Hub Room",
|
|
"Directional Gallery - Shortcut to The Undeterred", "Orange Tower First Floor - Salt Pepper Door",
|
|
"Color Hunt - Shortcut to The Steady", "The Bearer - Entrance",
|
|
"Orange Tower Fifth Floor - Quadruple Intersection"]
|
|
|
|
for door in doors:
|
|
self.assertFalse(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|
|
self.collect_by_name(door)
|
|
|
|
self.assertTrue(self.can_reach_location("Pilgrim Antechamber - PILGRIM"))
|