koishi-plugin-ggcevo-game 1.5.18 → 1.5.19
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/boss/BattleEffectProcessor.d.ts +4 -0
- package/lib/boss/passive.d.ts +5 -0
- package/lib/index.js +31 -2
- package/package.json +1 -1
|
@@ -645,6 +645,10 @@ export declare const BattleEffectProcessor: {
|
|
|
645
645
|
isImmune: boolean;
|
|
646
646
|
messages: string[];
|
|
647
647
|
} | null;
|
|
648
|
+
handleShiveringHowl: (targetBoss: any) => {
|
|
649
|
+
nerfMultiplier: number;
|
|
650
|
+
messages: string[];
|
|
651
|
+
} | null;
|
|
648
652
|
};
|
|
649
653
|
/**
|
|
650
654
|
* 统一处理所有被动效果(包含伤害修正、免疫检查、状态更新等)
|
package/lib/boss/passive.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1274,7 +1274,7 @@ var bossPool = [
|
|
|
1274
1274
|
shieldArmor: 0,
|
|
1275
1275
|
maxStacks: 0,
|
|
1276
1276
|
tags: ["重甲", "生物", "惧热", "重型", "异形"],
|
|
1277
|
-
passive: ["冰霜环绕", "冰霜进化"]
|
|
1277
|
+
passive: ["冰霜环绕", "冰霜进化", "冰悚嚎叫"]
|
|
1278
1278
|
},
|
|
1279
1279
|
minions: [
|
|
1280
1280
|
{
|
|
@@ -4107,7 +4107,26 @@ var BattleEffectProcessor = {
|
|
|
4107
4107
|
};
|
|
4108
4108
|
}
|
|
4109
4109
|
return null;
|
|
4110
|
-
}, "handleBiologicalSignatureImitation")
|
|
4110
|
+
}, "handleBiologicalSignatureImitation"),
|
|
4111
|
+
// 冰悚嚎叫处理(50%血量以下减伤30%)
|
|
4112
|
+
handleShiveringHowl: /* @__PURE__ */ __name(function(targetBoss) {
|
|
4113
|
+
const messages = [];
|
|
4114
|
+
if (!targetBoss.skills.includes("冰悚嚎叫")) {
|
|
4115
|
+
return null;
|
|
4116
|
+
}
|
|
4117
|
+
const maxHP = getMaxHPByName(targetBoss.name);
|
|
4118
|
+
if (typeof maxHP !== "number") return null;
|
|
4119
|
+
const hpPercent = targetBoss.HP / maxHP;
|
|
4120
|
+
if (hpPercent > 0.5) {
|
|
4121
|
+
return null;
|
|
4122
|
+
}
|
|
4123
|
+
const nerfMultiplier = 0.3;
|
|
4124
|
+
messages.push(`❄️ 【冰悚嚎叫】生效:生命值≤50%,受到的伤害-30%`);
|
|
4125
|
+
return {
|
|
4126
|
+
nerfMultiplier,
|
|
4127
|
+
messages
|
|
4128
|
+
};
|
|
4129
|
+
}, "handleShiveringHowl")
|
|
4111
4130
|
};
|
|
4112
4131
|
function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCrit, ignoreRate, careerData, equippedWeapon) {
|
|
4113
4132
|
const messages = [];
|
|
@@ -4265,6 +4284,8 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4265
4284
|
{ effect: BattleEffectProcessor.handleVomit, args: [targetBoss] },
|
|
4266
4285
|
{ effect: BattleEffectProcessor.handleRampage, args: [targetBoss] },
|
|
4267
4286
|
{ effect: BattleEffectProcessor.handleHyperRangeShift, args: [targetBoss] },
|
|
4287
|
+
// +++ 新增:冰悚嚎叫技能处理 +++
|
|
4288
|
+
{ effect: BattleEffectProcessor.handleShiveringHowl, args: [targetBoss] },
|
|
4268
4289
|
// 1. 毒性唾液
|
|
4269
4290
|
{ effect: BattleEffectProcessor.handleToxicSaliva, args: [targetBoss] },
|
|
4270
4291
|
// 2. 剧毒狂暴
|
|
@@ -4459,6 +4480,9 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4459
4480
|
if (equippedWeapon.installedMods?.includes("轻型电源节点")) {
|
|
4460
4481
|
armorDamageReduction = 0;
|
|
4461
4482
|
}
|
|
4483
|
+
if (equippedWeapon.installedMods?.includes("助燃核心")) {
|
|
4484
|
+
armorDamageReduction = -0.5;
|
|
4485
|
+
}
|
|
4462
4486
|
armor += targetBoss.armor - targetBoss.radiationLayers * 0.05;
|
|
4463
4487
|
const armorReduction = armorDamageReduction * armor;
|
|
4464
4488
|
if (armorReduction !== 0) {
|
|
@@ -4963,6 +4987,11 @@ var passiveConfig = {
|
|
|
4963
4987
|
description: "受击时1%概率免疫该次伤害,每层「基因变异」提高1%的概率",
|
|
4964
4988
|
belong: [],
|
|
4965
4989
|
derivedSkills: []
|
|
4990
|
+
},
|
|
4991
|
+
"冰悚嚎叫": {
|
|
4992
|
+
description: "血量低于50%后,受到的伤害降低30%",
|
|
4993
|
+
belong: ["寒冰王蛇"],
|
|
4994
|
+
derivedSkills: []
|
|
4966
4995
|
}
|
|
4967
4996
|
};
|
|
4968
4997
|
|