koishi-plugin-ggcevo-game 1.3.41 → 1.3.43

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 +5 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1950,7 +1950,7 @@ function apply(ctx, config) {
1950
1950
  const isBelowThreshold = currentHP <= maxHP * triggerThreshold;
1951
1951
  const hasShieldTag = targetBoss.tags.includes("护盾");
1952
1952
  const alreadyHeavyArmor = targetBoss.tags.includes("重甲");
1953
- if (!targetBoss.skills.includes("超导体") || !targetBoss.skills.includes("电能导体")) return null;
1953
+ if (!targetBoss.skills.includes("超导体") && !targetBoss.skills.includes("电能导体")) return null;
1954
1954
  if (isBelowThreshold && hasShieldTag && !alreadyHeavyArmor) {
1955
1955
  const newTags = [
1956
1956
  ...targetBoss.tags.filter((tag) => tag !== "护盾"),
@@ -2031,7 +2031,10 @@ function apply(ctx, config) {
2031
2031
  damageMultiplier: -baseReduction + freezingBonus,
2032
2032
  messages: [
2033
2033
  `🌀 【能量黑洞】生效:基础减伤10%`,
2034
- currentFreezing > 0 ? `❄️ 寒冷(${currentFreezing}层)使受到的伤害+${freezingBonus * 100}%` : ""
2034
+ currentFreezing > 0 ? (
2035
+ // 关键修改:将百分比四舍五入为整数
2036
+ `❄️ 寒冷(${currentFreezing}层)使受到的伤害+${Math.round(freezingBonus * 100)}%`
2037
+ ) : ""
2035
2038
  ].filter(Boolean)
2036
2039
  };
2037
2040
  }, "handleEnergyBlackhole"),
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.3.41",
4
+ "version": "1.3.43",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [