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

* create building data object and rename ItemSource to Source to be more generic # Conflicts: # worlds/stardew_valley/content/game_content.py # Conflicts: # worlds/stardew_valley/data/artisan.py # worlds/stardew_valley/data/game_item.py # worlds/stardew_valley/data/harvest.py # worlds/stardew_valley/data/shop.py * remove compound sources, replace by other requirements which already handle this usecase * add coops to content packs * add building progression in game features * add shippping bin to starting building; remove has_house * replace config check with feature * add other buildings in content packs * not passing * tests passes, unbelievable * use newly create methods more * use new assets to ease readability * self review * fix flake8 maybe * properly split rule for mapping cave systems * fix tractor garage name * self review * add upgrade_from to farm house buldings * don't override building name variable in logic * remove has_group from buildings * mark some items easy in grinding logic so blueprints buildings can be in more early spheres * move stuff around to maybe avoid future conflicts cuz I have like 10 PRs opened right now * remove price_multiplier, turns out it's unused during generation * disable shop source for mapping cave systems * bunch of code review changes * add petbowl and farmhouse to autobuilding * set min easy items to 300 * fix farm type
25 lines
1002 B
Python
25 lines
1002 B
Python
from . import SVTestBase
|
|
from .. import options
|
|
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
|
|
|
|
|
|
class TestCropsanityRules(SVTestBase):
|
|
options = {
|
|
options.Cropsanity.internal_name: options.Cropsanity.option_enabled
|
|
}
|
|
|
|
def test_need_greenhouse_for_cactus(self):
|
|
harvest_cactus_fruit = "Harvest Cactus Fruit"
|
|
self.assert_cannot_reach_location(harvest_cactus_fruit)
|
|
|
|
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)
|
|
|
|
self.multiworld.state.collect(self.create_item(Region.greenhouse))
|
|
self.assert_can_reach_location(harvest_cactus_fruit)
|