| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | import csv | 
					
						
							|  |  |  | import enum | 
					
						
							|  |  |  | from dataclasses import dataclass | 
					
						
							|  |  |  | from random import Random | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from typing import Optional, Dict, Protocol, List, FrozenSet, Iterable | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | from . import data | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from .bundles.bundle_room import BundleRoom | 
					
						
							| 
									
										
										
											
												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 .content.game_content import StardewContent | 
					
						
							|  |  |  | from .data.game_item import ItemTag | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  | from .data.museum_data import all_museum_items | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from .mods.mod_data import ModNames | 
					
						
							| 
									
										
										
											
												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 .options import ExcludeGingerIsland, ArcadeMachineLocations, SpecialOrderLocations, Museumsanity, \ | 
					
						
							|  |  |  |     FestivalLocations, SkillProgression, BuildingProgression, ToolProgression, ElevatorProgression, BackpackProgression, FarmType | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from .options import StardewValleyOptions, Craftsanity, Chefsanity, Cooksanity, Shipsanity, Monstersanity | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | from .strings.goal_names import Goal | 
					
						
							| 
									
										
										
											
												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 .strings.quest_names import ModQuest, Quest | 
					
						
							|  |  |  | from .strings.region_names import Region, LogicRegion | 
					
						
							|  |  |  | from .strings.villager_names import NPC | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | LOCATION_CODE_OFFSET = 717000 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class LocationTags(enum.Enum): | 
					
						
							|  |  |  |     MANDATORY = enum.auto() | 
					
						
							|  |  |  |     BUNDLE = enum.auto() | 
					
						
							|  |  |  |     COMMUNITY_CENTER_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     CRAFTS_ROOM_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     PANTRY_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     FISH_TANK_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     BOILER_ROOM_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     BULLETIN_BOARD_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     VAULT_BUNDLE = enum.auto() | 
					
						
							|  |  |  |     COMMUNITY_CENTER_ROOM = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     RACCOON_BUNDLES = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     BACKPACK = enum.auto() | 
					
						
							|  |  |  |     TOOL_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     HOE_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     PICKAXE_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     AXE_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     WATERING_CAN_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     TRASH_CAN_UPGRADE = enum.auto() | 
					
						
							|  |  |  |     FISHING_ROD_UPGRADE = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     PAN_UPGRADE = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     THE_MINES_TREASURE = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     CROPSANITY = enum.auto() | 
					
						
							|  |  |  |     ELEVATOR = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     SKILL_LEVEL = enum.auto() | 
					
						
							|  |  |  |     FARMING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     FISHING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     FORAGING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     COMBAT_LEVEL = enum.auto() | 
					
						
							|  |  |  |     MINING_LEVEL = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     MASTERY_LEVEL = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     BUILDING_BLUEPRINT = enum.auto() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     STORY_QUEST = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     ARCADE_MACHINE = enum.auto() | 
					
						
							|  |  |  |     ARCADE_MACHINE_VICTORY = enum.auto() | 
					
						
							|  |  |  |     JOTPK = enum.auto() | 
					
						
							|  |  |  |     JUNIMO_KART = enum.auto() | 
					
						
							|  |  |  |     HELP_WANTED = enum.auto() | 
					
						
							|  |  |  |     TRAVELING_MERCHANT = enum.auto() | 
					
						
							|  |  |  |     FISHSANITY = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |     MUSEUM_MILESTONES = enum.auto() | 
					
						
							|  |  |  |     MUSEUM_DONATIONS = enum.auto() | 
					
						
							|  |  |  |     FRIENDSANITY = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     FESTIVAL = enum.auto() | 
					
						
							|  |  |  |     FESTIVAL_HARD = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     DESERT_FESTIVAL_CHEF = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     SPECIAL_ORDER_BOARD = enum.auto() | 
					
						
							|  |  |  |     SPECIAL_ORDER_QI = enum.auto() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     REQUIRES_QI_ORDERS = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     REQUIRES_MASTERIES = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     GINGER_ISLAND = enum.auto() | 
					
						
							|  |  |  |     WALNUT_PURCHASE = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     WALNUTSANITY = enum.auto() | 
					
						
							|  |  |  |     WALNUTSANITY_PUZZLE = enum.auto() | 
					
						
							|  |  |  |     WALNUTSANITY_BUSH = enum.auto() | 
					
						
							|  |  |  |     WALNUTSANITY_DIG = enum.auto() | 
					
						
							|  |  |  |     WALNUTSANITY_REPEATABLE = enum.auto() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     BABY = enum.auto() | 
					
						
							|  |  |  |     MONSTERSANITY = enum.auto() | 
					
						
							|  |  |  |     MONSTERSANITY_GOALS = enum.auto() | 
					
						
							|  |  |  |     MONSTERSANITY_PROGRESSIVE_GOALS = enum.auto() | 
					
						
							|  |  |  |     MONSTERSANITY_MONSTER = enum.auto() | 
					
						
							|  |  |  |     SHIPSANITY = enum.auto() | 
					
						
							|  |  |  |     SHIPSANITY_CROP = enum.auto() | 
					
						
							|  |  |  |     SHIPSANITY_FISH = enum.auto() | 
					
						
							|  |  |  |     SHIPSANITY_FULL_SHIPMENT = enum.auto() | 
					
						
							|  |  |  |     COOKSANITY = enum.auto() | 
					
						
							|  |  |  |     COOKSANITY_QOS = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY_QOS = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY_PURCHASE = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY_FRIENDSHIP = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY_SKILL = enum.auto() | 
					
						
							|  |  |  |     CHEFSANITY_STARTER = enum.auto() | 
					
						
							|  |  |  |     CRAFTSANITY = enum.auto() | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     BOOKSANITY = enum.auto() | 
					
						
							|  |  |  |     BOOKSANITY_POWER = enum.auto() | 
					
						
							|  |  |  |     BOOKSANITY_SKILL = enum.auto() | 
					
						
							|  |  |  |     BOOKSANITY_LOST = enum.auto() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     # Mods | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     # Skill Mods | 
					
						
							|  |  |  |     LUCK_LEVEL = enum.auto() | 
					
						
							|  |  |  |     BINNING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     COOKING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     SOCIALIZING_LEVEL = enum.auto() | 
					
						
							|  |  |  |     MAGIC_LEVEL = enum.auto() | 
					
						
							|  |  |  |     ARCHAEOLOGY_LEVEL = enum.auto() | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @dataclass(frozen=True) | 
					
						
							|  |  |  | class LocationData: | 
					
						
							|  |  |  |     code_without_offset: Optional[int] | 
					
						
							|  |  |  |     region: str | 
					
						
							|  |  |  |     name: str | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     mod_name: Optional[str] = None | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     tags: FrozenSet[LocationTags] = frozenset() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @property | 
					
						
							|  |  |  |     def code(self) -> Optional[int]: | 
					
						
							|  |  |  |         return LOCATION_CODE_OFFSET + self.code_without_offset if self.code_without_offset is not None else None | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class StardewLocationCollector(Protocol): | 
					
						
							|  |  |  |     def __call__(self, name: str, code: Optional[int], region: str) -> None: | 
					
						
							|  |  |  |         raise NotImplementedError | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def load_location_csv() -> List[LocationData]: | 
					
						
							|  |  |  |     try: | 
					
						
							|  |  |  |         from importlib.resources import files | 
					
						
							|  |  |  |     except ImportError: | 
					
						
							|  |  |  |         from importlib_resources import files | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     with files(data).joinpath("locations.csv").open() as file: | 
					
						
							|  |  |  |         reader = csv.DictReader(file) | 
					
						
							|  |  |  |         return [LocationData(int(location["id"]) if location["id"] else None, | 
					
						
							|  |  |  |                              location["region"], | 
					
						
							|  |  |  |                              location["name"], | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |                              str(location["mod_name"]) if location["mod_name"] else None, | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |                              frozenset(LocationTags[group] | 
					
						
							|  |  |  |                                        for group in location["tags"].split(",") | 
					
						
							|  |  |  |                                        if group)) | 
					
						
							|  |  |  |                 for location in reader] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | events_locations = [ | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     LocationData(None, Region.farm_house, Goal.grandpa_evaluation), | 
					
						
							|  |  |  |     LocationData(None, Region.community_center, Goal.community_center), | 
					
						
							|  |  |  |     LocationData(None, Region.mines_floor_120, Goal.bottom_of_the_mines), | 
					
						
							|  |  |  |     LocationData(None, Region.skull_cavern_100, Goal.cryptic_note), | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     LocationData(None, Region.beach, Goal.master_angler), | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     LocationData(None, Region.museum, Goal.complete_museum), | 
					
						
							|  |  |  |     LocationData(None, Region.farm_house, Goal.full_house), | 
					
						
							|  |  |  |     LocationData(None, Region.island_west, Goal.greatest_walnut_hunter), | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     LocationData(None, Region.adventurer_guild, Goal.protector_of_the_valley), | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     LocationData(None, LogicRegion.shipping, Goal.full_shipment), | 
					
						
							|  |  |  |     LocationData(None, LogicRegion.kitchen, Goal.gourmet_chef), | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     LocationData(None, Region.farm, Goal.craft_master), | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     LocationData(None, LogicRegion.shipping, Goal.legend), | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     LocationData(None, Region.farm, Goal.mystery_of_the_stardrops), | 
					
						
							|  |  |  |     LocationData(None, Region.farm, Goal.allsanity), | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     LocationData(None, Region.qi_walnut_room, Goal.perfection), | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all_locations = load_location_csv() + events_locations | 
					
						
							|  |  |  | location_table: Dict[str, LocationData] = {location.name: location for location in all_locations} | 
					
						
							|  |  |  | locations_by_tag: Dict[LocationTags, List[LocationData]] = {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def initialize_groups(): | 
					
						
							|  |  |  |     for location in all_locations: | 
					
						
							|  |  |  |         for tag in location.tags: | 
					
						
							|  |  |  |             location_group = locations_by_tag.get(tag, list()) | 
					
						
							|  |  |  |             location_group.append(location) | 
					
						
							|  |  |  |             locations_by_tag[tag] = location_group | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | initialize_groups() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_cropsanity_locations(randomized_locations: List[LocationData], content: StardewContent): | 
					
						
							|  |  |  |     cropsanity = content.features.cropsanity | 
					
						
							|  |  |  |     if not cropsanity.is_enabled: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     randomized_locations.extend(location_table[cropsanity.to_location_name(item.name)] | 
					
						
							|  |  |  |                                 for item in content.find_tagged_items(ItemTag.CROPSANITY)) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def extend_quests_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.quest_locations < 0: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     story_quest_locations = locations_by_tag[LocationTags.STORY_QUEST] | 
					
						
							|  |  |  |     story_quest_locations = filter_disabled_locations(options, story_quest_locations) | 
					
						
							|  |  |  |     randomized_locations.extend(story_quest_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     for i in range(0, options.quest_locations.value): | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |         batch = i // 7 | 
					
						
							|  |  |  |         index_this_batch = i % 7 | 
					
						
							|  |  |  |         if index_this_batch < 4: | 
					
						
							|  |  |  |             randomized_locations.append( | 
					
						
							|  |  |  |                 location_table[f"Help Wanted: Item Delivery {(batch * 4) + index_this_batch + 1}"]) | 
					
						
							|  |  |  |         elif index_this_batch == 4: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[f"Help Wanted: Fishing {batch + 1}"]) | 
					
						
							|  |  |  |         elif index_this_batch == 5: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[f"Help Wanted: Slay Monsters {batch + 1}"]) | 
					
						
							|  |  |  |         elif index_this_batch == 6: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[f"Help Wanted: Gathering {batch + 1}"]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_fishsanity_locations(randomized_locations: List[LocationData], content: StardewContent, random: Random): | 
					
						
							|  |  |  |     fishsanity = content.features.fishsanity | 
					
						
							|  |  |  |     if not fishsanity.is_enabled: | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |         return | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							|  |  |  |     for fish in content.fishes.values(): | 
					
						
							|  |  |  |         if not fishsanity.is_included(fish): | 
					
						
							|  |  |  |             continue | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         if fishsanity.is_randomized and random.random() >= fishsanity.randomization_ratio: | 
					
						
							|  |  |  |             continue | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         randomized_locations.append(location_table[fishsanity.to_location_name(fish.name)]) | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | def extend_museumsanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions, random: Random): | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |     prefix = "Museumsanity: " | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if options.museumsanity == Museumsanity.option_none: | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |         return | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     elif options.museumsanity == Museumsanity.option_milestones: | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.MUSEUM_MILESTONES]) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     elif options.museumsanity == Museumsanity.option_randomized: | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         randomized_locations.extend(location_table[f"{prefix}{museum_item.item_name}"] | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |                                     for museum_item in all_museum_items if random.random() < 0.4) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     elif options.museumsanity == Museumsanity.option_all: | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         randomized_locations.extend(location_table[f"{prefix}{museum_item.item_name}"] for museum_item in all_museum_items) | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_friendsanity_locations(randomized_locations: List[LocationData], content: StardewContent): | 
					
						
							|  |  |  |     friendsanity = content.features.friendsanity | 
					
						
							|  |  |  |     if not friendsanity.is_enabled: | 
					
						
							| 
									
										
										
										
											2023-04-10 19:44:59 -04:00
										 |  |  |         return | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     randomized_locations.append(location_table[f"Spouse Stardrop"]) | 
					
						
							|  |  |  |     extend_baby_locations(randomized_locations) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							|  |  |  |     for villager in content.villagers.values(): | 
					
						
							|  |  |  |         for heart in friendsanity.get_randomized_hearts(villager): | 
					
						
							|  |  |  |             randomized_locations.append(location_table[friendsanity.to_location_name(villager.name, heart)]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     for heart in friendsanity.get_pet_randomized_hearts(): | 
					
						
							|  |  |  |         randomized_locations.append(location_table[friendsanity.to_location_name(NPC.pet, heart)]) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def extend_baby_locations(randomized_locations: List[LocationData]): | 
					
						
							|  |  |  |     baby_locations = [location for location in locations_by_tag[LocationTags.BABY]] | 
					
						
							|  |  |  |     randomized_locations.extend(baby_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_festival_locations(randomized_locations: List[LocationData], options: StardewValleyOptions, random: Random): | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if options.festival_locations == FestivalLocations.option_disabled: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     festival_locations = locations_by_tag[LocationTags.FESTIVAL] | 
					
						
							|  |  |  |     randomized_locations.extend(festival_locations) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_hard_festival_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     extend_desert_festival_chef_locations(randomized_locations, options, random) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_hard_festival_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if options.festival_locations != FestivalLocations.option_hard: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     hard_festival_locations = locations_by_tag[LocationTags.FESTIVAL_HARD] | 
					
						
							|  |  |  |     randomized_locations.extend(hard_festival_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 extend_desert_festival_chef_locations(randomized_locations: List[LocationData], options: StardewValleyOptions, random: Random): | 
					
						
							|  |  |  |     festival_chef_locations = locations_by_tag[LocationTags.DESERT_FESTIVAL_CHEF] | 
					
						
							|  |  |  |     number_to_add = 5 if options.festival_locations == FestivalLocations.option_easy else 10 | 
					
						
							|  |  |  |     locations_to_add = random.sample(festival_chef_locations, number_to_add) | 
					
						
							|  |  |  |     randomized_locations.extend(locations_to_add) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | def extend_special_order_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     if options.special_order_locations & SpecialOrderLocations.option_board: | 
					
						
							|  |  |  |         board_locations = filter_disabled_locations(options, locations_by_tag[LocationTags.SPECIAL_ORDER_BOARD]) | 
					
						
							|  |  |  |         randomized_locations.extend(board_locations) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     include_island = options.exclude_ginger_island == ExcludeGingerIsland.option_false | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     if options.special_order_locations & SpecialOrderLocations.value_qi and include_island: | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |         include_arcade = options.arcade_machine_locations != ArcadeMachineLocations.option_disabled | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         qi_orders = [location for location in locations_by_tag[LocationTags.SPECIAL_ORDER_QI] if | 
					
						
							|  |  |  |                      include_arcade or LocationTags.JUNIMO_KART not in location.tags] | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         randomized_locations.extend(qi_orders) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | def extend_walnut_purchase_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.exclude_ginger_island == ExcludeGingerIsland.option_true: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         return | 
					
						
							|  |  |  |     randomized_locations.append(location_table["Repair Ticket Machine"]) | 
					
						
							|  |  |  |     randomized_locations.append(location_table["Repair Boat Hull"]) | 
					
						
							|  |  |  |     randomized_locations.append(location_table["Repair Boat Anchor"]) | 
					
						
							|  |  |  |     randomized_locations.append(location_table["Open Professor Snail Cave"]) | 
					
						
							|  |  |  |     randomized_locations.append(location_table["Complete Island Field Office"]) | 
					
						
							|  |  |  |     randomized_locations.extend(locations_by_tag[LocationTags.WALNUT_PURCHASE]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def extend_mandatory_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     mandatory_locations = [location for location in locations_by_tag[LocationTags.MANDATORY]] | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     filtered_mandatory_locations = filter_disabled_locations(options, mandatory_locations) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     randomized_locations.extend(filtered_mandatory_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def extend_situational_quest_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.quest_locations < 0: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     if ModNames.distant_lands in options.mods: | 
					
						
							|  |  |  |         if ModNames.alecto in options.mods: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[ModQuest.WitchOrder]) | 
					
						
							|  |  |  |         else: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[ModQuest.CorruptedCropsTask]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_bundle_locations(randomized_locations: List[LocationData], bundle_rooms: List[BundleRoom]): | 
					
						
							|  |  |  |     for room in bundle_rooms: | 
					
						
							|  |  |  |         room_location = f"Complete {room.name}" | 
					
						
							|  |  |  |         if room_location in location_table: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[room_location]) | 
					
						
							|  |  |  |         for bundle in room.bundles: | 
					
						
							|  |  |  |             randomized_locations.append(location_table[bundle.name]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | def extend_backpack_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.backpack_progression == BackpackProgression.option_vanilla: | 
					
						
							| 
									
										
										
										
											2023-07-24 19:52:15 -04:00
										 |  |  |         return | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     backpack_locations = [location for location in locations_by_tag[LocationTags.BACKPACK]] | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     filtered_backpack_locations = filter_modded_locations(options, backpack_locations) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     randomized_locations.extend(filtered_backpack_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  | def extend_elevator_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.elevator_progression == ElevatorProgression.option_vanilla: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         return | 
					
						
							|  |  |  |     elevator_locations = [location for location in locations_by_tag[LocationTags.ELEVATOR]] | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     filtered_elevator_locations = filter_modded_locations(options, elevator_locations) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |     randomized_locations.extend(filtered_elevator_locations) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def extend_monstersanity_locations(randomized_locations: List[LocationData], options): | 
					
						
							|  |  |  |     monstersanity = options.monstersanity | 
					
						
							|  |  |  |     if monstersanity == Monstersanity.option_none: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     if monstersanity == Monstersanity.option_one_per_monster or monstersanity == Monstersanity.option_split_goals: | 
					
						
							|  |  |  |         monster_locations = [location for location in locations_by_tag[LocationTags.MONSTERSANITY_MONSTER]] | 
					
						
							|  |  |  |         filtered_monster_locations = filter_disabled_locations(options, monster_locations) | 
					
						
							|  |  |  |         randomized_locations.extend(filtered_monster_locations) | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     goal_locations = [location for location in locations_by_tag[LocationTags.MONSTERSANITY_GOALS]] | 
					
						
							|  |  |  |     filtered_goal_locations = filter_disabled_locations(options, goal_locations) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_goal_locations) | 
					
						
							|  |  |  |     if monstersanity != Monstersanity.option_progressive_goals: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     progressive_goal_locations = [location for location in locations_by_tag[LocationTags.MONSTERSANITY_PROGRESSIVE_GOALS]] | 
					
						
							|  |  |  |     filtered_progressive_goal_locations = filter_disabled_locations(options, progressive_goal_locations) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_progressive_goal_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_shipsanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     shipsanity = options.shipsanity | 
					
						
							|  |  |  |     if shipsanity == Shipsanity.option_none: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     if shipsanity == Shipsanity.option_everything: | 
					
						
							|  |  |  |         ship_locations = [location for location in locations_by_tag[LocationTags.SHIPSANITY]] | 
					
						
							|  |  |  |         filtered_ship_locations = filter_disabled_locations(options, ship_locations) | 
					
						
							|  |  |  |         randomized_locations.extend(filtered_ship_locations) | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     shipsanity_locations = set() | 
					
						
							|  |  |  |     if shipsanity == Shipsanity.option_fish or shipsanity == Shipsanity.option_full_shipment_with_fish: | 
					
						
							|  |  |  |         shipsanity_locations = shipsanity_locations.union({location for location in locations_by_tag[LocationTags.SHIPSANITY_FISH]}) | 
					
						
							|  |  |  |     if shipsanity == Shipsanity.option_crops: | 
					
						
							|  |  |  |         shipsanity_locations = shipsanity_locations.union({location for location in locations_by_tag[LocationTags.SHIPSANITY_CROP]}) | 
					
						
							|  |  |  |     if shipsanity == Shipsanity.option_full_shipment or shipsanity == Shipsanity.option_full_shipment_with_fish: | 
					
						
							|  |  |  |         shipsanity_locations = shipsanity_locations.union({location for location in locations_by_tag[LocationTags.SHIPSANITY_FULL_SHIPMENT]}) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     filtered_shipsanity_locations = filter_disabled_locations(options, list(shipsanity_locations)) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_shipsanity_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_cooksanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     cooksanity = options.cooksanity | 
					
						
							|  |  |  |     if cooksanity == Cooksanity.option_none: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  |     if cooksanity == Cooksanity.option_queen_of_sauce: | 
					
						
							|  |  |  |         cooksanity_locations = (location for location in locations_by_tag[LocationTags.COOKSANITY_QOS]) | 
					
						
							|  |  |  |     else: | 
					
						
							|  |  |  |         cooksanity_locations = (location for location in locations_by_tag[LocationTags.COOKSANITY]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     filtered_cooksanity_locations = filter_disabled_locations(options, cooksanity_locations) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_cooksanity_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_chefsanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     chefsanity = options.chefsanity | 
					
						
							|  |  |  |     if chefsanity == Chefsanity.option_none: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     chefsanity_locations_by_name = {}  # Dictionary to not make duplicates | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     if chefsanity & Chefsanity.option_queen_of_sauce: | 
					
						
							|  |  |  |         chefsanity_locations_by_name.update({location.name: location for location in locations_by_tag[LocationTags.CHEFSANITY_QOS]}) | 
					
						
							|  |  |  |     if chefsanity & Chefsanity.option_purchases: | 
					
						
							|  |  |  |         chefsanity_locations_by_name.update({location.name: location for location in locations_by_tag[LocationTags.CHEFSANITY_PURCHASE]}) | 
					
						
							|  |  |  |     if chefsanity & Chefsanity.option_friendship: | 
					
						
							|  |  |  |         chefsanity_locations_by_name.update({location.name: location for location in locations_by_tag[LocationTags.CHEFSANITY_FRIENDSHIP]}) | 
					
						
							|  |  |  |     if chefsanity & Chefsanity.option_skills: | 
					
						
							|  |  |  |         chefsanity_locations_by_name.update({location.name: location for location in locations_by_tag[LocationTags.CHEFSANITY_SKILL]}) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     filtered_chefsanity_locations = filter_disabled_locations(options, list(chefsanity_locations_by_name.values())) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_chefsanity_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_craftsanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if options.craftsanity == Craftsanity.option_none: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     craftsanity_locations = [craft for craft in locations_by_tag[LocationTags.CRAFTSANITY]] | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     filtered_craftsanity_locations = filter_disabled_locations(options, craftsanity_locations) | 
					
						
							|  |  |  |     randomized_locations.extend(filtered_craftsanity_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_book_locations(randomized_locations: List[LocationData], content: StardewContent): | 
					
						
							|  |  |  |     booksanity = content.features.booksanity | 
					
						
							|  |  |  |     if not booksanity.is_enabled: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     book_locations = [] | 
					
						
							|  |  |  |     for book in content.find_tagged_items(ItemTag.BOOK): | 
					
						
							|  |  |  |         if booksanity.is_included(book): | 
					
						
							|  |  |  |             book_locations.append(location_table[booksanity.to_location_name(book.name)]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     book_locations.extend(location_table[booksanity.to_location_name(book)] for book in booksanity.get_randomized_lost_books()) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     randomized_locations.extend(book_locations) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def extend_walnutsanity_locations(randomized_locations: List[LocationData], options: StardewValleyOptions): | 
					
						
							|  |  |  |     if not options.walnutsanity: | 
					
						
							|  |  |  |         return | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     if "Puzzles" in options.walnutsanity: | 
					
						
							|  |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.WALNUTSANITY_PUZZLE]) | 
					
						
							|  |  |  |     if "Bushes" in options.walnutsanity: | 
					
						
							|  |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.WALNUTSANITY_BUSH]) | 
					
						
							|  |  |  |     if "Dig Spots" in options.walnutsanity: | 
					
						
							|  |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.WALNUTSANITY_DIG]) | 
					
						
							|  |  |  |     if "Repeatables" in options.walnutsanity: | 
					
						
							|  |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.WALNUTSANITY_REPEATABLE]) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | def create_locations(location_collector: StardewLocationCollector, | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |                      bundle_rooms: List[BundleRoom], | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |                      options: StardewValleyOptions, | 
					
						
							| 
									
										
										
											
												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
										 |  |  |                      content: StardewContent, | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |                      random: Random): | 
					
						
							|  |  |  |     randomized_locations = [] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_mandatory_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     extend_bundle_locations(randomized_locations, bundle_rooms) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_backpack_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     if options.tool_progression & ToolProgression.option_progressive: | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.TOOL_UPGRADE]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_elevator_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if not options.skill_progression == SkillProgression.option_vanilla: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         for location in locations_by_tag[LocationTags.SKILL_LEVEL]: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |             if location.mod_name is not None and location.mod_name not in options.mods: | 
					
						
							|  |  |  |                 continue | 
					
						
							|  |  |  |             if LocationTags.MASTERY_LEVEL in location.tags and options.skill_progression != SkillProgression.option_progressive_with_masteries: | 
					
						
							|  |  |  |                 continue | 
					
						
							|  |  |  |             randomized_locations.append(location_table[location.name]) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     if options.building_progression & BuildingProgression.option_progressive: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |         for location in locations_by_tag[LocationTags.BUILDING_BLUEPRINT]: | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |             if location.mod_name is None or location.mod_name in options.mods: | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  |                 randomized_locations.append(location_table[location.name]) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if options.arcade_machine_locations != ArcadeMachineLocations.option_disabled: | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.ARCADE_MACHINE_VICTORY]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     if options.arcade_machine_locations == ArcadeMachineLocations.option_full_shuffling: | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |         randomized_locations.extend(locations_by_tag[LocationTags.ARCADE_MACHINE]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     extend_cropsanity_locations(randomized_locations, content) | 
					
						
							|  |  |  |     extend_fishsanity_locations(randomized_locations, content, random) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_museumsanity_locations(randomized_locations, options, random) | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     extend_friendsanity_locations(randomized_locations, content) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     extend_festival_locations(randomized_locations, options, random) | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     extend_special_order_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_walnut_purchase_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     extend_monstersanity_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_shipsanity_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_cooksanity_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_chefsanity_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_craftsanity_locations(randomized_locations, options) | 
					
						
							|  |  |  |     extend_quests_locations(randomized_locations, options) | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     extend_book_locations(randomized_locations, content) | 
					
						
							|  |  |  |     extend_walnutsanity_locations(randomized_locations, options) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # Mods | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     extend_situational_quest_locations(randomized_locations, options) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-26 19:19:15 -05:00
										 |  |  |     for location_data in randomized_locations: | 
					
						
							|  |  |  |         location_collector(location_data.name, location_data.code, location_data.region) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 filter_farm_type(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							|  |  |  |     # On Meadowlands, "Feeding Animals" replaces "Raising Animals" | 
					
						
							|  |  |  |     if options.farm_type == FarmType.option_meadowlands: | 
					
						
							|  |  |  |         return (location for location in locations if location.name != Quest.raising_animals) | 
					
						
							|  |  |  |     else: | 
					
						
							|  |  |  |         return (location for location in locations if location.name != Quest.feeding_animals) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def filter_ginger_island(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							| 
									
										
										
										
											2023-10-10 15:30:20 -05:00
										 |  |  |     include_island = options.exclude_ginger_island == ExcludeGingerIsland.option_false | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     return (location for location in locations if include_island or LocationTags.GINGER_ISLAND not in location.tags) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def filter_qi_order_locations(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     include_qi_orders = options.special_order_locations & SpecialOrderLocations.value_qi | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     return (location for location in locations if include_qi_orders or LocationTags.REQUIRES_QI_ORDERS not in location.tags) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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 filter_masteries_locations(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							|  |  |  |     include_masteries = options.skill_progression == SkillProgression.option_progressive_with_masteries | 
					
						
							|  |  |  |     return (location for location in locations if include_masteries or LocationTags.REQUIRES_MASTERIES not in location.tags) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def filter_modded_locations(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							|  |  |  |     return (location for location in locations if location.mod_name is None or location.mod_name in options.mods) | 
					
						
							| 
									
										
										
										
											2023-07-19 14:26:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | def filter_disabled_locations(options: StardewValleyOptions, locations: Iterable[LocationData]) -> Iterable[LocationData]: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     locations_farm_filter = filter_farm_type(options, locations) | 
					
						
							|  |  |  |     locations_island_filter = filter_ginger_island(options, locations_farm_filter) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     locations_qi_filter = filter_qi_order_locations(options, locations_island_filter) | 
					
						
							| 
									
										
										
											
												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
										 |  |  |     locations_masteries_filter = filter_masteries_locations(options, locations_qi_filter) | 
					
						
							|  |  |  |     locations_mod_filter = filter_modded_locations(options, locations_masteries_filter) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     return locations_mod_filter |