koishi-plugin-ggcevo-game 1.0.4 → 1.0.5

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 +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -935,6 +935,7 @@ ID:${activity.id}
935
935
  句柄:${user.handle}
936
936
  当前积分:${user.rank}
937
937
  参赛次数:${user.matches} 次
938
+ 胜率: ${user.matches === 0 ? "0.00%" : (user.wins / user.matches * 100).toFixed(2) + "%"}
938
939
  全服排名:第 ${userRank} 位
939
940
  ------------------------------`;
940
941
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "星际争霸2游戏大厅咕咕虫-Evo地图专属插件",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [