新增插件指引网页
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional
|
||||
from typing import Optional, Sequence
|
||||
|
||||
from PWF.Convention.Runtime.GlobalConfig import ConsoleFrontColor, ProjectConfig
|
||||
|
||||
from Plugins.WPSAPI import GuideEntry
|
||||
from .combat_plugin_base import WPSCombatBase
|
||||
|
||||
|
||||
@@ -15,6 +16,42 @@ logger: ProjectConfig = ProjectConfig()
|
||||
class WPSCombatEquipment(WPSCombatBase):
|
||||
"""装备管理插件"""
|
||||
|
||||
def get_guide_subtitle(self) -> str:
|
||||
return "穿戴与卸下战斗装备"
|
||||
|
||||
def collect_command_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
GuideEntry(
|
||||
title="装备",
|
||||
identifier="装备 [物品名|ID]",
|
||||
description="穿戴指定装备,或不带参数时查看当前装备。",
|
||||
metadata={"别名": "equip"},
|
||||
icon="🛡️",
|
||||
details=[
|
||||
{"type": "list", "items": ["名称与 ID 均可匹配装备库条目。", "若未携带该装备会提示不足。"]},
|
||||
],
|
||||
),
|
||||
GuideEntry(
|
||||
title="卸下",
|
||||
identifier="卸下 <槽位>",
|
||||
description="卸下指定槽位(weapon/helmet/armor/boots/accessory)的装备。",
|
||||
metadata={"别名": "unequip"},
|
||||
icon="🧤",
|
||||
),
|
||||
)
|
||||
|
||||
def collect_guide_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
{
|
||||
"title": "槽位说明",
|
||||
"description": "支持 weapon/helmet/armor/boots/accessory 五个槽位。",
|
||||
},
|
||||
{
|
||||
"title": "属性加成",
|
||||
"description": "装备属性直接影响战斗与冒险计算,可在 `战斗属性` 指令中查看综合加成。",
|
||||
},
|
||||
)
|
||||
|
||||
def is_enable_plugin(self) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user