The Witness: Add more panels to the "doors: panels" mode (#2916)
* Add more panels that should be panels * Make it so the caves panel items don't exist in early caves * Remove unused import * oops * Remove Jungle to Monastery Garden from usefulification list * Add a basic test * ruff --------- Co-authored-by: Fabian Dill <Berserker66@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from ..test import WitnessTestBase
|
||||
from ..test import WitnessMultiworldTestBase, WitnessTestBase
|
||||
|
||||
|
||||
class TestIndividualDoors(WitnessTestBase):
|
||||
@@ -22,3 +22,29 @@ class TestIndividualDoors(WitnessTestBase):
|
||||
],
|
||||
only_check_listed=True,
|
||||
)
|
||||
|
||||
|
||||
class TestForbiddenDoors(WitnessMultiworldTestBase):
|
||||
options_per_world = [
|
||||
{
|
||||
"early_caves": "off",
|
||||
},
|
||||
{
|
||||
"early_caves": "add_to_pool",
|
||||
},
|
||||
]
|
||||
|
||||
common_options = {
|
||||
"shuffle_doors": "panels",
|
||||
"shuffle_postgame": True,
|
||||
}
|
||||
|
||||
def test_forbidden_doors(self) -> None:
|
||||
self.assertTrue(
|
||||
self.get_items_by_name("Caves Mountain Shortcut (Panel)", 1),
|
||||
"Caves Mountain Shortcut (Panel) should exist in panels shuffle, but it didn't."
|
||||
)
|
||||
self.assertFalse(
|
||||
self.get_items_by_name("Caves Mountain Shortcut (Panel)", 2),
|
||||
"Caves Mountain Shortcut (Panel) should be removed when Early Caves is enabled, but it still exists."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user