新增插件指引网页
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.Architecture import Architecture
|
||||
|
||||
from Plugins.WPSAPI import GuideEntry
|
||||
from Plugins.WPSBackpackSystem import WPSBackpackSystem
|
||||
from Plugins.WPSConfigSystem import WPSConfigAPI
|
||||
from Plugins.WPSFortuneSystem import WPSFortuneSystem
|
||||
@@ -14,6 +15,42 @@ from .garden_plugin_base import WPSGardenBase
|
||||
|
||||
|
||||
class WPSGardenHarvest(WPSGardenBase):
|
||||
def get_guide_subtitle(self) -> str:
|
||||
return "收获成熟作物并处理额外奖励"
|
||||
|
||||
def collect_command_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
GuideEntry(
|
||||
title="收获",
|
||||
identifier="收获 <地块序号>",
|
||||
description="从成熟地块采摘果实并发放额外奖励。",
|
||||
metadata={"别名": "harvest"},
|
||||
icon="🧺",
|
||||
details=[
|
||||
{
|
||||
"type": "steps",
|
||||
"items": [
|
||||
"输入正整数地块序号。",
|
||||
"系统校验成熟状态,计算基础果实数量。",
|
||||
"发放额外奖励:积分或额外物品会自动结算。",
|
||||
],
|
||||
}
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
def collect_guide_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
{
|
||||
"title": "指令格式",
|
||||
"description": "`收获 <地块序号>`,序号需为正整数。",
|
||||
},
|
||||
{
|
||||
"title": "收益构成",
|
||||
"description": "基础果实直接入背包,额外奖励可能为积分或额外物品。",
|
||||
},
|
||||
)
|
||||
|
||||
def wake_up(self) -> None:
|
||||
super().wake_up()
|
||||
self.register_plugin("harvest")
|
||||
|
||||
Reference in New Issue
Block a user