koishi-plugin-ggcevo-game 1.3.21 → 1.3.22
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 +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -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 / 50 * 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);
|
|
@@ -5475,7 +5475,7 @@ ${passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
5475
5475
|
`✅ 成功使用 ${itemNameConfirmed}`,
|
|
5476
5476
|
`├ 剩余数量:${newQuantity}`,
|
|
5477
5477
|
`└ 效果触发:${effectResult.message}`,
|
|
5478
|
-
"─".repeat(
|
|
5478
|
+
"─".repeat(14)
|
|
5479
5479
|
].join("\n");
|
|
5480
5480
|
} catch (error) {
|
|
5481
5481
|
ctx.logger("GGCEVO").error(error);
|