koishi-plugin-ggcevo-game 1.2.54 → 1.2.55

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 +7 -8
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2936,7 +2936,7 @@ ${achievementList.join("\n")}`;
2936
2936
  const rankname = record.name || record.handle;
2937
2937
  return [
2938
2938
  `${offset + index + 1}. ${rankname}`,
2939
- `总PK: ${record.total}次`,
2939
+ `PK胜利: ${record.wins}次`,
2940
2940
  `胜率: ${winRate}`
2941
2941
  ].join(" | ");
2942
2942
  }).join("\n");
@@ -3124,11 +3124,11 @@ ${validTypes.join("、")}`;
3124
3124
  "🔧 改装效果在战斗中生效"
3125
3125
  ].join("\n");
3126
3126
  });
3127
- ctx.command("ggcevo/装备 <weapon>").action(async ({ session }, weapon) => {
3127
+ ctx.command("ggcevo/装备武器 <weapon>").action(async ({ session }, weapon) => {
3128
3128
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
3129
3129
  if (!profile) return "您暂未绑定句柄。";
3130
- if (!weapon) return "缺少参数,请输入“装备 武器名称”。";
3131
- if (!weaponConfig[weapon]) return "请输入“装备 武器名称”来装备一把你拥有的武器。";
3130
+ if (!weapon) return "缺少参数,请输入“装备武器 武器名称”。";
3131
+ if (!weaponConfig[weapon]) return "请输入“装备武器 武器名称”来装备一把你拥有的武器。";
3132
3132
  const config2 = weaponConfig[weapon];
3133
3133
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
3134
3134
  const existingEntries = await ctx.database.get("ggcevo_blacklist", { handle });
@@ -3156,7 +3156,7 @@ ${validTypes.join("、")}`;
3156
3156
  equipped: true
3157
3157
  }], ["handle", "weaponId"]);
3158
3158
  });
3159
- return `您已成功装备 ${weapon}!`;
3159
+ return `您已成功装备武器 ${weapon}!`;
3160
3160
  });
3161
3161
  ctx.command("ggcevo/升级武器 <weapon>", "升级武器伤害").action(async ({ session }, weapon) => {
3162
3162
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
@@ -3401,7 +3401,7 @@ ${validTypes.join("、")}`;
3401
3401
  bossGroupId: targetBoss.groupId
3402
3402
  });
3403
3403
  broadcastMessage = [
3404
- `🎯 主宰 ${targetBoss.name} 已被 ${session.username} 击破!`,
3404
+ `🎯 主宰 ${targetBoss.name} 已被 ${session.username} 击败!`,
3405
3405
  `所有子代已消失,下一个主宰将在1小时后重生`,
3406
3406
  "",
3407
3407
  "🏆 伤害排行榜奖励:",
@@ -3423,7 +3423,7 @@ ${validTypes.join("、")}`;
3423
3423
  isActive: true
3424
3424
  });
3425
3425
  const broadcastMessages = [
3426
- `⚡ ${session.username} 击破了子代 ${targetBoss.name}!`
3426
+ `⚡ ${session.username} 击败了子代 ${targetBoss.name}!`
3427
3427
  ];
3428
3428
  if (remainingMinions.length === 0) {
3429
3429
  const [mainBoss] = await ctx.database.get("ggcevo_boss", {
@@ -3471,7 +3471,6 @@ ${validTypes.join("、")}`;
3471
3471
  await session.send(resultMessage);
3472
3472
  if (broadcastMessage) {
3473
3473
  const finalBroadcast = Array.isArray(broadcastMessage) ? broadcastMessage.join("\n") : broadcastMessage;
3474
- await new Promise((resolve) => setTimeout(resolve, 500));
3475
3474
  await ctx.broadcast(config2.groupId, finalBroadcast);
3476
3475
  }
3477
3476
  return;
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.54",
4
+ "version": "1.2.55",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [