koishi-plugin-ggcevo-game 1.2.53 → 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 +22 -21
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -358,13 +358,13 @@ function apply(ctx, config) {
358
358
  },
359
359
  "弧焊枪": {
360
360
  id: 9,
361
- type: "实弹武器",
361
+ type: "能量武器",
362
362
  damage: 30,
363
363
  description: "一种经过改造的电动工具,可对近距离的目标放出高压电",
364
364
  price: 750,
365
365
  tagEffects: {
366
- "机械": 1.5,
367
- "建筑": 2
366
+ "建筑": 2,
367
+ "机械": 1.5
368
368
  }
369
369
  }
370
370
  };
@@ -398,7 +398,7 @@ function apply(ctx, config) {
398
398
  },
399
399
  "助燃核心": {
400
400
  cost: 2550,
401
- effect: "对惧热目标改为造成300%伤害",
401
+ effect: "对惧热目标改为造成400%伤害",
402
402
  exclusiveTo: "焚烧枪",
403
403
  isExclusive: true
404
404
  }
@@ -678,7 +678,7 @@ function apply(ctx, config) {
678
678
  },
679
679
  "冷适应": {
680
680
  effect: 0,
681
- description: "受到5次寒冷伤害后,永久获得“惧热”标签,同时免疫寒冷伤害"
681
+ description: "受到10次寒冷伤害后,永久获得“惧热”标签,同时免疫寒冷伤害"
682
682
  }
683
683
  };
