mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
LTTP: fix open pyramid for real this time (#1393)
This commit is contained in:
37
worlds/alttp/test/options/TestOpenPyramid.py
Normal file
37
worlds/alttp/test/options/TestOpenPyramid.py
Normal file
@@ -0,0 +1,37 @@
|
||||
from test.TestBase import WorldTestBase
|
||||
from ...Items import ItemFactory
|
||||
|
||||
|
||||
class PyramidTestBase(WorldTestBase):
|
||||
game = "A Link to the Past"
|
||||
|
||||
|
||||
class OpenPyramidTest(PyramidTestBase):
|
||||
options = {
|
||||
"open_pyramid": "open"
|
||||
}
|
||||
|
||||
def testAccess(self):
|
||||
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
|
||||
self.collect_by_name(["Hammer", "Progressive Glove", "Moon Pearl"])
|
||||
self.assertTrue(self.can_reach_entrance("Pyramid Hole"))
|
||||
|
||||
|
||||
class GoalPyramidTest(PyramidTestBase):
|
||||
options = {
|
||||
"open_pyramid": "goal"
|
||||
}
|
||||
|
||||
def testCrystalsGoalAccess(self):
|
||||
self.multiworld.goal[1] = "crystals"
|
||||
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
|
||||
self.collect_by_name(["Hammer", "Progressive Glove", "Moon Pearl"])
|
||||
self.assertTrue(self.can_reach_entrance("Pyramid Hole"))
|
||||
|
||||
def testGanonGoalAccess(self):
|
||||
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
|
||||
self.collect_by_name(["Hammer", "Progressive Glove", "Moon Pearl"])
|
||||
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
|
||||
self.multiworld.state.collect(ItemFactory("Beat Agahnim 2", 1))
|
||||
self.assertTrue(self.can_reach_entrance("Pyramid Hole"))
|
||||
|
Reference in New Issue
Block a user