Files
Grinch-AP/worlds/stardew_valley/data/harvest.py
agilbert1412 9b22458f44 Stardew Valley 6.x.x: The Content Update (#3478)
Focus of the Update: Compatibility with Stardew Valley 1.6 Released on March 19th 2024
This includes randomization for pretty much all of the new content, including but not limited to
- Raccoon Bundles
- Booksanity
- Skill Masteries
- New Recipes, Craftables, Fish, Maps, Farm Type, Festivals and Quests

This also includes a significant reorganisation of the code into "Content Packs", to allow for easier modularity of various game mechanics between the settings and the supported mods. This improves maintainability quite a bit.

In addition to that, a few **very** requested new features have been introduced, although they weren't the focus of this update
- Walnutsanity
- Player Buffs
- More customizability in settings, such as shorter special orders, ER without farmhouse
- New Remixed Bundles
2024-07-07 15:04:25 +02:00

67 lines
1.6 KiB
Python

from dataclasses import dataclass
from typing import Tuple, Sequence, Mapping
from .game_item import ItemSource, kw_only, ItemTag, Requirement
from ..strings.season_names import Season
@dataclass(frozen=True, **kw_only)
class ForagingSource(ItemSource):
regions: Tuple[str, ...]
seasons: Tuple[str, ...] = Season.all
other_requirements: Tuple[Requirement, ...] = ()
@dataclass(frozen=True, **kw_only)
class SeasonalForagingSource(ItemSource):
season: str
days: Sequence[int]
regions: Tuple[str, ...]
def as_foraging_source(self) -> ForagingSource:
return ForagingSource(seasons=(self.season,), regions=self.regions)
@dataclass(frozen=True, **kw_only)
class FruitBatsSource(ItemSource):
...
@dataclass(frozen=True, **kw_only)
class MushroomCaveSource(ItemSource):
...
@dataclass(frozen=True, **kw_only)
class HarvestFruitTreeSource(ItemSource):
add_tags = (ItemTag.CROPSANITY,)
sapling: str
seasons: Tuple[str, ...] = Season.all
@property
def requirement_tags(self) -> Mapping[str, Tuple[ItemTag, ...]]:
return {
self.sapling: (ItemTag.CROPSANITY_SEED,)
}
@dataclass(frozen=True, **kw_only)
class HarvestCropSource(ItemSource):
add_tags = (ItemTag.CROPSANITY,)
seed: str
seasons: Tuple[str, ...] = Season.all
"""Empty means it can't be grown on the farm."""
@property
def requirement_tags(self) -> Mapping[str, Tuple[ItemTag, ...]]:
return {
self.seed: (ItemTag.CROPSANITY_SEED,)
}
@dataclass(frozen=True, **kw_only)
class ArtifactSpotSource(ItemSource):
amount: int