koishi-plugin-ggcevo-game 2.0.7 → 2.0.8

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 +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -8079,10 +8079,11 @@ function apply(ctx, config) {
8079
8079
  const result = await gachaWithPity(ctx, handle);
8080
8080
  if (result) winCount++;
8081
8081
  }
8082
+ const [updatedRecord] = await ctx.database.get("ggcevo_sign", { handle });
8082
8083
  return [
8083
8084
  `🎰 您使用了${quantity}枚咕咕币`,
8084
8085
  winCount > 0 ? `🎉 其中获得${winCount}张兑换券!` : "💔 本次未获得任何兑换券",
8085
- `📊 当前保底进度:${record.pityCounter || 0}/90`
8086
+ `📊 当前保底进度:${updatedRecord?.pityCounter || 0}/90`
8086
8087
  ].join("\n");
8087
8088
  });
8088
8089
  ctx.command("ggcevo/单抽").action(async (argv) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "星际争霸2咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [