koishi-plugin-ggcevo-game 1.2.52 → 1.2.54

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 +15 -13
  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} 触发【冷适应】免疫寒冷伤害!`]
@@ -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", {
@@ -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 "您暂未绑定句柄。";
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.52",
4
+ "version": "1.2.54",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [