koishi-plugin-ggcevo-game 1.6.55 → 1.6.57
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 +14 -27
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2169,7 +2169,7 @@ var BattleEffectProcessor = {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
};
|
|
2171
2171
|
}, "handleSurvivalInstinctII"),
|
|
2172
|
-
// 冷适应处理 -
|
|
2172
|
+
// 冷适应处理 - 修改版:只要有惧热标签并且寒冷层数>0就清除寒冷层数
|
|
2173
2173
|
handleColdAdaptation: /* @__PURE__ */ __name(function(targetBoss, weaponName) {
|
|
2174
2174
|
const messages = [];
|
|
2175
2175
|
let isImmune = false;
|
|
@@ -2181,27 +2181,21 @@ var BattleEffectProcessor = {
|
|
|
2181
2181
|
const currentLayers = targetBoss.statusLayers || 0;
|
|
2182
2182
|
const hasFearHeatTag = targetBoss.tags.includes("惧热") || false;
|
|
2183
2183
|
const currentColdLayers = targetBoss.coldLayers || 0;
|
|
2184
|
+
if (hasFearHeatTag && currentColdLayers > 0) {
|
|
2185
|
+
if (!targetUpdates) {
|
|
2186
|
+
targetUpdates = {
|
|
2187
|
+
name: targetBoss.name,
|
|
2188
|
+
updates: {}
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
targetUpdates.updates.coldLayersChange = -(currentColdLayers + 2);
|
|
2192
|
+
messages.push(`🌬️ 【冷适应】生效:清除全部${currentColdLayers}层寒冷效果`);
|
|
2193
|
+
}
|
|
2184
2194
|
if (hasFearHeatTag && weaponName === "零度之下") {
|
|
2185
2195
|
isImmune = true;
|
|
2186
2196
|
immuneCold = true;
|
|
2187
|
-
if (currentColdLayers > 0) {
|
|
2188
|
-
if (!targetUpdates) {
|
|
2189
|
-
targetUpdates = {
|
|
2190
|
-
name: targetBoss.name,
|
|
2191
|
-
updates: {}
|
|
2192
|
-
};
|
|
2193
|
-
}
|
|
2194
|
-
targetUpdates.updates.coldLayersChange = -(currentColdLayers + 2);
|
|
2195
|
-
messages.push(`🌬️ 【冷适应】生效:清除全部寒冷效果`);
|
|
2196
|
-
}
|
|
2197
2197
|
messages.push(`🌬️ 【冷适应】生效:免疫寒冷伤害`);
|
|
2198
|
-
return {
|
|
2199
|
-
isImmune,
|
|
2200
|
-
immuneCold,
|
|
2201
|
-
// 返回新增的免疫标记
|
|
2202
|
-
messages,
|
|
2203
|
-
targetUpdates
|
|
2204
|
-
};
|
|
2198
|
+
return { isImmune, immuneCold, messages, targetUpdates };
|
|
2205
2199
|
}
|
|
2206
2200
|
if (currentLayers < 10 && weaponName === "零度之下") {
|
|
2207
2201
|
const newLayers = currentLayers + 1;
|
|
@@ -2209,7 +2203,6 @@ var BattleEffectProcessor = {
|
|
|
2209
2203
|
name: targetBoss.name,
|
|
2210
2204
|
updates: {
|
|
2211
2205
|
statusLayersChanged: 1
|
|
2212
|
-
// 层数+1
|
|
2213
2206
|
}
|
|
2214
2207
|
};
|
|
2215
2208
|
messages.push(`🌬️ 【冷适应】触发:当前${newLayers}层`);
|
|
@@ -2218,13 +2211,7 @@ var BattleEffectProcessor = {
|
|
|
2218
2211
|
messages.push(`🔥 【冷适应】生效:获得「惧热」标签并免疫寒冷伤害`);
|
|
2219
2212
|
}
|
|
2220
2213
|
}
|
|
2221
|
-
return {
|
|
2222
|
-
isImmune,
|
|
2223
|
-
immuneCold,
|
|
2224
|
-
// 返回新增的免疫标记
|
|
2225
|
-
messages,
|
|
2226
|
-
targetUpdates
|
|
2227
|
-
};
|
|
2214
|
+
return { isImmune, immuneCold, messages, targetUpdates };
|
|
2228
2215
|
}, "handleColdAdaptation"),
|
|
2229
2216
|
// 感染空间站处理(空间站存活时自身减伤50%)
|
|
2230
2217
|
handleInfectedSpaceStation: /* @__PURE__ */ __name(function(targetBoss, activeBosses) {
|
|
@@ -10771,7 +10758,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
10771
10758
|
await ctx.broadcast(groupId, kfcMsg);
|
|
10772
10759
|
break;
|
|
10773
10760
|
case "夜市赠礼":
|
|
10774
|
-
const [backpack] = await ctx.database.get("ggcevo_backpack", { handle, itemId:
|
|
10761
|
+
const [backpack] = await ctx.database.get("ggcevo_backpack", { handle, itemId: 8 });
|
|
10775
10762
|
await ctx.database.upsert("ggcevo_backpack", [{
|
|
10776
10763
|
handle,
|
|
10777
10764
|
itemId: 8,
|