koishi-plugin-ggcevo-game 1.3.18 → 1.3.19

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 +3 -3
  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 / 20 * 0.01;
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}(战斗力 ${initiatorRank})`,
4019
- `🛡️ 应战者:${targetRankname}(战斗力 ${targetRank})`,
4018
+ `🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
4019
+ `🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
4020
4020
  `📊 胜率预测:${winRate.toFixed(1)}%`,
4021
4021
  `🎰 金币变动:${stealPercentage}%`
4022
4022
  ];
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.18",
4
+ "version": "1.3.19",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [