2024-03-15 15:05:14 +03:00
|
|
|
from ...logic.base_logic import BaseLogicMixin, BaseLogic
|
|
|
|
from ...strings.ap_names.mods.mod_items import SVELocation, SVERunes, SVEQuestItem
|
2025-04-23 11:31:08 -04:00
|
|
|
from ...strings.quest_names import Quest, ModQuest
|
2025-05-24 01:15:41 -04:00
|
|
|
from ...strings.region_names import Region, SVERegion
|
2024-03-15 15:05:14 +03:00
|
|
|
from ...strings.tool_names import Tool, ToolMaterial
|
|
|
|
from ...strings.wallet_item_names import Wallet
|
|
|
|
|
|
|
|
|
|
|
|
class SVELogicMixin(BaseLogicMixin):
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
|
self.sve = SVELogic(*args, **kwargs)
|
|
|
|
|
|
|
|
|
2025-04-23 11:31:08 -04:00
|
|
|
class SVELogic(BaseLogic):
|
2024-03-15 15:05:14 +03:00
|
|
|
def initialize_rules(self):
|
|
|
|
self.registry.sve_location_rules.update({
|
|
|
|
SVELocation.tempered_galaxy_sword: self.logic.money.can_spend_at(SVERegion.alesia_shop, 350000),
|
|
|
|
SVELocation.tempered_galaxy_dagger: self.logic.money.can_spend_at(SVERegion.isaac_shop, 600000),
|
|
|
|
SVELocation.tempered_galaxy_hammer: self.logic.money.can_spend_at(SVERegion.isaac_shop, 400000),
|
|
|
|
})
|
|
|
|
|
|
|
|
def has_any_rune(self):
|
|
|
|
rune_list = SVERunes.nexus_items
|
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.or_(*(self.logic.received(rune) for rune in rune_list))
|
2024-03-15 15:05:14 +03:00
|
|
|
|
|
|
|
def has_iridium_bomb(self):
|
2025-03-10 18:39:35 +03:00
|
|
|
if self.options.quest_locations.has_story_quests():
|
|
|
|
return self.logic.received(SVEQuestItem.iridium_bomb)
|
|
|
|
return self.logic.quest.can_complete_quest(ModQuest.RailroadBoulder)
|
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
|
|
|
def has_marlon_boat(self):
|
2025-03-10 18:39:35 +03:00
|
|
|
if self.options.quest_locations.has_story_quests():
|
|
|
|
return self.logic.received(SVEQuestItem.marlon_boat_paddle)
|
|
|
|
return self.logic.quest.can_complete_quest(ModQuest.MarlonsBoat)
|
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_grandpa_shed_repaired(self):
|
2025-03-10 18:39:35 +03:00
|
|
|
if self.options.quest_locations.has_story_quests():
|
|
|
|
return self.logic.received(SVEQuestItem.grandpa_shed)
|
|
|
|
return self.logic.quest.can_complete_quest(ModQuest.GrandpasShed)
|
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_bear_knowledge(self):
|
2025-03-10 18:39:35 +03:00
|
|
|
if self.options.quest_locations.has_story_quests():
|
|
|
|
return self.logic.received(Wallet.bears_knowledge)
|
|
|
|
return self.logic.quest.can_complete_quest(Quest.strange_note)
|
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
|
|
|
def can_buy_bear_recipe(self):
|
|
|
|
access_rule = (self.logic.quest.can_complete_quest(Quest.strange_note) & self.logic.tool.has_tool(Tool.axe, ToolMaterial.basic) &
|
|
|
|
self.logic.tool.has_tool(Tool.pickaxe, ToolMaterial.basic))
|
|
|
|
forage_rule = self.logic.region.can_reach_any((Region.forest, Region.backwoods, Region.mountain))
|
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
|
|
|
knowledge_rule = self.has_bear_knowledge()
|
2024-03-15 15:05:14 +03:00
|
|
|
return access_rule & forage_rule & knowledge_rule
|