1.修复被错误删除的炼金配方查看插件类2.新增更多装备与配方3.新增闪烁粉尘用于合成共鸣粉末
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime, timezone
|
||||
from typing import Dict, List, Mapping, Optional, Tuple
|
||||
|
||||
from PWF.Convention.Runtime.Architecture import Architecture
|
||||
from PWF.Convention.Runtime.Architecture import *
|
||||
from PWF.Convention.Runtime.GlobalConfig import ConsoleFrontColor, ProjectConfig
|
||||
from PWF.CoreModules.clock_scheduler import get_clock_scheduler
|
||||
from PWF.CoreModules.plugin_interface import DatabaseModel
|
||||
|
||||
from Plugins.WPSAPI import WPSAPI
|
||||
from Plugins.WPSAPI import GuideEntry, WPSAPI
|
||||
from Plugins.WPSAlchemyGame import WPSAlchemyGame
|
||||
from Plugins.WPSBackpackSystem import BackpackItemTier, WPSBackpackSystem
|
||||
from Plugins.WPSCombatSystem.combat_models import SPARK_DUST_ITEM_ID
|
||||
from Plugins.WPSStoreSystem import WPSStoreSystem
|
||||
from Plugins.WPSGardenSystem import (
|
||||
GardenCropDefinition,
|
||||
@@ -32,6 +32,7 @@ from .crystal_models import (
|
||||
CRYSTAL_TREE_FRUIT_ID,
|
||||
CRYSTAL_TREE_SEED_ID,
|
||||
CRYSTAL_TINT_POWDER_ID,
|
||||
CRYSTAL_RESONANCE_POWDER_ID,
|
||||
)
|
||||
from .crystal_service import get_crystal_db_models, get_crystal_service
|
||||
|
||||
@@ -489,6 +490,7 @@ class WPSCrystalSystem(WPSAPI):
|
||||
self._try_register_wine_recipe(alchemy, crop)
|
||||
|
||||
self._register_tint_powder_recipe(alchemy)
|
||||
self._register_resonance_powder_recipe(alchemy)
|
||||
|
||||
def _safe_register_backpack_item(
|
||||
self,
|
||||
@@ -550,6 +552,20 @@ class WPSCrystalSystem(WPSAPI):
|
||||
f"{ConsoleFrontColor.YELLOW}注册 {CRYSTAL_TREE_FRUIT_ID} 炼金配方失败: {exc}{ConsoleFrontColor.RESET}",
|
||||
)
|
||||
|
||||
def _register_resonance_powder_recipe(self, alchemy: WPSAlchemyGame) -> None:
|
||||
try:
|
||||
alchemy.register_recipe(
|
||||
(SPARK_DUST_ITEM_ID, SPARK_DUST_ITEM_ID, SPARK_DUST_ITEM_ID),
|
||||
CRYSTAL_RESONANCE_POWDER_ID,
|
||||
WPSAlchemyGame.ASH_ITEM_ID,
|
||||
0.45,
|
||||
)
|
||||
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