koishi-plugin-ggcevo-game 1.6.71 → 1.6.72

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.
Files changed (2) hide show
  1. package/lib/index.js +18 -4
  2. 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 newNerfMultiplier = 0.2;
1927
- const messages = [`🛡️ 【异形甲壳】生效:受到的伤害-20%`];
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: newNerfMultiplier,
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: "拥有厚重的甲壳,受到的伤害降低20%",
4796
+ description: "拥有厚重的甲壳,初始获得10%减伤效果,每损失1%最大生命值,额外获得1%减伤效果(最高80%减伤)",
4790
4797
  belong: ["异齿猛兽首领", "异齿猛兽"],
4791
4798
  derivedSkills: []
4792
4799
  },
@@ -5563,6 +5570,13 @@ 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()
5566
5580
  }
5567
5581
  ];
5568
5582
  function compareVersions(a, b) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.6.71",
4
+ "version": "1.6.72",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [