koishi-plugin-ggcevo-game 1.6.10 → 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 +7 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -580,7 +580,7 @@ var SyndicatedItems = {
580
580
  type: "设备工具",
581
581
  description: "一个小型辛迪加机器人,可以破坏电子银行账户",
582
582
  price: 0,
583
- redCrystalCost: 30,
583
+ redCrystalCost: 50,
584
584
  condition: "辛迪加海盗阵营",
585
585
  effects: "每日签到金币奖励+50%;可使用红晶升级"
586
586
  },
@@ -598,7 +598,7 @@ var SyndicatedItems = {
598
598
  type: "设备工具",
599
599
  description: "这是一款未来派音乐设备",
600
600
  price: 0,
601
- redCrystalCost: 10,
601
+ redCrystalCost: 20,
602
602
  condition: "辛迪加海盗阵营",
603
603
  effects: "主动发起的PK对战结果为失败时上交给对方的金币-50%"
604
604
  },
@@ -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,
@@ -9908,7 +9910,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
9908
9910
  ] : [],
9909
9911
  `📊 理论伤害值:${testResult.initialDamage}${testResult.hasCrit ? "(✨ 暴击)" : ""}`,
9910
9912
  "💡 参数添加:可添加标签(-t)、被动(-p)、血量(-l)、能量(-e)、护甲(-d)",
9911
- "💡 层数选项:技能层数(-s)、辐射层数(-r)、寒冷层数(-c)、状态层数(-a)、燃烧层数(-b)"
9913
+ "💡 层数选项:技能层数(-s)、寒冷层数(-c)、状态层数(-a)、燃烧层数(-b)"
9912
9914
  ].filter((line) => line).join("\n");
9913
9915
  } finally {
9914
9916
  Object.keys("测试假人").forEach((key) => delete battleStatsMap[key]);
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.10",
4
+ "version": "1.6.12",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [