koishi-plugin-ggcevo-game 1.3.28 → 1.3.29
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 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1063,10 +1063,9 @@ function apply(ctx, config) {
|
|
|
1063
1063
|
effectMessage.push(rankAddResult.message);
|
|
1064
1064
|
}
|
|
1065
1065
|
let finalDamage = baseDamage * (1 + totalAdditive);
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
effectMessage.push("⚠️ 触发保底机制:造成基础伤害的1%");
|
|
1066
|
+
if (finalDamage < 1) {
|
|
1067
|
+
finalDamage = 1;
|
|
1068
|
+
effectMessage.push("⚠️ 触发伤害保底机制:强制造成1点伤害");
|
|
1070
1069
|
}
|
|
1071
1070
|
return {
|
|
1072
1071
|
damage: Math.round(finalDamage),
|
|
@@ -1217,7 +1216,7 @@ function apply(ctx, config) {
|
|
|
1217
1216
|
const percentage = Math.round(cappedValue * 100);
|
|
1218
1217
|
return {
|
|
1219
1218
|
value: cappedValue,
|
|
1220
|
-
message: `🏆
|
|
1219
|
+
message: `🏆 胜点榜积分加成:攻击伤害+${percentage}%`
|
|
1221
1220
|
};
|
|
1222
1221
|
}
|
|
1223
1222
|
return { value: 0, message: "" };
|