Files
dockipelago/worlds/stardew_valley/test/content/__init__.py
Jérémie Bolduc ee9bcb84b7 Stardew Valley: Move progressive tool options handling in features (#4374)
* create tool progression feature and unwrap option

* replace option usage with calling feature

* add comment explaining why some logic is a weird place

* replace item creation logic with feature

* self review and add unit tests

* rename test cuz I named them too long

* add a test for the trash can useful stuff cuz I thought there was a bug but turns out it works

* self review again

* remove price_multiplier, turns out it's unused during generation

* damn it 3.11 why are you like this

* use blacksmith region when checking vanilla tools

* fix rule

* move can mine using in tool logic

* remove changes to performance test

* properly set the option I guess

* properly set options 2

* that's what happen when you code too late
2025-03-08 11:19:29 -05:00

26 lines
967 B
Python

import unittest
from typing import ClassVar, Tuple
from ...content import content_packs, ContentPack, StardewContent, unpack_content, StardewFeatures, feature
default_features = StardewFeatures(
feature.booksanity.BooksanityDisabled(),
feature.cropsanity.CropsanityDisabled(),
feature.fishsanity.FishsanityNone(),
feature.friendsanity.FriendsanityNone(),
feature.skill_progression.SkillProgressionVanilla(),
feature.tool_progression.ToolProgressionVanilla()
)
class SVContentPackTestBase(unittest.TestCase):
vanilla_packs: ClassVar[Tuple[ContentPack]] = (content_packs.pelican_town, content_packs.the_desert, content_packs.the_farm, content_packs.the_mines)
mods: ClassVar[Tuple[str]] = ()
content: ClassVar[StardewContent]
@classmethod
def setUpClass(cls) -> None:
packs = cls.vanilla_packs + tuple(content_packs.by_mod[mod] for mod in cls.mods)
cls.content = unpack_content(default_features, packs)