koishi-plugin-ggcevo-game 1.6.71 → 1.6.73
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 +27 -8
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1923,10 +1923,17 @@ var BattleEffectProcessor = {
|
|
|
1923
1923
|
// 异形甲壳
|
|
1924
1924
|
handleAlienShell: /* @__PURE__ */ __name(function(targetBoss) {
|
|
1925
1925
|
if (targetBoss.skills.includes("异形甲壳")) {
|
|
1926
|
-
const
|
|
1927
|
-
const
|
|
1926
|
+
const maxHP = getMaxHPByName(targetBoss.name);
|
|
1927
|
+
const currentHP = targetBoss.HP;
|
|
1928
|
+
const lostHpPercent = (maxHP - currentHP) / maxHP;
|
|
1929
|
+
let reductionPercent = 0.1 + lostHpPercent;
|
|
1930
|
+
reductionPercent = Math.min(reductionPercent, 0.8);
|
|
1931
|
+
const reductionValue = Math.round(reductionPercent * 100);
|
|
1932
|
+
const messages = [
|
|
1933
|
+
`🛡️ 【异形甲壳】生效:当前减伤${reductionValue}%`
|
|
1934
|
+
];
|
|
1928
1935
|
return {
|
|
1929
|
-
nerfMultiplier:
|
|
1936
|
+
nerfMultiplier: reductionPercent,
|
|
1930
1937
|
messages
|
|
1931
1938
|
};
|
|
1932
1939
|
}
|
|
@@ -4786,7 +4793,7 @@ __name(applyPassiveEffects, "applyPassiveEffects");
|
|
|
4786
4793
|
// src/boss/passive.ts
|
|
4787
4794
|
var passiveConfig = {
|
|
4788
4795
|
"异形甲壳": {
|
|
4789
|
-
description: "
|
|
4796
|
+
description: "拥有厚重的甲壳,初始获得10%减伤效果,每损失1%最大生命值,额外获得1%减伤效果(最高80%减伤)",
|
|
4790
4797
|
belong: ["异齿猛兽首领", "异齿猛兽"],
|
|
4791
4798
|
derivedSkills: []
|
|
4792
4799
|
},
|
|
@@ -5563,6 +5570,20 @@ var ggcevoUpdates = [
|
|
|
5563
5570
|
- 斩杀阶段删除了验证码机制
|
|
5564
5571
|
- 同一用户攻击指令增加了5秒的使用冷却时间
|
|
5565
5572
|
`.trim()
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
version: "1.6.72",
|
|
5576
|
+
time: "2025-08-16",
|
|
5577
|
+
content: `
|
|
5578
|
+
- 增强了“异形甲壳”技能效果
|
|
5579
|
+
`.trim()
|
|
5580
|
+
},
|
|
5581
|
+
{
|
|
5582
|
+
version: "1.6.73",
|
|
5583
|
+
time: "2025-08-18",
|
|
5584
|
+
content: `
|
|
5585
|
+
- 修改铝热炸弹限制条件为只能在进入斩杀阶段之前使用
|
|
5586
|
+
`.trim()
|
|
5566
5587
|
}
|
|
5567
5588
|
];
|
|
5568
5589
|
function compareVersions(a, b) {
|
|
@@ -5971,10 +5992,10 @@ async function applyItemEffect(ctx, session, handle, itemConfig2, target) {
|
|
|
5971
5992
|
message: `至少攻击一次后才能使用该物品。`
|
|
5972
5993
|
};
|
|
5973
5994
|
}
|
|
5974
|
-
if (targetBoss.HP
|
|
5995
|
+
if (targetBoss.HP <= 2e3) {
|
|
5975
5996
|
return {
|
|
5976
5997
|
success: false,
|
|
5977
|
-
message: `目标「${target}
|
|
5998
|
+
message: `目标「${target}」血量已进入斩杀阶段,无法使用${itemName}。`
|
|
5978
5999
|
};
|
|
5979
6000
|
}
|
|
5980
6001
|
let baseDamage = 100;
|
|
@@ -11457,8 +11478,6 @@ ${discountReason}` : "",
|
|
|
11457
11478
|
});
|
|
11458
11479
|
ctx.command("ggcevo/使用 [itemName] [target]").action(async (argv, itemName, target) => {
|
|
11459
11480
|
const session = argv.session;
|
|
11460
|
-
let bossEventBroadcast = null;
|
|
11461
|
-
let cleanerRewardBroadcast = null;
|
|
11462
11481
|
const Curfew = fixedCurfewCheck(session, config);
|
|
11463
11482
|
if (!Curfew) return "⛔ 宵禁时段 (18:00-24:00) 禁止在群聊中使用咕咕之战指令。\n请添加C.O.R.E为好友使用私聊指令,好友验证信息为【咕咕之战】。";
|
|
11464
11483
|
const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
|