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
100 lines
4.8 KiB
Python
100 lines
4.8 KiB
Python
from . import SVTestBase
|
|
from .. import BuildingProgression
|
|
from ..options import ToolProgression
|
|
|
|
|
|
class TestBitFlagsVanilla(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_vanilla,
|
|
BuildingProgression.internal_name: BuildingProgression.option_vanilla}
|
|
|
|
def test_options_are_not_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertFalse(tool_progressive)
|
|
self.assertFalse(building_progressive)
|
|
|
|
def test_tools_and_buildings_not_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertNotIn("Progressive Coop", item_names)
|
|
self.assertNotIn("Progressive Pickaxe", item_names)
|
|
|
|
|
|
class TestBitFlagsVanillaCheap(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_vanilla_cheap,
|
|
BuildingProgression.internal_name: BuildingProgression.option_vanilla_cheap}
|
|
|
|
def test_options_are_not_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertFalse(tool_progressive)
|
|
self.assertFalse(building_progressive)
|
|
|
|
def test_tools_and_buildings_not_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertNotIn("Progressive Coop", item_names)
|
|
self.assertNotIn("Progressive Pickaxe", item_names)
|
|
|
|
|
|
class TestBitFlagsVanillaVeryCheap(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_vanilla_very_cheap,
|
|
BuildingProgression.internal_name: BuildingProgression.option_vanilla_very_cheap}
|
|
|
|
def test_options_are_not_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertFalse(tool_progressive)
|
|
self.assertFalse(building_progressive)
|
|
|
|
def test_tools_and_buildings_not_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertNotIn("Progressive Coop", item_names)
|
|
self.assertNotIn("Progressive Pickaxe", item_names)
|
|
|
|
|
|
class TestBitFlagsProgressive(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_progressive,
|
|
BuildingProgression.internal_name: BuildingProgression.option_progressive}
|
|
|
|
def test_options_are_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertTrue(tool_progressive)
|
|
self.assertTrue(building_progressive)
|
|
|
|
def test_tools_and_buildings_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertIn("Progressive Coop", item_names)
|
|
self.assertIn("Progressive Pickaxe", item_names)
|
|
|
|
|
|
class TestBitFlagsProgressiveCheap(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_progressive_cheap,
|
|
BuildingProgression.internal_name: BuildingProgression.option_progressive_cheap}
|
|
|
|
def test_options_are_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertTrue(tool_progressive)
|
|
self.assertTrue(building_progressive)
|
|
|
|
def test_tools_and_buildings_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertIn("Progressive Coop", item_names)
|
|
self.assertIn("Progressive Pickaxe", item_names)
|
|
|
|
|
|
class TestBitFlagsProgressiveVeryCheap(SVTestBase):
|
|
options = {ToolProgression.internal_name: ToolProgression.option_progressive_very_cheap,
|
|
BuildingProgression.internal_name: BuildingProgression.option_progressive_very_cheap}
|
|
|
|
def test_options_are_detected_as_progressive(self):
|
|
tool_progressive = self.world.content.features.tool_progression.is_progressive
|
|
building_progressive = self.world.content.features.building_progression.is_progressive
|
|
self.assertTrue(tool_progressive)
|
|
self.assertTrue(building_progressive)
|
|
|
|
def test_tools_and_buildings_in_pool(self):
|
|
item_names = [item.name for item in self.multiworld.itempool]
|
|
self.assertIn("Progressive Coop", item_names)
|
|
self.assertIn("Progressive Pickaxe", item_names)
|