fix: 帮助 & 评级

This commit is contained in:
bietiaop 2024-07-29 15:23:56 +08:00
parent b687b1760f
commit 7df9ca19a6
2 changed files with 37 additions and 29 deletions

View file

@ -141,36 +141,44 @@ export class Help extends ZZZPlugin {
}
async help() {
if (this.e?.isMaster) {
helpData.push({
title: '管理功能',
icon: 'dungeon',
items: [
{
title: '更新',
desc: '更新绝区零插件',
needCK: false,
needSK: false,
commands: ['[插件][强制]更新'],
},
{
title: '下载资源',
desc: '提前下载插件所需资源,查询时无需再次下载',
needCK: false,
needSK: false,
commands: ['下载全部/所有资源'],
},
{
title: '删除资源',
desc: '删除已经下载的资源,查询时需要再次下载(用于删除错误下载缓存)',
needCK: false,
needSK: false,
commands: ['删除全部/所有资源'],
},
],
const _helpData = [
...helpData,
{
title: '管理功能',
icon: 'dungeon',
items: [
{
title: '更新',
desc: '更新绝区零插件',
needCK: false,
needSK: false,
commands: ['[插件][强制]更新'],
},
{
title: '下载资源',
desc: '提前下载插件所需资源,查询时无需再次下载',
needCK: false,
needSK: false,
commands: ['下载全部/所有资源'],
},
{
title: '删除资源',
desc: '删除已经下载的资源,查询时需要再次下载(用于删除错误下载缓存)',
needCK: false,
needSK: false,
commands: ['删除全部/所有资源'],
},
],
},
];
await render(this.e, 'help/index.html', {
helpData: _helpData,
});
return false;
}
await render(this.e, 'help/index.html', {
helpData,
});
return false;
}
}

View file

@ -414,13 +414,13 @@ export class ZZZAvatarInfo {
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
get equip_comment() {
if (this.equip_score < 90) {
if (this.equip_score < 50) {
return 'C';
}
if (this.equip_score <= 120) {
if (this.equip_score <= 100) {
return 'B';
}
if (this.equip_score <= 150) {
if (this.equip_score <= 140) {
return 'A';
}
if (this.equip_score <= 180) {