koishi-plugin-ggcevo-game 1.2.16 → 1.2.18

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 -13
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -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}`;
@@ -2257,15 +2249,15 @@ ${validTypes.join("、")}`;
2257
2249
  const modInfo = modConfig[mod];
2258
2250
  if (modInfo.isExclusive) {
2259
2251
  if (modInfo.exclusiveTo !== weapon) {
2260
- return `【错误】该模块只能安装在${modInfo.exclusiveTo}上`;
2252
+ return `❌ 该模块只能安装在${modInfo.exclusiveTo}上`;
2261
2253
  }
2262
2254
  const hasExclusive = equipment.installedMods.some((m) => modConfig[m]?.isExclusive);
2263
- if (hasExclusive) return "【错误】每个武器只能安装一个专属模块";
2255
+ if (hasExclusive) return "❌ 每个武器只能安装一个专属模块";
2264
2256
  }
2265
2257
  if (equipment.installedMods.length >= equipment.modificationSlots)
2266
- return "改装槽已满,请先升级武器";
2258
+ return "改装槽已满,请先升级武器。";
2267
2259
  if (equipment.installedMods.includes(mod))
2268
- return "已安装相同改装件";
2260
+ return "已安装相同改装件。";
2269
2261
  if ((signInfo?.totalRewards || 0) < modInfo.cost)
2270
2262
  return `需要${modInfo.cost}金币,当前持有:${signInfo?.totalRewards || 0}`;
2271
2263
  await ctx.database.set("ggcevo_equipment", {
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.16",
4
+ "version": "1.2.18",
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.10"
23
23
  },
24
24
  "koishi": {
25
25
  "service": {