koishi-plugin-ggcevo-game 1.3.42 → 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.
- package/lib/index.js +4 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2031,7 +2031,10 @@ function apply(ctx, config) {
|
|
|
2031
2031
|
damageMultiplier: -baseReduction + freezingBonus,
|
|
2032
2032
|
messages: [
|
|
2033
2033
|
`🌀 【能量黑洞】生效:基础减伤10%`,
|
|
2034
|
-
currentFreezing > 0 ?
|
|
2034
|
+
currentFreezing > 0 ? (
|
|
2035
|
+
// 关键修改:将百分比四舍五入为整数
|
|
2036
|
+
`❄️ 寒冷(${currentFreezing}层)使受到的伤害+${Math.round(freezingBonus * 100)}%`
|
|
2037
|
+
) : ""
|
|
2035
2038
|
].filter(Boolean)
|
|
2036
2039
|
};
|
|
2037
2040
|
}, "handleEnergyBlackhole"),
|