koishi-plugin-ggcevo-game 1.2.18 → 1.2.20

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 +10 -10
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -2214,14 +2214,14 @@ ${validTypes.join("、")}`;
2214
2214
  const slots = Math.floor(newLevel / 3) + 1;
2215
2215
  return `${weapon} 升级成功!当前等级:${newLevel},伤害:${baseDamage},可用改装槽:${slots}个`;
2216
2216
  });
2217
- ctx.command("ggcevo/改装 <weapon> [mod]", "安装武器改装件").alias("改装武器").action(async ({ session }, weapon, mod) => {
2217
+ ctx.command("ggcevo/改装 <weapon> [mod]", "安装武器模块").alias("改装武器").action(async ({ session }, weapon, mod) => {
2218
2218
  const isValidWeapon = weapon && weaponConfig[weapon]?.id !== void 0;
2219
2219
  const generateModList = /* @__PURE__ */ __name(() => {
2220
2220
  if (!isValidWeapon) {
2221
2221
  return Object.entries(modConfig).filter(([_, m]) => !m.isExclusive).map(formatModEntry).join("\n\n");
2222
2222
  }
2223
2223
  const exclusiveMods = Object.entries(modConfig).filter(([_, m]) => m.isExclusive && m.exclusiveTo === weapon).map(formatModEntry);
2224
- return exclusiveMods.length ? exclusiveMods.join("\n\n") : "该武器暂无专属改装件";
2224
+ return exclusiveMods.length ? exclusiveMods.join("\n\n") : "该武器暂无专属模块";
2225
2225
  }, "generateModList");
2226
2226
  const formatModEntry = /* @__PURE__ */ __name(([name2, config2]) => [
2227
2227
  `【${name2}】${config2.isExclusive ? ` (专属:${config2.exclusiveTo})` : ""}`,
@@ -2231,8 +2231,8 @@ ${validTypes.join("、")}`;
2231
2231
  ].filter(Boolean).join("\n"), "formatModEntry");
2232
2232
  if (!mod || !modConfig[mod]) {
2233
2233
  return [
2234
- isValidWeapon ? `🛠️ ${weapon} 专属改装件 🛠️` : "🛠️ 通用武器改装件 🛠️",
2235
- isValidWeapon ? `使用「改装 ${weapon} 改装件」安装专属改装件` : weapon ? "※ 无效武器名称,请使用「改装 武器名称 改装件」安装通用改装件" : "※ 输入「改装 武器名称」查询专属改装件\n※ 安装改装件:「改装 武器名称 改装件」",
2234
+ isValidWeapon ? `🛠️ ${weapon} 专属模块 🛠️` : "🛠️ 通用武器模块 🛠️",
2235
+ isValidWeapon ? `使用「改装 ${weapon} 模块」安装专属模块` : weapon ? "※ 无效武器名称,请使用「改装 武器名称 模块」安装通用模块" : "※ 输入「改装 武器名称」查询专属模块\n※ 安装模块:「改装 武器名称 模块」",
2236
2236
  "====================",
2237
2237
  generateModList()
2238
2238
  ].join("\n\n");
@@ -2249,17 +2249,17 @@ ${validTypes.join("、")}`;
2249
2249
  const modInfo = modConfig[mod];
2250
2250
  if (modInfo.isExclusive) {
2251
2251
  if (modInfo.exclusiveTo !== weapon) {
2252
- return `❌ 该模块只能安装在${modInfo.exclusiveTo}上`;
2252
+ return `❌ 该模块只能安装在${modInfo.exclusiveTo}上。`;
2253
2253
  }
2254
2254
  const hasExclusive = equipment.installedMods.some((m) => modConfig[m]?.isExclusive);
2255
- if (hasExclusive) return "❌ 每个武器只能安装一个专属模块";
2255
+ if (hasExclusive) return "❌ 每个武器只能安装一个专属模块。";
2256
2256
  }
2257
2257
  if (equipment.installedMods.length >= equipment.modificationSlots)
2258
- return "改装槽已满,请先升级武器。";
2258
+ return "改装槽已满,升级武器等级至3/6级的时候会额外获得一个改装槽。";
2259
2259
  if (equipment.installedMods.includes(mod))
2260
- return "已安装相同改装件。";
2260
+ return "已安装相同模块。";
2261
2261
  if ((signInfo?.totalRewards || 0) < modInfo.cost)
2262
- return `需要${modInfo.cost}金币,当前持有:${signInfo?.totalRewards || 0}`;
2262
+ return `需要${modInfo.cost}枚金币,当前持有:${signInfo?.totalRewards || 0}`;
2263
2263
  await ctx.database.set("ggcevo_equipment", {
2264
2264
  handle,
2265
2265
  weaponId: weaponConfig[weapon].id
@@ -2273,7 +2273,7 @@ ${validTypes.join("、")}`;
2273
2273
  const config2 = modConfig[m];
2274
2274
  return [
2275
2275
  `【${m}】`,
2276
- `安装费用:${config2.cost}金币`,
2276
+ `安装费用:${config2.cost}枚金币`,
2277
2277
  `效果:${config2.effect}`
2278
2278
  ].join("\n");
2279
2279
  }).join("\n\n");
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.18",
4
+ "version": "1.2.20",
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.10"
22
+ "koishi-plugin-sc2arcade-search": "^1.1.11"
23
23
  },
24
24
  "koishi": {
25
25
  "service": {