Files
Grinch-AP/worlds/stardew_valley/test/rules/TestBuildings.py
Jérémie Bolduc 7d5693e0fb Stardew Valley: Move BaseTest out of __init__.py to comply with future conventions (#4991)
* move everything out of init; fix from imports and some typing errors

* why is there a change in multiserver

* fix some relative shits
2025-05-13 09:58:03 +02:00

46 lines
1.6 KiB
Python

from ..bases import SVTestBase
from ...options import BuildingProgression, FarmType
class TestBuildingLogic(SVTestBase):
options = {
FarmType.internal_name: FarmType.option_standard,
BuildingProgression.internal_name: BuildingProgression.option_progressive,
}
def test_coop_blueprint(self):
self.assert_cannot_reach_location("Coop Blueprint")
self.collect_lots_of_money()
self.assert_can_reach_location("Coop Blueprint")
def test_big_coop_blueprint(self):
self.assert_cannot_reach_location("Big Coop Blueprint")
self.collect_lots_of_money()
self.assert_cannot_reach_location("Big Coop Blueprint")
self.multiworld.state.collect(self.create_item("Progressive Coop"))
self.assert_can_reach_location("Big Coop Blueprint")
def test_deluxe_coop_blueprint(self):
self.assert_cannot_reach_location("Deluxe Coop Blueprint")
self.collect_lots_of_money()
self.assert_cannot_reach_location("Deluxe Coop Blueprint")
self.multiworld.state.collect(self.create_item("Progressive Coop"))
self.assert_cannot_reach_location("Deluxe Coop Blueprint")
self.multiworld.state.collect(self.create_item("Progressive Coop"))
self.assert_can_reach_location("Deluxe Coop Blueprint")
def test_big_shed_blueprint(self):
self.assert_cannot_reach_location("Big Shed Blueprint")
self.collect_lots_of_money()
self.assert_cannot_reach_location("Big Shed Blueprint")
self.multiworld.state.collect(self.create_item("Progressive Shed"))
self.assert_can_reach_location("Big Shed Blueprint")