forked from mirror/Archipelago
* 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
26 lines
967 B
Python
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)
|