koishi-plugin-ggcevo-game 1.3.18 → 1.3.20
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 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -617,7 +617,7 @@ function apply(ctx, config) {
|
|
|
617
617
|
},
|
|
618
618
|
"嗜血狂暴": {
|
|
619
619
|
effect: 0,
|
|
620
|
-
description: "血量低于50
|
|
620
|
+
description: "血量低于50%时,每次受到攻击将会额外获得一层“吸血”,并且受到的伤害-20%"
|
|
621
621
|
},
|
|
622
622
|
"吐血": {
|
|
623
623
|
effect: 0,
|
|
@@ -3946,7 +3946,7 @@ ${achievementList.join("\n")}`;
|
|
|
3946
3946
|
if (initiatorGold < 100) return "发起者需要至少100金币才能发起挑战。";
|
|
3947
3947
|
if (targetGold < 100) return "对方金币不足100,无法应战。";
|
|
3948
3948
|
const powerDiff = initiatorPower - targetPower;
|
|
3949
|
-
let winRate = 50 + powerDiff /
|
|
3949
|
+
let winRate = 50 + powerDiff / 200 * 0.1;
|
|
3950
3950
|
winRate = Math.min(Math.max(winRate, 5), 95);
|
|
3951
3951
|
const isWin = Math.random() * 100 < winRate;
|
|
3952
3952
|
const stealPercentage = getRandomInt(1, 5);
|
|
@@ -4015,8 +4015,8 @@ ${achievementList.join("\n")}`;
|
|
|
4015
4015
|
});
|
|
4016
4016
|
const result = [
|
|
4017
4017
|
`⚔️【对战结果】${isWin ? "胜利" : "失败"}`,
|
|
4018
|
-
`🏅 挑战者:${initiatorRankname}(战斗力 ${
|
|
4019
|
-
`🛡️ 应战者:${targetRankname}(战斗力 ${
|
|
4018
|
+
`🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
|
|
4019
|
+
`🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
|
|
4020
4020
|
`📊 胜率预测:${winRate.toFixed(1)}%`,
|
|
4021
4021
|
`🎰 金币变动:${stealPercentage}%`
|
|
4022
4022
|
];
|