684
684
  const bossPool = [
@@ -794,7 +794,7 @@ function apply(ctx, config) {
794
794
  if (tag === "重甲" && equippedWeapon.installedMods.includes("裂甲核心")) {
795
795
  effectValue = 1.2;
796
796
  } else if (tag === "惧热" && equippedWeapon.installedMods.includes("助燃核心")) {
797
- effectValue = 3;
797
+ effectValue = 4;
798
798
  } else {
799
799
  effectValue = weaponData.tagEffects?.[tag] ?? 1;
800
800
  }
@@ -1138,7 +1138,7 @@ function apply(ctx, config) {
1138
1138
  await ctx2.database.set("ggcevo_boss", { name: targetBoss.name }, {
1139
1139
  Skillcountpoints: newCount
1140
1140
  });
1141
- if (newCount >= 5 && !targetBoss.tags.includes("惧热")) {
1141
+ if (newCount >= 10 && !targetBoss.tags.includes("惧热")) {
1142
1142
  const newtags = [.../* @__PURE__ */ new Set([...targetBoss.tags, "惧热"])];
1143
1143
  await ctx2.database.set("ggcevo_boss", { name: targetBoss.name }, {
1144
1144
  tags: newtags
@@ -1151,7 +1151,7 @@ function apply(ctx, config) {
1151
1151
  }, "handleColdAdaptation"),
1152
1152
  // 新增冷适应免疫处理函数(模仿冰霜进化)
1153
1153
  handleColdAdaptationImmunity: /* @__PURE__ */ __name(function(targetBoss, weaponName) {
1154
- if (targetBoss.type === "主宰" && targetBoss.name === "莽兽" && targetBoss.skills.includes("冷适应") && targetBoss.Skillcountpoints >= 5 && weaponName === "零度之下") {
1154
+ if (targetBoss.type === "主宰" && targetBoss.name === "莽兽" && targetBoss.skills.includes("冷适应") && targetBoss.Skillcountpoints >= 10 && weaponName === "零度之下") {
1155
1155
  return {
1156
1156
  initialDamage: 0,
1157
1157
  messages: [`❄️ ${targetBoss.name} 触发【冷适应】免疫寒冷伤害!`]
@@ -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");
@@ -3028,12 +3028,12 @@ ${validTypes.join("、")}`;
3028
3028
  });
3029
3029
  return [
3030
3030
  `🏪 咕咕武器库 - ${normalizedType} 🏪`,
3031
- "使用“购买 武器名称”命令进行购买",
3031
+ "使用“购买武器 武器名称”命令进行购买",
3032
3032
  "====================",
3033
3033
  ...items
3034
3034
  ].join("\n\n");
3035
3035
  });
3036
- ctx.command("ggcevo/购买 <weapon>").action(async ({ session }, weapon) => {
3036
+ ctx.command("ggcevo/购买武器 <weapon>").action(async ({ session }, weapon) => {
3037
3037
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
3038
3038
  if (!profile) return "您暂未绑定句柄。";
3039
3039
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
@@ -3042,7 +3042,7 @@ ${validTypes.join("、")}`;
3042
3042
  return `❌ 拒绝访问,您已被列入黑名单。`;
3043
3043
  }
3044
3044
  const [signInfo] = await ctx.database.get("ggcevo_sign", { handle });
3045
- if (!weapon) return "如果您想购买武器,请输入“购买 武器名称”。";
3045
+ if (!weapon) return "如果您想购买武器,请输入“购买武器 武器名称”。";
3046
3046
  if (!weaponConfig[weapon]) return "无效的武器名称,请重新输入。";
3047
3047
  const config2 = weaponConfig[weapon];
3048
3048
  const existingWeapons = await ctx.database.get("ggcevo_equipment", {
@@ -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 });
@@ -3301,7 +3301,8 @@ ${validTypes.join("、")}`;
3301
3301
  }, "getActiveBossNames");
3302
3302
  if (!bossName) {
3303
3303
  const activeNames = await getActiveBossNames();
3304
- return `请输入正确的攻击目标,当前存活的异形:${activeNames || "无"}。请使用"攻击 异形名称"进行攻击。`;
3304
+ return `请使用"攻击 异形名称"进行攻击。
3305
+ 当前存活的异形:${activeNames || "无"}。`;
3305
3306
  }
3306
3307
  const [targetBoss] = await ctx.database.get("ggcevo_boss", {
3307
3308
  name: bossName,
@@ -3309,7 +3310,8 @@ ${validTypes.join("、")}`;
3309
3310
  });
3310
3311
  if (!targetBoss) {
3311
3312
  const activeNames = await getActiveBossNames();
3312
- return `当前没有找到名为 ${bossName} 的可攻击目标,当前存活的异形:${activeNames || "无"}。请使用"攻击 异形名称"进行攻击。`;
3313
+ return `当前没有找到名为 ${bossName} 的可攻击目标。
3314
+ 当前存活的异形:${activeNames || "无"}。`;
3313
3315
  }
3314
3316
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
3315
3317
  if (!profile) return "您暂未绑定句柄。";
@@ -3399,7 +3401,7 @@ ${validTypes.join("、")}`;
3399
3401
  bossGroupId: targetBoss.groupId
3400
3402
  });
3401
3403
  broadcastMessage = [
3402
- `🎯 主宰 ${targetBoss.name} 已被 ${session.username} 击破!`,
3404
+ `🎯 主宰 ${targetBoss.name} 已被 ${session.username} 击败!`,
3403
3405
  `所有子代已消失,下一个主宰将在1小时后重生`,
3404
3406
  "",
3405
3407
  "🏆 伤害排行榜奖励:",
@@ -3421,7 +3423,7 @@ ${validTypes.join("、")}`;
3421
3423
  isActive: true
3422
3424
  });
3423
3425
  const broadcastMessages = [
3424
- `⚡ ${session.username} 击破了子代 ${targetBoss.name}!`
3426
+ `⚡ ${session.username} 击败了子代 ${targetBoss.name}!`
3425
3427
  ];
3426
3428
  if (remainingMinions.length === 0) {
3427
3429
  const [mainBoss] = await ctx.database.get("ggcevo_boss", {
@@ -3469,7 +3471,6 @@ ${validTypes.join("、")}`;
3469
3471
  await session.send(resultMessage);
3470
3472
  if (broadcastMessage) {
3471
3473
  const finalBroadcast = Array.isArray(broadcastMessage) ? broadcastMessage.join("\n") : broadcastMessage;
3472
- await new Promise((resolve) => setTimeout(resolve, 500));
3473
3474
  await ctx.broadcast(config2.groupId, finalBroadcast);
3474
3475
  }
3475
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.53",
4
+ "version": "1.2.55",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [