koishi-plugin-ggcevo-game 1.2.15 → 1.2.17

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 -10
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1097,7 +1097,7 @@ ${itemDetails.join("\n")}`;
1097
1097
  `活动名称:${a.name}`,
1098
1098
  `活动时间:${formatDate(a.startTime)} - ${formatDate(a.endTime)}`,
1099
1099
  `活动描述:${a.description}`,
1100
- `活动奖励:${a.quantity} × ${itemMap.get(a.itemId) || "未知物品"}`,
1100
+ `活动奖励:${a.quantity} ${itemMap.get(a.itemId) || "未知物品"}`,
1101
1101
  "━".repeat(20)
1102
1102
  ].join("\n")),
1103
1103
  "请输入「领取 活动名称」领取奖励"
@@ -2232,19 +2232,11 @@ ${validTypes.join("、")}`;
2232
2232
  if (!mod || !modConfig[mod]) {
2233
2233
  return [
2234
2234
  isValidWeapon ? `🛠️ ${weapon} 专属改装件 🛠️` : "🛠️ 通用武器改装件 🛠️",
2235
- isValidWeapon ? `使用「改装 ${weapon} 改装件」安装专属模块` : "使用「改装 武器名称 改装件」进行安装",
2235
+ isValidWeapon ? `使用「改装 ${weapon} 改装件」安装专属改装件` : weapon ? " 无效武器名称,请使用「改装 武器名称 改装件」安装通用改装件" : "※ 输入「改装 武器名称」查询专属改装件\n※ 安装改装件:「改装 武器名称 改装件」",
2236
2236
  "====================",
2237
2237
  generateModList()
2238
2238
  ].join("\n\n");
2239
2239
  }
2240
- if (!isValidWeapon) {
2241
- return [
2242
- "⚠️ 无效的武器名称 ⚠️",
2243
- "====================",
2244
- "可用通用改装件:",
2245
- generateModList()
2246
- ].join("\n\n");
2247
- }
2248
2240
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
2249
2241
  if (!profile) return "您暂未绑定句柄";
2250
2242
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
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.15",
4
+ "version": "1.2.17",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -19,7 +19,7 @@
19
19
  "peerDependencies": {
20
20
  "@koishijs/plugin-proxy-agent": "^0.3.3",
21
21
  "koishi": "^4.18.7",
22
- "koishi-plugin-sc2arcade-search": "^1.1.8"
22
+ "koishi-plugin-sc2arcade-search": "^1.1.9"
23
23
  },
24
24
  "koishi": {
25
25
  "service": {