2025-05-13 03:58:03 -04:00
|
|
|
from .bases import SVTestBase
|
2024-03-15 15:05:14 +03:00
|
|
|
from .. import options
|
2025-04-08 12:37:45 -04:00
|
|
|
from ..strings.ap_names.transport_names import Transportation
|
|
|
|
from ..strings.building_names import Building
|
|
|
|
from ..strings.region_names import Region
|
|
|
|
from ..strings.seed_names import Seed
|
2024-03-15 15:05:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
class TestCropsanityRules(SVTestBase):
|
|
|
|
options = {
|
|
|
|
options.Cropsanity.internal_name: options.Cropsanity.option_enabled
|
|
|
|
}
|
|
|
|
|
|
|
|
def test_need_greenhouse_for_cactus(self):
|
2025-04-08 12:37:45 -04:00
|
|
|
harvest_cactus_fruit = "Harvest Cactus Fruit"
|
|
|
|
self.assert_cannot_reach_location(harvest_cactus_fruit)
|
2024-03-15 15:05:14 +03:00
|
|
|
|
2025-04-08 12:37:45 -04:00
|
|
|
self.multiworld.state.collect(self.create_item(Seed.cactus))
|
|
|
|
self.multiworld.state.collect(self.create_item(Building.shipping_bin))
|
|
|
|
self.multiworld.state.collect(self.create_item(Transportation.desert_obelisk))
|
|
|
|
self.assert_cannot_reach_location(harvest_cactus_fruit)
|
2024-03-15 15:05:14 +03:00
|
|
|
|
2025-04-08 12:37:45 -04:00
|
|
|
self.multiworld.state.collect(self.create_item(Region.greenhouse))
|
|
|
|
self.assert_can_reach_location(harvest_cactus_fruit)
|