koishi-plugin-ggcevo-game 1.2.46 → 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 +7 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -637,7 +637,7 @@ function apply(ctx, config) {
|
|
|
637
637
|
},
|
|
638
638
|
"冷适应": {
|
|
639
639
|
effect: 0,
|
|
640
|
-
description: "受到
|
|
640
|
+
description: "受到5次寒冷伤害后,永久获得“惧热”标签,同时免疫寒冷伤害"
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
const bossPool = [
|
|
@@ -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 >=
|
|
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} 触发【冷适应】,永久获得「惧热」标签并免疫寒冷伤害!`]
|
|
@@ -1108,7 +1108,7 @@ function apply(ctx, config) {
|
|
|
1108
1108
|
}, "handleColdAdaptation"),
|
|
1109
1109
|
// 新增冷适应免疫处理函数(模仿冰霜进化)
|
|
1110
1110
|
handleColdAdaptationImmunity: /* @__PURE__ */ __name(function(targetBoss, weaponName) {
|
|
1111
|
-
if (targetBoss.type === "主宰" && targetBoss.name === "莽兽" && targetBoss.skills.includes("冷适应") && targetBoss.Skillcountpoints >=
|
|
1111
|
+
if (targetBoss.type === "主宰" && targetBoss.name === "莽兽" && targetBoss.skills.includes("冷适应") && targetBoss.Skillcountpoints >= 5 && weaponName === "零度之下") {
|
|
1112
1112
|
return {
|
|
1113
1113
|
initialDamage: 0,
|
|
1114
1114
|
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
|
];
|