Files
Archipelago/worlds/stardew_valley/test/rules/TestBundles.py
agilbert1412 1de91fab67 Stardew Valley: 7.x.x - The Jojapocalypse Update (#5432)
Major Content update for Stardew Valley

### Features
- New BundleRandomization Value: Meme Bundles - Over 100 custom bundles, designed to be jokes, references, trolls, etc
- New Setting: Bundles Per Room modifier
- New Setting: Backpack Size
- New Setting: Secretsanity - Checks for triggering easter eggs and secrets
- New Setting: Moviesanity - Checks for watching movies and sharing snacks with Villagers
- New Setting: Eatsanity - Checks for eating items
- New Setting: Hatsanity - Checks for wearing Hats
- New Setting: Start Without - Allows you to select any combination of various "starting" items, that you will actually not start with. Notably, tools, backpack slots, Day5 unlocks, etc.
- New Setting: Allowed Filler Items - Allows you to customize the filler items you'll get
- New Setting: Endgame Locations - Checks for various expensive endgame tasks and purchases
- New Shipsanity value: Crops and Fish
- New Settings: Jojapocalypse and settings to customize it
- Bundle Plando: Replaced with BundleWhitelist and BundleBlacklist, for more customization freedom
- Added a couple of Host.yaml settings to help hosts allow or ban specific difficult settings that could cause problems if the people don't know what they are signing up for.

Plus a truckload of improvements on the mod side, not seen in this PR.

### Removed features
- Integration for Stardew Valley Expanded. It is simply disabled, the code is all still there, but I'm extremely tired of providing tech support for it, plus Stardew Valley 1.7 was announced and that will break it again, so I'm done. When a maintainer steps up, it can be re-enabled.
2026-02-15 18:02:21 +01:00

79 lines
3.2 KiB
Python

from ..bases import SVTestBase
from ... import options, SeasonRandomization, StartWithoutOptionName
from ...options import BundleRandomization, StartWithout
from ...strings.bundle_names import BundleName
class TestBundlesLogic(SVTestBase):
options = {
StartWithout.internal_name: frozenset({StartWithoutOptionName.community_center, StartWithoutOptionName.buildings}),
options.SeasonRandomization: SeasonRandomization.option_disabled,
options.BundleRandomization: BundleRandomization.option_vanilla,
options.BundlePrice: options.BundlePrice.default,
}
def test_vault_2500g_bundle(self):
self.assert_cannot_reach_location("2,500g Bundle")
self.collect("Community Center Key")
self.collect("Forest Magic")
self.assert_cannot_reach_location("2,500g Bundle")
self.collect_lots_of_money()
self.assert_can_reach_location("2,500g Bundle")
class TestRemixedBundlesLogic(SVTestBase):
options = {
StartWithout.internal_name: frozenset({StartWithoutOptionName.community_center}),
options.SeasonRandomization: SeasonRandomization.option_disabled,
options.BundleRandomization: BundleRandomization.option_remixed,
options.BundlePrice: options.BundlePrice.default,
options.BundleWhitelist: frozenset({BundleName.sticky})
}
def test_sticky_bundle_has_grind_rules(self):
self.assert_cannot_reach_location("Sticky Bundle")
self.collect("Community Center Key")
self.collect("Forest Magic")
self.assert_cannot_reach_location("Sticky Bundle")
self.collect_all_the_money()
self.assert_can_reach_location("Sticky Bundle")
# The Randomness changed
# class TestRaccoonBundlesLogic(SVTestBase):
# options = {
# options.BundleRandomization: BundleRandomization.option_vanilla,
# options.BundlePrice: options.BundlePrice.option_normal,
# options.Craftsanity: options.Craftsanity.option_all,
# }
# seed = 2 # Magic seed that does what I want. Might need to get changed if we change the randomness behavior of raccoon bundles
#
# def test_raccoon_bundles_rely_on_previous_ones(self):
# self.collect("Forest Magic")
# self.collect("Landslide Removed")
# self.collect("Progressive Raccoon", 6)
# self.collect("Progressive Mine Elevator", 24)
# self.collect("Mining Level", 12)
# self.collect("Combat Level", 12)
# self.collect("Progressive Axe", 4)
# self.collect("Progressive Pickaxe", 4)
# self.collect("Progressive Weapon", 4)
# self.collect("Dehydrator Recipe")
# self.collect("Mushroom Boxes")
# self.collect("Progressive Fishing Rod", 4)
# self.collect("Fishing Level", 10)
# self.collect("Furnace Recipe")
#
# # The first raccoon bundle is a fishing one
# self.assert_cannot_reach_location("Raccoon Request 1")
# # The third raccoon bundle is a foraging one
# self.assert_cannot_reach_location("Raccoon Request 3")
#
# self.collect("Fish Smoker Recipe")
#
# self.assert_can_reach_location("Raccoon Request 1")
# self.assert_can_reach_location("Raccoon Request 3")