Files
dockipelago/worlds/stardew_valley/test/content/__init__.py
Jouramie a67688749f Stardew Valley: Refactor skill progression to use new feature system (#3662)
* create a first draft of the feature

* use feature in items and locations

* add content to more places

* use feature in logic

* replace option check by feature

* remove unused code

* remove weird white space

* some import nitpicking

* flip negative if
2024-12-01 03:52:07 +01:00

25 lines
913 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(),
)
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)