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.
- package/lib/index.js +5 -5
- 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.
|
|
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.
|
|
1099
|
-
const
|
|
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:
|
|
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
|
-
// 从数据库
|
|
3472
|
+
// 从数据库tags字段获取
|
|
3473
3473
|
"被动:",
|
|
3474
3474
|
...mainBoss.skills.map((p) => `${p}:${passiveConfig[p]?.description}`) || ["无"]
|
|
3475
3475
|
];
|