2025-04-23 11:31:08 -04:00
|
|
|
from ..mod_data import ModNames
|
2024-03-15 15:05:14 +03:00
|
|
|
from ...logic.base_logic import BaseLogicMixin, BaseLogic
|
|
|
|
|
from ...options import ElevatorProgression
|
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 ...stardew_rule import StardewRule, True_, true_
|
|
|
|
|
from ...strings.ap_names.mods.mod_items import DeepWoodsItem
|
2024-03-15 15:05:14 +03:00
|
|
|
from ...strings.ap_names.transport_names import ModTransportation
|
|
|
|
|
from ...strings.craftable_names import Bomb
|
|
|
|
|
from ...strings.food_names import Meal
|
|
|
|
|
from ...strings.performance_names import Performance
|
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.skill_names import Skill, ModSkill
|
2024-03-15 15:05:14 +03:00
|
|
|
from ...strings.tool_names import Tool, ToolMaterial
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DeepWoodsLogicMixin(BaseLogicMixin):
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
self.deepwoods = DeepWoodsLogic(*args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
2025-04-23 11:31:08 -04:00
|
|
|
class DeepWoodsLogic(BaseLogic):
|
2024-03-15 15:05:14 +03:00
|
|
|
|
|
|
|
|
def can_reach_woods_depth(self, depth: int) -> StardewRule:
|
|
|
|
|
# Assuming you can always do the 10 first floor
|
|
|
|
|
if depth <= 10:
|
|
|
|
|
return true_
|
|
|
|
|
|
|
|
|
|
rules = []
|
|
|
|
|
|
|
|
|
|
if depth > 10:
|
|
|
|
|
rules.append(self.logic.has(Bomb.bomb) | self.logic.tool.has_tool(Tool.axe, ToolMaterial.iridium))
|
|
|
|
|
if depth > 30:
|
|
|
|
|
rules.append(self.logic.received(ModTransportation.woods_obelisk))
|
|
|
|
|
if depth > 50:
|
|
|
|
|
rules.append(self.logic.combat.can_fight_at_level(Performance.great) & self.logic.cooking.can_cook() &
|
|
|
|
|
self.logic.received(ModTransportation.woods_obelisk))
|
|
|
|
|
|
|
|
|
|
tier = int(depth / 25) + 1
|
2024-11-30 21:52:07 -05:00
|
|
|
if self.content.features.skill_progression.is_progressive:
|
|
|
|
|
combat_level = min(10, max(0, tier + 5))
|
|
|
|
|
rules.append(self.logic.skill.has_level(Skill.combat, combat_level))
|
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
|
|
|
return self.logic.and_(*rules)
|
2024-03-15 15:05:14 +03:00
|
|
|
|
|
|
|
|
def has_woods_rune_to_depth(self, floor: int) -> StardewRule:
|
|
|
|
|
if self.options.elevator_progression == ElevatorProgression.option_vanilla:
|
|
|
|
|
return True_()
|
|
|
|
|
return self.logic.received(DeepWoodsItem.obelisk_sigil, int(floor / 10))
|
|
|
|
|
|
|
|
|
|
def can_chop_to_depth(self, floor: int) -> StardewRule:
|
|
|
|
|
previous_elevator = max(floor - 10, 0)
|
|
|
|
|
return (self.has_woods_rune_to_depth(previous_elevator) &
|
|
|
|
|
self.can_reach_woods_depth(previous_elevator))
|
|
|
|
|
|
|
|
|
|
def can_pull_sword(self) -> StardewRule:
|
|
|
|
|
rules = [self.logic.received(DeepWoodsItem.pendant_depths) & self.logic.received(DeepWoodsItem.pendant_community) &
|
|
|
|
|
self.logic.received(DeepWoodsItem.pendant_elder),
|
|
|
|
|
self.logic.skill.has_total_level(40)]
|
|
|
|
|
if ModNames.luck_skill in self.options.mods:
|
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
|
|
|
rules.append(self.logic.skill.has_level(ModSkill.luck, 7))
|
2024-03-15 15:05:14 +03:00
|
|
|
else:
|
|
|
|
|
rules.append(
|
|
|
|
|
self.logic.has(Meal.magic_rock_candy)) # You need more luck than this, but it'll push the logic down a ways; you can get the rest there.
|
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
|
|
|
return self.logic.and_(*rules)
|