代码拉取完成,页面将自动刷新
import path from 'path';
import lodash from 'lodash';
import Config from './model/Config.js';
import setting from './model/Config.js';
const _path = process.cwd() + '/plugins/xiuxian-emulator-plugin';
//定义一个版本信息的常量,获取默认文件配置文件信息
const versionData = Config.getdefSet('version');
/**
* 支持锅巴配置
*/
export function supportGuoba() {
let allGroup = [];
Bot.gl.forEach((v, k) => {
allGroup.push({ label: `${v.group_name}(${k})`, value: k });
});
return {
pluginInfo: {
name: 'xiuxian-emulator-plugin',
title: '修仙插件(萝莉版)',
author: '@touchscale @晓飞 @鱼干Hg @逝雪苏羽 @雨洛',
authorLink: 'https://gitee.com/touchscale',
link: 'https://gitee.com/touchscale/luoli',
isV3: true,
isV2: false,
description: `修仙插件(萝莉版)${versionData[0].version}「${versionData[0].name}」`,
// 显示图标,此为个性化配置
// 图标可在 https://icon-sets.iconify.design 这里进行搜索
icon: 'mdi:stove',
// 图标颜色,例:#FF0000 或 rgb(255, 0, 0)
iconColor: '#d19f56',
// 如果想要显示成图片,也可以填写图标路径(绝对路径)
iconPath: path.join(_path, 'resources/img/xiuxian.png'),
},
// 配置项信息
configInfo: {
// 配置项 schemas
schemas: [
{
component: 'Divider',
label: 'CD设置',
},
{
field: 'xiuxian.CD.association',
label: '宗门维护',
bottomHelpMessage: '宗门维护CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 100000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.joinassociation',
label: '退宗',
bottomHelpMessage: '退宗CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.associationbattle',
label: '宗门大战',
bottomHelpMessage: '宗门大战CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.rob',
label: '打劫',
bottomHelpMessage: '打劫CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.gambling',
label: '金银坊',
bottomHelpMessage: '金银坊CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.couple',
label: '双修',
bottomHelpMessage: '双修CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.garden',
label: '药园',
bottomHelpMessage: '药园CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.level_up',
label: '突破',
bottomHelpMessage: '突破CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.secretplace',
label: '秘境',
bottomHelpMessage: '秘境CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.timeplace',
label: '仙府',
bottomHelpMessage: '仙府CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.forbiddenarea',
label: '禁地',
bottomHelpMessage: '禁地CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.reborn',
label: '重生',
bottomHelpMessage: '重生CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.transfer',
label: '转账',
bottomHelpMessage: '转账CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.honbao',
label: '抢红包',
bottomHelpMessage: '抢红包CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.boss',
label: 'boss',
bottomHelpMessage: 'bossCD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.CD.bossSpawn',
label: 'boss刷新',
bottomHelpMessage: 'boss刷新CD',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 45000000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
component: 'Divider',
label: '金银坊设置',
},
{
field: 'xiuxian.percentage.cost',
label: '手续费',
bottomHelpMessage: '手续费设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 1,
placeholder: '请输入数字',
},
},
{
field: 'xiuxian.percentage.Moneynumber',
label: '收益',
bottomHelpMessage: '收益设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 1,
placeholder: '请输入数字',
},
},
{
field: 'xiuxian.percentage.punishment',
label: '出千收益',
bottomHelpMessage: '出千收益设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 1,
placeholder: '请输入数字',
},
},
{
field: 'xiuxian.size.Money',
label: '出千控制',
bottomHelpMessage: '出千控制设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 10000,
placeholder: '请输入数字',
addonAfter: '万',
},
},
{
component: 'Divider',
label: '开关设置',
},
{
field: 'xiuxian.switch.play',
label: '怡红院开关',
bottomHelpMessage: '是否开启怡红院',
component: 'Switch',
},
{
field: 'xiuxian.switch.Moneynumber',
label: '金银坊开关',
bottomHelpMessage: '是否开启金银坊',
component: 'Switch',
},
{
field: 'xiuxian.switch.couple',
label: '双修开关',
bottomHelpMessage: '是否开启双修',
component: 'Switch',
},
{
field: 'xiuxian.switch.Xiuianplay_key',
label: '怡红院卡图开关',
bottomHelpMessage: '是否开启怡红院卡图',
component: 'Switch',
},
{
component: 'Divider',
label: '采药设置',
},
{
field: 'xiuxian.plant.size',
label: '采药倍率',
bottomHelpMessage: '倍率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '倍',
},
},
{
field: 'xiuxian.plant.time',
label: '采药最低时间',
bottomHelpMessage: '最低时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 30,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.plant.cycle',
label: '采药周期',
bottomHelpMessage: '周期设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '个',
},
},
{
component: 'Divider',
label: '挖矿设置',
},
{
field: 'xiuxian.mine.size',
label: '挖矿倍率',
bottomHelpMessage: '倍率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '倍',
},
},
{
field: 'xiuxian.mine.time',
label: '挖矿最低时间',
bottomHelpMessage: '最低时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 30,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.mine.cycle',
label: '挖矿周期',
bottomHelpMessage: '周期设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '个',
},
},
{
component: 'Divider',
label: '闭关设置',
},
{
field: 'xiuxian.biguan.size',
label: '闭关倍率',
bottomHelpMessage: '倍率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '倍',
},
},
{
field: 'xiuxian.biguan.time',
label: '闭关最低时间',
bottomHelpMessage: '最低时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 30,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.biguan.cycle',
label: '闭关周期',
bottomHelpMessage: '周期设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '个',
},
},
{
component: 'Divider',
label: '打工设置',
},
{
field: 'xiuxian.work.size',
label: '打工倍率',
bottomHelpMessage: '倍率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '倍',
},
},
{
field: 'xiuxian.work.time',
label: '打工最低时间',
bottomHelpMessage: '最低时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 30,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.work.cycle',
label: '打工周期',
bottomHelpMessage: '周期设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '个',
},
},
{
component: 'Divider',
label: 'Boss设置',
},
{
field: 'xiuxian.Boss.Boss',
label: '奖励倍率',
bottomHelpMessage: '奖励倍率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '个',
},
},
{
component: 'Divider',
label: '签到设置',
},
{
field: 'xiuxian.Sign.ticket',
label: '每日签到给的沉迷门票',
bottomHelpMessage: '数量设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '张',
},
},
{
component: 'Divider',
label: '星阁设置',
},
{
field: 'xiuxian.Auction.interval',
label: '间歇时间',
bottomHelpMessage: '间歇时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 1,
max: 10000,
placeholder: '请输入数字',
addonAfter: '分',
},
},
{
field: 'xiuxian.Auction.openHour',
label: '星阁开启时间',
bottomHelpMessage: '开启时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 24,
placeholder: '请输入数字',
addonAfter: '时',
},
},
{
field: 'xiuxian.Auction.closeHour',
label: '星阁关闭时间',
bottomHelpMessage: '关闭时间设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0,
max: 24,
placeholder: '请输入数字',
addonAfter: '时',
},
},
{
component: 'Divider',
label: '秘境出金概率设置',
},
{
field: 'xiuxian.SecretPlace.one',
label: '概率',
bottomHelpMessage: '概率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0.1,
max: 1,
placeholder: '请输入数字',
},
},
{
field: 'xiuxian.SecretPlace.two',
label: '概率',
bottomHelpMessage: '概率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0.1,
max: 1,
placeholder: '请输入数字',
},
},
{
field: 'xiuxian.SecretPlace.three',
label: '概率',
bottomHelpMessage: '概率设置',
component: 'InputNumber',
required: true,
componentProps: {
min: 0.1,
max: 1,
placeholder: '请输入数字',
},
},
{
component: 'Divider',
label: '推送设置',
},
{
field: 'xiuxian.Group',
label: '推送群号',
bottomHelpMessage: '推送的群',
component: 'Select',
componentProps: {
allowAdd: true,
allowDel: true,
mode: 'multiple',
options: allGroup,
},
},
],
getConfigData() {
return setting.merge();
},
// 设置配置的方法(前端点确定后调用的方法)
setConfigData(data, { Result }) {
let config = {};
for (let [keyPath, value] of Object.entries(data)) {
lodash.set(config, keyPath, value);
}
config = lodash.merge({}, setting.merge, config);
setting.analysis(config);
return Result.ok({}, '保存成功~');
},
},
};
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。