新增插件指引网页
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional
|
||||
from typing import Optional, Sequence
|
||||
|
||||
from PWF.Convention.Runtime.Architecture import Architecture
|
||||
from PWF.Convention.Runtime.GlobalConfig import ConsoleFrontColor, ProjectConfig
|
||||
|
||||
from Plugins.WPSAPI import GuideEntry
|
||||
from Plugins.WPSBackpackSystem import WPSBackpackSystem
|
||||
from Plugins.WPSConfigSystem import WPSConfigAPI
|
||||
|
||||
@@ -27,6 +28,35 @@ class WPSCombatCamp(WPSCombatBase):
|
||||
meta[0].lower(): item_id for item_id, meta in self._souvenir_by_id.items()
|
||||
}
|
||||
|
||||
def get_guide_subtitle(self) -> str:
|
||||
return "营地寄售区:纪念品快速变现"
|
||||
|
||||
def collect_command_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
GuideEntry(
|
||||
title="营地 售出",
|
||||
identifier="营地 售出 <纪念品> <数量>",
|
||||
description="将纪念品出售给系统换取积分。",
|
||||
metadata={"别名": "camp"},
|
||||
icon="🏕️",
|
||||
details=[
|
||||
{"type": "steps", "items": ["输入纪念品名称或 ID。", "校验背包数量并扣除。", "根据基础售价发放积分。"]},
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
def collect_guide_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
{
|
||||
"title": "销售指令",
|
||||
"description": "`营地 售出 <纪念品> <数量>`,名称可用中文或物品ID。",
|
||||
},
|
||||
{
|
||||
"title": "积分结算",
|
||||
"description": "根据纪念品基础售价乘以数量发放积分,并扣除背包库存。",
|
||||
},
|
||||
)
|
||||
|
||||
def is_enable_plugin(self) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user