koishi-plugin-ggcevo-game 1.6.11 → 1.6.12

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 +4 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1831,7 +1831,7 @@ function getArmorByName(bossName) {
1831
1831
  if (minion.name === bossName) return minion.armor;
1832
1832
  }
1833
1833
  }
1834
- return 0;
1834
+ return void 0;
1835
1835
  }
1836
1836
  __name(getArmorByName, "getArmorByName");
1837
1837
  function getShieldArmorByName(bossName) {
@@ -4571,7 +4571,8 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4571
4571
  if (equippedWeapon.installedMods?.includes("强力钻刺核心")) {
4572
4572
  armorDamageReduction = 0.2;
4573
4573
  }
4574
- armor += getArmorByName(targetBoss.name) - targetBoss.radiationLayers * 0.05 - targetBoss.armorReductionLayers * 0.1;
4574
+ const baseArmor = getArmorByName(targetBoss.name) !== void 0 ? getArmorByName(targetBoss.name) : targetBoss.armor;
4575
+ armor += baseArmor - targetBoss.radiationLayers * 0.05 - targetBoss.armorReductionLayers * 0.1;
4575
4576
  const armorReduction = armorDamageReduction * armor;
4576
4577
  if (armorReduction !== 0) {
4577
4578
  if (armorReduction > 0) {
@@ -9855,6 +9856,7 @@ ${validTypes.join("、")}`;
9855
9856
  skillStacks,
9856
9857
  skillStatus,
9857
9858
  radiationLayers: 0,
9859
+ armorReductionLayers: 0,
9858
9860
  coldLayers,
9859
9861
  // 添加燃烧层数
9860
9862
  burnLayers,
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.11",
4
+ "version": "1.6.12",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [