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 16:04:25 +03:00
|
|
|
from collections import Counter
|
2025-07-12 07:12:04 -04:00
|
|
|
from unittest.mock import patch
|
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 16:04:25 +03:00
|
|
|
|
2025-05-13 03:58:03 -04:00
|
|
|
from ..bases import SVTestBase
|
2025-07-12 07:12:04 -04:00
|
|
|
from ..options import presets
|
|
|
|
|
from ... import options, StardewLogic, StardewRule
|
|
|
|
|
from ...logic.museum_logic import MuseumLogic
|
|
|
|
|
from ...stardew_rule import true_, LiteralStardewRule
|
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 16:04:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestMuseumMilestones(SVTestBase):
|
|
|
|
|
options = {
|
2025-07-12 07:12:04 -04:00
|
|
|
options.Museumsanity: options.Museumsanity.option_milestones
|
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 16:04:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def test_50_milestone(self):
|
|
|
|
|
self.multiworld.state.prog_items = {1: Counter()}
|
|
|
|
|
|
|
|
|
|
milestone_rule = self.world.logic.museum.can_find_museum_items(50)
|
|
|
|
|
self.assert_rule_false(milestone_rule, self.multiworld.state)
|
2025-07-12 07:12:04 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class DisabledMuseumRule(LiteralStardewRule):
|
|
|
|
|
value = False
|
|
|
|
|
|
|
|
|
|
def __or__(self, other) -> StardewRule:
|
|
|
|
|
return other
|
|
|
|
|
|
|
|
|
|
def __and__(self, other) -> StardewRule:
|
|
|
|
|
return self
|
|
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
|
return "Disabled Museum Rule"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestMuseumsanityDisabledExcludesMuseumDonationsFromOtherLocations(SVTestBase):
|
|
|
|
|
options = {
|
|
|
|
|
**presets.allsanity_mods_6_x_x(),
|
|
|
|
|
options.Museumsanity.internal_name: options.Museumsanity.option_none
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def test_museum_donations_are_never_required_in_any_locations(self):
|
|
|
|
|
with patch("worlds.stardew_valley.logic.museum_logic.MuseumLogic") as MockMuseumLogic:
|
|
|
|
|
museum_logic: MuseumLogic = MockMuseumLogic.return_value
|
|
|
|
|
museum_logic.can_donate_museum_items.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_donate_museum_artifacts.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_find_museum_artifacts.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_find_museum_minerals.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_find_museum_items.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_complete_museum.return_value = DisabledMuseumRule()
|
|
|
|
|
museum_logic.can_donate.return_value = DisabledMuseumRule()
|
|
|
|
|
# Allowing calls to museum rules since a lot of other logic depends on it, for minerals for instance.
|
|
|
|
|
museum_logic.can_find_museum_item.return_value = true_
|
|
|
|
|
|
|
|
|
|
regions = {region.name for region in self.multiworld.regions}
|
|
|
|
|
self.world.logic = StardewLogic(self.player, self.world.options, self.world.content, regions)
|
|
|
|
|
self.world.set_rules()
|
|
|
|
|
|
|
|
|
|
self.collect_everything()
|
|
|
|
|
for location in self.get_real_locations():
|
|
|
|
|
with self.subTest(location.name):
|
|
|
|
|
self.assert_can_reach_location(location)
|