mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-14 00:53:28 -07:00
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.
154 lines
9.0 KiB
Python
154 lines
9.0 KiB
Python
from .pelican_town import pelican_town as pelican_town_content_pack
|
|
from ..game_content import ContentPack, StardewContent
|
|
from ...data import villagers_data, fish_data
|
|
from ...data.animal import Animal, AnimalName, OstrichIncubatorSource
|
|
from ...data.fish_data import FishingSource
|
|
from ...data.game_item import ItemTag, Tag, CustomRuleSource
|
|
from ...data.harvest import ForagingSource, HarvestFruitTreeSource, HarvestCropSource
|
|
from ...data.hats_data import Hats
|
|
from ...data.monster_data import MonsterSource
|
|
from ...data.requirement import WalnutRequirement, ForgeInfinityWeaponRequirement, CookedRecipesRequirement, \
|
|
CaughtFishRequirement, FullShipmentRequirement, RegionRequirement, \
|
|
AllAchievementsRequirement, PerfectionPercentRequirement, ReadAllBooksRequirement, HasItemRequirement, ToolRequirement
|
|
from ...data.shop import ShopSource, HatMouseSource
|
|
from ...logic.tailoring_logic import TailoringSource
|
|
from ...logic.time_logic import MAX_MONTHS
|
|
from ...strings.animal_product_names import AnimalProduct
|
|
from ...strings.book_names import Book
|
|
from ...strings.building_names import Building
|
|
from ...strings.crop_names import Fruit, Vegetable
|
|
from ...strings.currency_names import Currency
|
|
from ...strings.fish_names import Fish
|
|
from ...strings.forageable_names import Forageable, Mushroom
|
|
from ...strings.fruit_tree_names import Sapling
|
|
from ...strings.generic_names import Generic
|
|
from ...strings.geode_names import Geode
|
|
from ...strings.material_names import Material
|
|
from ...strings.metal_names import Fossil, Mineral
|
|
from ...strings.monster_names import Monster
|
|
from ...strings.region_names import Region, LogicRegion
|
|
from ...strings.season_names import Season
|
|
from ...strings.seed_names import Seed, TreeSeed
|
|
from ...strings.tool_names import Tool
|
|
|
|
|
|
class GingerIslandContentPack(ContentPack):
|
|
|
|
def harvest_source_hook(self, content: StardewContent):
|
|
content.tag_item(Fruit.banana, ItemTag.FRUIT)
|
|
content.tag_item(Fruit.pineapple, ItemTag.FRUIT)
|
|
content.tag_item(Fruit.mango, ItemTag.FRUIT)
|
|
content.tag_item(Vegetable.taro_root, ItemTag.VEGETABLE)
|
|
content.tag_item(Mushroom.magma_cap, ItemTag.EDIBLE_MUSHROOM)
|
|
|
|
|
|
ginger_island_content_pack = GingerIslandContentPack(
|
|
"Ginger Island (Vanilla)",
|
|
weak_dependencies=(
|
|
pelican_town_content_pack.name,
|
|
),
|
|
harvest_sources={
|
|
# Foraging
|
|
Forageable.dragon_tooth: (
|
|
Tag(ItemTag.FORAGE),
|
|
ForagingSource(regions=(Region.volcano_floor_10,)),
|
|
),
|
|
Forageable.ginger: (
|
|
Tag(ItemTag.FORAGE),
|
|
ForagingSource(regions=(Region.island_west,),
|
|
other_requirements=(ToolRequirement(Tool.hoe),)),
|
|
),
|
|
Mushroom.magma_cap: (
|
|
Tag(ItemTag.FORAGE),
|
|
ForagingSource(regions=(Region.volcano_floor_5,)),
|
|
),
|
|
|
|
# Fruit tree
|
|
Fruit.banana: (HarvestFruitTreeSource(sapling=Sapling.banana, seasons=(Season.summer,)),),
|
|
Fruit.mango: (HarvestFruitTreeSource(sapling=Sapling.mango, seasons=(Season.summer,)),),
|
|
|
|
# Crop
|
|
Vegetable.taro_root: (HarvestCropSource(seed=Seed.taro, seasons=(Season.summer,)),),
|
|
Fruit.pineapple: (HarvestCropSource(seed=Seed.pineapple, seasons=(Season.summer,)),),
|
|
|
|
# Temporary animal stuff, will be moved once animal products are properly content-packed
|
|
AnimalProduct.ostrich_egg_starter: (CustomRuleSource(lambda logic: logic.tool.can_forage(Generic.any, Region.island_north, True)
|
|
& logic.has(Forageable.journal_scrap)
|
|
& logic.region.can_reach(Region.volcano_floor_5)),),
|
|
AnimalProduct.ostrich_egg: (CustomRuleSource(lambda logic: logic.has(AnimalProduct.ostrich_egg_starter)
|
|
| logic.animal.has_animal(AnimalName.ostrich)),),
|
|
|
|
},
|
|
shop_sources={
|
|
Seed.taro: (ShopSource(items_price=((2, Fossil.bone_fragment),), shop_region=Region.island_trader),),
|
|
Seed.pineapple: (ShopSource(items_price=((1, Mushroom.magma_cap),), shop_region=Region.island_trader),),
|
|
Sapling.banana: (ShopSource(items_price=((5, Forageable.dragon_tooth),), shop_region=Region.island_trader),),
|
|
Sapling.mango: (ShopSource(items_price=((75, Fish.mussel_node),), shop_region=Region.island_trader),),
|
|
|
|
# This one is 10 diamonds, should maybe add time?
|
|
Book.the_diamond_hunter: (
|
|
Tag(ItemTag.BOOK, ItemTag.BOOK_POWER),
|
|
ShopSource(items_price=((10, Mineral.diamond),), shop_region=Region.volcano_dwarf_shop),
|
|
),
|
|
Book.queen_of_sauce_cookbook: (
|
|
Tag(ItemTag.BOOK, ItemTag.BOOK_SKILL),
|
|
ShopSource(price=50000, shop_region=LogicRegion.bookseller_permanent, other_requirements=(WalnutRequirement(100),)),), # Worst book ever
|
|
},
|
|
fishes=(
|
|
# TODO override region so no need to add inaccessible regions in logic
|
|
fish_data.blue_discus,
|
|
fish_data.lionfish,
|
|
fish_data.midnight_carp,
|
|
fish_data.pufferfish,
|
|
fish_data.stingray,
|
|
fish_data.super_cucumber,
|
|
fish_data.tilapia,
|
|
fish_data.tuna
|
|
),
|
|
villagers=(
|
|
villagers_data.leo,
|
|
),
|
|
animals=(
|
|
Animal(AnimalName.ostrich,
|
|
required_building=Building.barn,
|
|
sources=(
|
|
OstrichIncubatorSource(AnimalProduct.ostrich_egg_starter),
|
|
)),
|
|
),
|
|
hat_sources={
|
|
Hats.infinity_crown: (Tag(ItemTag.HAT), HatMouseSource(price=1000, unlock_requirements=(ForgeInfinityWeaponRequirement(),)),),
|
|
Hats.archers_cap: (Tag(ItemTag.HAT), HatMouseSource(price=1000, unlock_requirements=(CookedRecipesRequirement(9999),)),),
|
|
Hats.chef_hat: (Tag(ItemTag.HAT), HatMouseSource(price=1000, unlock_requirements=(CookedRecipesRequirement(9999),)),),
|
|
Hats.eye_patch: (Tag(ItemTag.HAT), HatMouseSource(price=1000, unlock_requirements=(CaughtFishRequirement(9999, unique=True),)),),
|
|
Hats.cowpoke_hat: (Tag(ItemTag.HAT), HatMouseSource(price=1000, unlock_requirements=(FullShipmentRequirement(),)),),
|
|
Hats.goblin_mask: (Tag(ItemTag.HAT), HatMouseSource(price=10000, unlock_requirements=(FullShipmentRequirement(),)),),
|
|
Hats.elegant_turban: (Tag(ItemTag.HAT), HatMouseSource(price=50000, unlock_requirements=(AllAchievementsRequirement(),)),),
|
|
Hats.junimo_hat: (Tag(ItemTag.HAT), HatMouseSource(price=25000, unlock_requirements=(PerfectionPercentRequirement(100),)),),
|
|
Hats.paper_hat: (Tag(ItemTag.HAT), HatMouseSource(price=10000, unlock_requirements=(RegionRequirement(Region.island_south),)),),
|
|
Hats.pageboy_cap: (Tag(ItemTag.HAT), HatMouseSource(price=5000, unlock_requirements=(ReadAllBooksRequirement(),)),),
|
|
|
|
Hats.concerned_ape_mask: (Tag(ItemTag.HAT), ShopSource(price=10000, shop_region=LogicRegion.lost_items_shop,
|
|
other_requirements=(PerfectionPercentRequirement(100), RegionRequirement(Region.volcano_floor_10))),),
|
|
Hats.golden_helmet: (Tag(ItemTag.HAT), ShopSource(price=10000, shop_region=LogicRegion.lost_items_shop,
|
|
other_requirements=(RegionRequirement(Region.blacksmith), HasItemRequirement(Geode.golden_coconut),)),),
|
|
Hats.bluebird_mask: (Tag(ItemTag.HAT), ShopSource(price=30, currency=Vegetable.taro_root, shop_region=Region.island_trader),),
|
|
Hats.deluxe_cowboy_hat: (Tag(ItemTag.HAT), ShopSource(price=30, currency=Vegetable.taro_root, shop_region=Region.island_trader),),
|
|
Hats.small_cap: (Tag(ItemTag.HAT), ShopSource(price=30, currency=Vegetable.taro_root, shop_region=Region.island_trader),),
|
|
Hats.mr_qis_hat: (Tag(ItemTag.HAT), ShopSource(price=5, currency=Currency.qi_gem, shop_region=Region.qi_walnut_room),),
|
|
Hats.pink_bow: (Tag(ItemTag.HAT), ShopSource(price=10000, shop_region=Region.volcano_dwarf_shop),),
|
|
|
|
Hats.tiger_hat: (Tag(ItemTag.HAT), MonsterSource(monsters=(Monster.tiger_slime,), amount_tier=MAX_MONTHS,
|
|
other_requirements=(RegionRequirement(region=Region.adventurer_guild),)),),
|
|
Hats.deluxe_pirate_hat: (Tag(ItemTag.HAT), ForagingSource(regions=(Region.volcano, Region.volcano_floor_5, Region.volcano_floor_10,),
|
|
require_all_regions=True),),
|
|
|
|
Hats.foragers_hat: (Tag(ItemTag.HAT), TailoringSource(tailoring_items=(Forageable.ginger,)),),
|
|
Hats.sunglasses: (Tag(ItemTag.HAT), TailoringSource(tailoring_items=(Material.cinder_shard,)),),
|
|
Hats.swashbuckler_hat: (Tag(ItemTag.HAT), TailoringSource(tailoring_items=(Forageable.dragon_tooth,)),),
|
|
Hats.warrior_helmet: (Tag(ItemTag.HAT), TailoringSource(tailoring_items=(AnimalProduct.ostrich_egg,)),),
|
|
Hats.star_helmet: (Tag(ItemTag.HAT), TailoringSource(tailoring_items=(TreeSeed.mushroom,)),),
|
|
|
|
Hats.frog_hat: (Tag(ItemTag.HAT), FishingSource(region=Region.gourmand_frog_cave,),),
|
|
},
|
|
)
|