水晶系统新增配方与物品
This commit is contained in:
@@ -29,6 +29,8 @@ from .crystal_models import (
|
||||
CrystalExchangeEntry,
|
||||
CrystalItemDefinition,
|
||||
build_default_crystal_crops,
|
||||
CRYSTAL_BASE_ITEM_ID,
|
||||
CRYSTAL_BASE_SCROLL_ID,
|
||||
CRYSTAL_TREE_FRUIT_ID,
|
||||
CRYSTAL_TREE_SEED_ID,
|
||||
CRYSTAL_TINT_POWDER_ID,
|
||||
@@ -492,6 +494,8 @@ class WPSCrystalSystem(WPSAPI):
|
||||
|
||||
self._register_tint_powder_recipe(alchemy)
|
||||
self._register_resonance_powder_recipe(alchemy)
|
||||
self._register_base_scroll_recipe(alchemy)
|
||||
self._register_base_core_recipe(alchemy)
|
||||
|
||||
def _safe_register_backpack_item(
|
||||
self,
|
||||
@@ -567,6 +571,36 @@ class WPSCrystalSystem(WPSAPI):
|
||||
f"{ConsoleFrontColor.YELLOW}注册闪烁粉尘共鸣配方失败: {exc}{ConsoleFrontColor.RESET}",
|
||||
)
|
||||
|
||||
def _register_base_scroll_recipe(self, alchemy: WPSAlchemyGame) -> None:
|
||||
"""注册空白变色卷轴配方:三种木材合成"""
|
||||
try:
|
||||
alchemy.register_recipe(
|
||||
("garden_wood_ginkgo", "garden_wood_sakura", "garden_wood_maple"),
|
||||
CRYSTAL_BASE_SCROLL_ID,
|
||||
WPSAlchemyGame.ASH_ITEM_ID,
|
||||
0.7,
|
||||
)
|
||||
except Exception as exc: # pylint: disable=broad-except
|
||||
logger.Log(
|
||||
"Warning",
|
||||
f"{ConsoleFrontColor.YELLOW}注册空白变色卷轴配方失败: {exc}{ConsoleFrontColor.RESET}",
|
||||
)
|
||||
|
||||
def _register_base_core_recipe(self, alchemy: WPSAlchemyGame) -> None:
|
||||
"""注册未调谐晶核配方:水晶树果实 + 胜利之树果实 + 腐败果实"""
|
||||
try:
|
||||
alchemy.register_recipe(
|
||||
(CRYSTAL_TREE_FRUIT_ID, "combat_fruit_victory_tree", "garden_item_rot_fruit"),
|
||||
CRYSTAL_BASE_ITEM_ID,
|
||||
WPSAlchemyGame.ASH_ITEM_ID,
|
||||
0.6,
|
||||
)
|
||||
except Exception as exc: # pylint: disable=broad-except
|
||||
logger.Log(
|
||||
"Warning",
|
||||
f"{ConsoleFrontColor.YELLOW}注册未调谐晶核配方失败: {exc}{ConsoleFrontColor.RESET}",
|
||||
)
|
||||
|
||||
def _item_display_name(
|
||||
self,
|
||||
item_id: str,
|
||||
|
||||
Reference in New Issue
Block a user