| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from functools import cached_property | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from Utils import cache_self1 | 
					
						
							|  |  |  | from .base_logic import BaseLogicMixin, BaseLogic | 
					
						
							| 
									
										
										
											
												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 ..data.harvest import HarvestCropSource | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from ..mods.logic.mod_skills_levels import get_mod_skill_levels | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  | from ..stardew_rule import StardewRule, true_, True_, False_ | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from ..strings.performance_names import Performance | 
					
						
							|  |  |  | from ..strings.quality_names import ForageQuality | 
					
						
							|  |  |  | from ..strings.region_names import Region | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  | from ..strings.skill_names import Skill, all_mod_skills, all_vanilla_skills | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | from ..strings.tool_names import ToolMaterial, Tool | 
					
						
							| 
									
										
										
											
												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.wallet_item_names import Wallet | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03: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
										 |  |  | vanilla_skill_items = ("Farming Level", "Mining Level", "Foraging Level", "Fishing Level", "Combat Level") | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SkillLogicMixin(BaseLogicMixin): | 
					
						
							|  |  |  |     def __init__(self, *args, **kwargs): | 
					
						
							|  |  |  |         super().__init__(*args, **kwargs) | 
					
						
							|  |  |  |         self.skill = SkillLogic(*args, **kwargs) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-23 11:31:08 -04:00
										 |  |  | class SkillLogic(BaseLogic): | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     # Should be cached | 
					
						
							|  |  |  |     def can_earn_level(self, skill: str, level: int) -> StardewRule: | 
					
						
							|  |  |  |         if level <= 0: | 
					
						
							|  |  |  |             return True_() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |         tool_level = min(4, (level - 1) // 2) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         tool_material = ToolMaterial.tiers[tool_level] | 
					
						
							| 
									
										
										
										
											2024-03-28 04:42:35 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |         previous_level_rule = self.logic.skill.has_previous_level(skill, level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |         if skill == Skill.fishing: | 
					
						
							| 
									
										
										
										
											2025-05-17 09:20:53 -04:00
										 |  |  |             # Not checking crab pot as this is used for not randomized skills logic, for which players need a fishing rod to start gaining xp. | 
					
						
							|  |  |  |             xp_rule = self.logic.tool.has_fishing_rod(max(tool_level, 3)) & self.logic.fishing.can_fish_anywhere() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         elif skill == Skill.farming: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |             xp_rule = self.can_get_farming_xp & self.logic.tool.has_tool(Tool.hoe, tool_material) & self.logic.tool.can_water(tool_level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         elif skill == Skill.foraging: | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |             xp_rule = (self.can_get_foraging_xp & self.logic.tool.has_tool(Tool.axe, tool_material)) | \ | 
					
						
							| 
									
										
										
											
												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
										 |  |  |                       self.logic.magic.can_use_clear_debris_instead_of_tool_level(tool_level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         elif skill == Skill.mining: | 
					
						
							|  |  |  |             xp_rule = self.logic.tool.has_tool(Tool.pickaxe, tool_material) | \ | 
					
						
							|  |  |  |                       self.logic.magic.can_use_clear_debris_instead_of_tool_level(tool_level) | 
					
						
							|  |  |  |             xp_rule = xp_rule & self.logic.region.can_reach(Region.mines_floor_5) | 
					
						
							|  |  |  |         elif skill == Skill.combat: | 
					
						
							|  |  |  |             combat_tier = Performance.tiers[tool_level] | 
					
						
							|  |  |  |             xp_rule = self.logic.combat.can_fight_at_level(combat_tier) | 
					
						
							|  |  |  |             xp_rule = xp_rule & self.logic.region.can_reach(Region.mines_floor_5) | 
					
						
							|  |  |  |         elif skill in all_mod_skills: | 
					
						
							|  |  |  |             # Ideal solution would be to add a logic registry, but I'm too lazy. | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |             return previous_level_rule & self.logic.mod.skill.can_earn_mod_skill_level(skill, level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         else: | 
					
						
							|  |  |  |             raise Exception(f"Unknown skill: {skill}") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |         return previous_level_rule & xp_rule | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     # Should be cached | 
					
						
							|  |  |  |     def has_level(self, skill: str, level: int) -> StardewRule: | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |         assert level >= 0, f"There is no level before level 0." | 
					
						
							|  |  |  |         if level == 0: | 
					
						
							|  |  |  |             return true_ | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.is_progressive: | 
					
						
							|  |  |  |             return self.logic.received(f"{skill} Level", level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         return self.logic.skill.can_earn_level(skill, level) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |     def has_previous_level(self, skill: str, level: int) -> StardewRule: | 
					
						
							|  |  |  |         assert level > 0, f"There is no level before level 0." | 
					
						
							|  |  |  |         if level == 1: | 
					
						
							|  |  |  |             return true_ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.is_progressive: | 
					
						
							|  |  |  |             return self.logic.received(f"{skill} Level", level - 1) | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         months = max(1, level - 1) | 
					
						
							|  |  |  |         return self.logic.time.has_lived_months(months) | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     @cache_self1 | 
					
						
							|  |  |  |     def has_farming_level(self, level: int) -> StardewRule: | 
					
						
							|  |  |  |         return self.logic.skill.has_level(Skill.farming, level) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # Should be cached | 
					
						
							|  |  |  |     def has_total_level(self, level: int, allow_modded_skills: bool = False) -> StardewRule: | 
					
						
							|  |  |  |         if level <= 0: | 
					
						
							|  |  |  |             return True_() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.is_progressive: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |             skills_items = vanilla_skill_items | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |             if allow_modded_skills: | 
					
						
							|  |  |  |                 skills_items += get_mod_skill_levels(self.options.mods) | 
					
						
							|  |  |  |             return self.logic.received_n(*skills_items, count=level) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         months_with_4_skills = max(1, (level // 4) - 1) | 
					
						
							|  |  |  |         months_with_5_skills = max(1, (level // 5) - 1) | 
					
						
							|  |  |  |         rule_with_fishing = self.logic.time.has_lived_months(months_with_5_skills) & self.logic.skill.can_get_fishing_xp | 
					
						
							|  |  |  |         if level > 40: | 
					
						
							|  |  |  |             return rule_with_fishing | 
					
						
							|  |  |  |         return self.logic.time.has_lived_months(months_with_4_skills) | rule_with_fishing | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |     def has_any_skills_maxed(self, included_modded_skills: bool = True) -> StardewRule: | 
					
						
							|  |  |  |         skills = self.content.skills.keys() if included_modded_skills else sorted(all_vanilla_skills) | 
					
						
							|  |  |  |         return self.logic.or_(*(self.logic.skill.has_level(skill, 10) for skill in skills)) | 
					
						
							| 
									
										
										
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_get_farming_xp(self) -> StardewRule: | 
					
						
							| 
									
										
										
											
												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
										 |  |  |         sources = self.content.find_sources_of_type(HarvestCropSource) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  |         crop_rules = [] | 
					
						
							| 
									
										
										
											
												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 crop_source in sources: | 
					
						
							|  |  |  |             crop_rules.append(self.logic.harvesting.can_harvest_crop_from(crop_source)) | 
					
						
							|  |  |  |         return self.logic.or_(*crop_rules) | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_get_foraging_xp(self) -> StardewRule: | 
					
						
							|  |  |  |         tool_rule = self.logic.tool.has_tool(Tool.axe) | 
					
						
							|  |  |  |         tree_rule = self.logic.region.can_reach(Region.forest) & self.logic.season.has_any_not_winter() | 
					
						
							|  |  |  |         stump_rule = self.logic.region.can_reach(Region.secret_woods) & self.logic.tool.has_tool(Tool.axe, ToolMaterial.copper) | 
					
						
							|  |  |  |         return tool_rule & (tree_rule | stump_rule) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_get_mining_xp(self) -> StardewRule: | 
					
						
							|  |  |  |         tool_rule = self.logic.tool.has_tool(Tool.pickaxe) | 
					
						
							|  |  |  |         stone_rule = self.logic.region.can_reach_any((Region.mines_floor_5, Region.quarry, Region.skull_cavern_25, Region.volcano_floor_5)) | 
					
						
							|  |  |  |         return tool_rule & stone_rule | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_get_combat_xp(self) -> StardewRule: | 
					
						
							|  |  |  |         tool_rule = self.logic.combat.has_any_weapon() | 
					
						
							|  |  |  |         enemy_rule = self.logic.region.can_reach_any((Region.mines_floor_5, Region.skull_cavern_25, Region.volcano_floor_5)) | 
					
						
							|  |  |  |         return tool_rule & enemy_rule | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_get_fishing_xp(self) -> StardewRule: | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.is_progressive: | 
					
						
							| 
									
										
										
										
											2025-05-17 09:20:53 -04:00
										 |  |  |             return self.logic.fishing.can_fish_anywhere() | self.logic.fishing.can_crab_pot_anywhere | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-04 10:28:38 -04:00
										 |  |  |         return self.logic.fishing.can_fish_anywhere() | 
					
						
							| 
									
										
										
										
											2024-03-15 15:05:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def can_forage_quality(self, quality: str) -> StardewRule: | 
					
						
							|  |  |  |         if quality == ForageQuality.basic: | 
					
						
							|  |  |  |             return True_() | 
					
						
							|  |  |  |         if quality == ForageQuality.silver: | 
					
						
							|  |  |  |             return self.has_level(Skill.foraging, 5) | 
					
						
							|  |  |  |         if quality == ForageQuality.gold: | 
					
						
							|  |  |  |             return self.has_level(Skill.foraging, 9) | 
					
						
							|  |  |  |         return 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |     def can_earn_mastery(self, skill: str) -> StardewRule: | 
					
						
							|  |  |  |         # Checking for level 11, so it includes having level 10 and being able to earn xp. | 
					
						
							|  |  |  |         return self.logic.skill.can_earn_level(skill, 11) & self.logic.region.can_reach(Region.mastery_cave) | 
					
						
							| 
									
										
										
											
												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 has_mastery(self, skill: str) -> StardewRule: | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.are_masteries_shuffled: | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |             return self.logic.received(f"{skill} Mastery") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return self.logic.skill.can_earn_mastery(skill) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @cached_property | 
					
						
							|  |  |  |     def can_enter_mastery_cave(self) -> StardewRule: | 
					
						
							| 
									
										
										
										
											2024-11-30 21:52:07 -05:00
										 |  |  |         if self.content.features.skill_progression.are_masteries_shuffled: | 
					
						
							| 
									
										
										
										
											2024-09-08 12:46:58 -04:00
										 |  |  |             return self.logic.received(Wallet.mastery_of_the_five_ways) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return self.has_any_skills_maxed(included_modded_skills=False) |