Files
Grinch-AP/worlds/stardew_valley/data/requirement.py
agilbert1412 c12d3dd6ad Stardew valley: Fix Queen of Sauce Cookbook conditions (#3651)
* - Extracted walnut logic to a Mixin so it can be used in content pack requirements

* - Add 100 walnut requirements to the Queen of Sauce Cookbook

* - Woops a file wasn't added to previous commits

* - Make the queen of sauce cookbook a ginger island only thing, due to the walnut requirement

* - Moved the book in the correct content pack

* - Removed an empty class that I'm not sure where it came from
2024-07-23 00:36:42 +02:00

37 lines
632 B
Python

from dataclasses import dataclass
from .game_item import Requirement
from ..strings.tool_names import ToolMaterial
@dataclass(frozen=True)
class BookRequirement(Requirement):
book: str
@dataclass(frozen=True)
class ToolRequirement(Requirement):
tool: str
tier: str = ToolMaterial.basic
@dataclass(frozen=True)
class SkillRequirement(Requirement):
skill: str
level: int
@dataclass(frozen=True)
class SeasonRequirement(Requirement):
season: str
@dataclass(frozen=True)
class YearRequirement(Requirement):
year: int
@dataclass(frozen=True)
class WalnutRequirement(Requirement):
amount: int