koishi-plugin-ggcevo-game 1.6.74 → 1.6.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +61 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5586,11 +5586,12 @@ var ggcevoUpdates = [
|
|
|
5586
5586
|
`.trim()
|
|
5587
5587
|
},
|
|
5588
5588
|
{
|
|
5589
|
-
version: "1.6.
|
|
5589
|
+
version: "1.6.75",
|
|
5590
5590
|
time: "2025-08-19",
|
|
5591
5591
|
content: `
|
|
5592
5592
|
- 修改铝热炸弹使用限制,现在只能在目标血量≥1000时使用
|
|
5593
5593
|
- 修改斩杀阶段,现在当主宰血量≤2000,且没有复活类技能,且无子代存活的情况下,才会进入斩杀阶段
|
|
5594
|
+
- 新增“异形刷新权重”指令,可查询主宰刷新权重
|
|
5594
5595
|
`.trim()
|
|
5595
5596
|
}
|
|
5596
5597
|
];
|
|
@@ -9049,12 +9050,24 @@ ${items.join("、")}
|
|
|
9049
9050
|
});
|
|
9050
9051
|
ctx.command("ggcevo/拉黑 [user]", "黑名单管理", { authority: 3 }).action(async (argv, user) => {
|
|
9051
9052
|
const session = argv.session;
|
|
9053
|
+
const formatChinaTime = /* @__PURE__ */ __name((date) => {
|
|
9054
|
+
return new Date(date).toLocaleString("zh-CN", {
|
|
9055
|
+
timeZone: "Asia/Shanghai",
|
|
9056
|
+
year: "numeric",
|
|
9057
|
+
month: "2-digit",
|
|
9058
|
+
day: "2-digit",
|
|
9059
|
+
hour: "2-digit",
|
|
9060
|
+
minute: "2-digit",
|
|
9061
|
+
second: "2-digit",
|
|
9062
|
+
hour12: false
|
|
9063
|
+
}).replace(",", "");
|
|
9064
|
+
}, "formatChinaTime");
|
|
9052
9065
|
if (!user) {
|
|
9053
9066
|
const blacklist = await ctx.database.get("ggcevo_blacklist", {}, { fields: ["handle", "name", "createdAt"] });
|
|
9054
9067
|
if (blacklist.length === 0) return "当前黑名单为空。";
|
|
9055
9068
|
let message = "📋 黑名单列表:\n";
|
|
9056
9069
|
for (const entry of blacklist.slice(0, 10)) {
|
|
9057
|
-
const time =
|
|
9070
|
+
const time = formatChinaTime(entry.createdAt);
|
|
9058
9071
|
message += `▫️ ${entry.name} (${entry.handle}) - 添加时间: ${time}
|
|
9059
9072
|
`;
|
|
9060
9073
|
}
|
|
@@ -12986,6 +12999,52 @@ ${validBossNames.join("、")}`;
|
|
|
12986
12999
|
return "⚠️ 兑换过程中出错,请稍后再试";
|
|
12987
13000
|
}
|
|
12988
13001
|
});
|
|
13002
|
+
ctx.command("异形刷新权重", "查询当前主宰刷新权重").alias("yx刷新权重").action(async ({ session }) => {
|
|
13003
|
+
try {
|
|
13004
|
+
const Curfew = fixedCurfewCheck(session, config);
|
|
13005
|
+
if (!Curfew) return "⛔ 宵禁时段 (18:00-24:00) 禁止在群聊中使用咕咕之战指令。\n请添加C.O.R.E为好友使用私聊指令,好友验证信息为【咕咕之战】。";
|
|
13006
|
+
const weights = await ctx.database.select("ggcevo_boss_weights", {}).execute();
|
|
13007
|
+
if (!weights || weights.length === 0) {
|
|
13008
|
+
return "当前没有配置BOSS刷新权重数据";
|
|
13009
|
+
}
|
|
13010
|
+
const sortedList = weights.map((w) => {
|
|
13011
|
+
const boss = bossPool.find((b) => b.id === w.bossId);
|
|
13012
|
+
return {
|
|
13013
|
+
id: w.bossId,
|
|
13014
|
+
name: boss?.main?.name || `未知BOSS(${w.bossId})`,
|
|
13015
|
+
weight: w.weight,
|
|
13016
|
+
lastSpawn: w.lastSpawn
|
|
13017
|
+
};
|
|
13018
|
+
}).sort((a, b) => b.weight - a.weight);
|
|
13019
|
+
const dateFormat = /* @__PURE__ */ __name((timestamp) => {
|
|
13020
|
+
return new Date(timestamp).toLocaleString("zh-CN", {
|
|
13021
|
+
timeZone: "Asia/Shanghai",
|
|
13022
|
+
year: "numeric",
|
|
13023
|
+
month: "2-digit",
|
|
13024
|
+
day: "2-digit",
|
|
13025
|
+
hour: "2-digit",
|
|
13026
|
+
minute: "2-digit",
|
|
13027
|
+
second: "2-digit",
|
|
13028
|
+
hour12: false
|
|
13029
|
+
}).replace(",", "");
|
|
13030
|
+
}, "dateFormat");
|
|
13031
|
+
let reply = "当前BOSS刷新权重(按权重从高到低):\n";
|
|
13032
|
+
reply += "===========================\n";
|
|
13033
|
+
sortedList.forEach((boss) => {
|
|
13034
|
+
reply += `【${boss.name}】
|
|
13035
|
+
`;
|
|
13036
|
+
reply += `▸ 权重:${boss.weight}
|
|
13037
|
+
`;
|
|
13038
|
+
reply += `▸ 上次刷新:${dateFormat(boss.lastSpawn)}
|
|
13039
|
+
`;
|
|
13040
|
+
reply += "---------------------------\n";
|
|
13041
|
+
});
|
|
13042
|
+
return reply;
|
|
13043
|
+
} catch (err) {
|
|
13044
|
+
ctx.logger.error("BOSS权重查询失败", err);
|
|
13045
|
+
return "查询BOSS权重时发生错误,请检查服务器日志";
|
|
13046
|
+
}
|
|
13047
|
+
});
|
|
12989
13048
|
ctx.command("ggcevo/签到奖励").action(({}) => {
|
|
12990
13049
|
return `
|
|
12991
13050
|
签到金币奖励:
|