koishi-plugin-ggcevo-game 1.2.32 → 1.2.33

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 +5 -6
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -331,12 +331,11 @@ function apply(ctx, config) {
331
331
  "狙击步枪": {
332
332
  id: 7,
333
333
  type: "实弹武器",
334
- damage: 50,
334
+ damage: 60,
335
335
  description: "用于隐秘射击的最佳武器,但是无法穿透护甲",
336
336
  price: 550,
337
337
  tagEffects: {
338
- "生物": 1.5,
339
- "轻甲": 0.8,
338
+ "轻甲": 0.5,
340
339
  "重甲": 0.2
341
340
  }
342
341
  }
@@ -580,7 +579,7 @@ function apply(ctx, config) {
580
579
  damage *= 1 + levelBonus;
581
580
  effectMessage.push(`🗡️ 悲鸣之锋祈愿触发(+${(levelBonus * 100).toFixed(0)}%等级加成)`);
582
581
  }
583
- const [rankRecord] = await ctx2.database.get("ggcevo_rank", { handle: session.handle });
582
+ const [rankRecord] = await ctx2.database.get("ggcevo_rank", { handle: session.handle, rankseason: config.rankseason });
584
583
  const rankBonus = calculateRankBonus(rankRecord);
585
584
  damage *= 1 + rankBonus;
586
585
  return {
@@ -1565,7 +1564,7 @@ ${itemDetails.join("\n")}`;
1565
1564
  });
1566
1565
  if (!user) return "暂未找到您的排名信息。";
1567
1566
  if (user.Blacklist) return "❌ 您已经被禁止参加本赛季胜点榜。";
1568
- const allRanks = await ctx.database.select("ggcevo_rank").where({ Blacklist: false }).orderBy("rank", "desc").execute();
1567
+ const allRanks = await ctx.database.select("ggcevo_rank").where({ Blacklist: false, rankseason: config.rankseason }).orderBy("rank", "desc").execute();
1569
1568
  const userRank = allRanks.findIndex(
1570
1569
  (u) => u.handle === handle
1571
1570
  ) + 1;
@@ -1598,7 +1597,7 @@ ${itemDetails.join("\n")}`;
1598
1597
  });
1599
1598
  if (!user) return "暂未找到对方的排名信息。";
1600
1599
  if (user.Blacklist) return "❌ 对方已经被禁止参加本赛季胜点榜。";
1601
- const allRanks = await ctx.database.select("ggcevo_rank").where({ Blacklist: false }).orderBy("rank", "desc").execute();
1600
+ const allRanks = await ctx.database.select("ggcevo_rank").where({ Blacklist: false, rankseason: config.rankseason }).orderBy("rank", "desc").execute();
1602
1601
  const userRank = allRanks.findIndex(
1603
1602
  (u) => u.handle === handle
1604
1603
  ) + 1;
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.2.32",
4
+ "version": "1.2.33",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [