挂机修仙❗【超级超级无聊且好玩的挂机小插件】

:exclamation::exclamation:挂机修仙:exclamation::exclamation:

休闲制修仙

这里没有 战斗,一切都是安详的,每个人都在努力的冲刺天骄榜,为了虚荣感而冲刺!
现目前基础功能:

  1. 闭关
  2. 出关
  3. 天骄榜
  4. 修仙签
  5. 修仙面板
    6.(预计新功能,挂机副本,与元神,或骚扰闭关者,但会遭受天谴(这部分有很大的可写性!

请求建议

多来点建议让我写吧,为了更好你们的游戏体验!!
如想加入插件主群,请到xiuxian插件的插件配置寻找!

4 个赞

个人建议:下次至少把插件名字放在标题里……看完帖子才看到是哪个插件 orz

koishi-plugin-xiuxian:挂机修仙小游戏

2 个赞

好的,好的,谢谢,第一次发,比较慌张

3 个赞

由于作者没有电脑无法更新修仙,在此处放个修复bug后的代码
位置:koishi根目录开始/koishi/node_modules/koishi-plugin-xiuxian/lib/index.js
第190行到第210行替换成如下代码

    ctx.command ('修仙系统')
        .subcommand ('出关')
        .action (async ({ session }) => {
        const { userId, username } = session;
        const read = await ctx.database.get ('修仙', { userId });
        const 境界名称 = ["人凡期", "灵基期", "纳真期", "破虚期", "辟神期", "合道期", "易位期", "泰剧期", "超凡期", "仙道者"];
        const r = await ctx.database.get ('修仙', { userId: "46" });
        if (read.length == 0) {
            return `══出关问世══\n 道友:${userId}\n 你还未注册 \nTips:发送 “注册游戏”`;
        }
        else if (read?.[0]?.status == undefined || read?.[0]?.status == '空闲中') {
            return '══出关问世══\n 道友:' + userId + '\n 你还没有开始闭关修炼';
        }
        else {
            const a = Math.floor (Date.now () / 1000);
            const Psychic = a - read?.[0]?.Time; // 现在时间减去挂机时间,进行计算
            const b = read?.[0]?.realm == 0 ? (0.5*Psychic) : ( Psychic * read?.[0]?.realm ); // 判断是否是初始境界,如果是不用扣除 0.5 灵力值
            await ctx.database.set ('修仙', { userId: userId }, { Time: 0, Psychic_power: read?.[0]?.Psychic_power + b, status: '空闲中' });
            return `══出关问世══\n 道友:${userId}\n 修炼时长:${Psychic} 秒 \n 获得灵力:${b}`;
        }
    });

3 个赞

草 硬核更新

3 个赞