koishi-plugin-ggcevo-game 1.2.47 → 1.2.48

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 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1088,17 +1088,17 @@ function apply(ctx, config) {
1088
1088
  }, "handleFrostRecovery"),
1089
1089
  // 冷适应计数处理
1090
1090
  handleColdAdaptation: /* @__PURE__ */ __name(async function(ctx2, targetBoss, weaponName) {
1091
- if (weaponName !== "零度之下" || !targetBoss.skills.includes("冷适应") || targetBoss.label.includes("惧热")) {
1091
+ if (weaponName !== "零度之下" || !targetBoss.skills.includes("冷适应") || targetBoss.tags.includes("惧热")) {
1092
1092
  return null;
1093
1093
  }
1094
1094
  const newCount = (targetBoss.Skillcountpoints || 0) + 1;
1095
1095
  await ctx2.database.set("ggcevo_boss", { name: targetBoss.name }, {
1096
1096
  Skillcountpoints: newCount
1097
1097
  });
1098
- if (newCount >= 5 && !targetBoss.label.includes("惧热")) {
1099
- const newLabels = [.../* @__PURE__ */ new Set([...targetBoss.label, "惧热"])];
1098
+ if (newCount >= 5 && !targetBoss.tags.includes("惧热")) {
1099
+ const newtags = [.../* @__PURE__ */ new Set([...targetBoss.tags, "惧热"])];
1100
1100
  await ctx2.database.set("ggcevo_boss", { name: targetBoss.name }, {
1101
- tags: newLabels
1101
+ tags: newtags
1102
1102
  });
1103
1103
  return {
1104
1104
  messages: [`❄️ ${targetBoss.name} 触发【冷适应】,永久获得「惧热」标签并免疫寒冷伤害!`]
@@ -3469,7 +3469,7 @@ ${validTypes.join("、")}`;
3469
3469
  `🔴 主宰:${mainBoss.name}`,
3470
3470
  `${mainBossHpBar} (${mainBoss.HP}/${bossGroup.main.maxHP})`,
3471
3471
  `标签:${mainBoss.tags?.join("、") || "无"}`,
3472
- // 从数据库label字段获取
3472
+ // 从数据库tags字段获取
3473
3473
  "被动:",
3474
3474
  ...mainBoss.skills.map((p) => `${p}:${passiveConfig[p]?.description}`) || ["无"]
3475
3475
  ];
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.47",
4
+ "version": "1.2.48",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [