koishi-plugin-ggcevo-game 1.5.1 → 1.5.2
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 +0 -4
- package/lib/index.js +16 -13
- package/package.json +1 -1
|
@@ -619,10 +619,6 @@ export declare const BattleEffectProcessor: {
|
|
|
619
619
|
} | null;
|
|
620
620
|
handleEnduranceEnhancement: (targetBoss: any) => {
|
|
621
621
|
messages: string[];
|
|
622
|
-
targetUpdates: {
|
|
623
|
-
name: string;
|
|
624
|
-
updates: Partial<BattleStatistics>;
|
|
625
|
-
} | null;
|
|
626
622
|
nerfMultiplier: number;
|
|
627
623
|
} | null;
|
|
628
624
|
handleThickenedCarapace: (targetBoss: any) => {
|
package/lib/index.js
CHANGED
|
@@ -3758,6 +3758,9 @@ var BattleEffectProcessor = {
|
|
|
3758
3758
|
}
|
|
3759
3759
|
};
|
|
3760
3760
|
messages.push(`🧬 【基因变异】生效:获得1层「基因变异」`);
|
|
3761
|
+
const energyGain = 100;
|
|
3762
|
+
targetUpdates.updates.energyChange = energyGain;
|
|
3763
|
+
messages.push(`🧬 【基因变异】生效:回复${energyGain}点能量`);
|
|
3761
3764
|
if ((currentStatusLayers + 1) % 3 === 0) {
|
|
3762
3765
|
const geneSkills = targetBoss.skills.filter((skill) => [
|
|
3763
3766
|
"优化冗余片段",
|
|
@@ -3906,11 +3909,7 @@ var BattleEffectProcessor = {
|
|
|
3906
3909
|
return null;
|
|
3907
3910
|
}
|
|
3908
3911
|
const messages = [];
|
|
3909
|
-
const updates = {};
|
|
3910
3912
|
let nerfMultiplier = 0;
|
|
3911
|
-
const energyGain = 100;
|
|
3912
|
-
updates.energyChange = energyGain;
|
|
3913
|
-
messages.push(`🧬 【耐力强化】生效:回复${energyGain}点能量`);
|
|
3914
3913
|
const currentEnergy = targetBoss.energy || 0;
|
|
3915
3914
|
const maxEnergy = getMaxEnergyByName(targetBoss.name);
|
|
3916
3915
|
const energyPercent = maxEnergy > 0 ? currentEnergy / maxEnergy : 0;
|
|
@@ -3926,10 +3925,6 @@ var BattleEffectProcessor = {
|
|
|
3926
3925
|
}
|
|
3927
3926
|
return {
|
|
3928
3927
|
messages,
|
|
3929
|
-
targetUpdates: {
|
|
3930
|
-
name: targetBoss.name,
|
|
3931
|
-
updates
|
|
3932
|
-
},
|
|
3933
3928
|
nerfMultiplier
|
|
3934
3929
|
};
|
|
3935
3930
|
}, "handleEnduranceEnhancement"),
|
|
@@ -4337,11 +4332,19 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4337
4332
|
}
|
|
4338
4333
|
finalDamage += burnDamage;
|
|
4339
4334
|
}
|
|
4335
|
+
if (targetBoss.skills && targetBoss.skills.includes("组织增生")) {
|
|
4336
|
+
const geneMutationStacks = targetBoss?.skillStacks || 0;
|
|
4337
|
+
const armorBonus = geneMutationStacks;
|
|
4338
|
+
armor += armorBonus;
|
|
4339
|
+
if (armorBonus > 0) {
|
|
4340
|
+
messages.push(`【组织增生】生效:临时增加${armorBonus}点护甲`);
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4340
4343
|
let armorDamageReduction = weaponData.armorDamageReduction || 0;
|
|
4341
4344
|
if (careerData?.career === "猩红杀手" && weaponName === "侦察步枪") {
|
|
4342
4345
|
armorDamageReduction = 1;
|
|
4343
4346
|
}
|
|
4344
|
-
armor
|
|
4347
|
+
armor += targetBoss.armor - targetBoss.radiationLayers * 0.05;
|
|
4345
4348
|
const armorReduction = armorDamageReduction * armor;
|
|
4346
4349
|
if (armorReduction !== 0) {
|
|
4347
4350
|
messages.push(`护甲减伤: ${armorReduction.toFixed(2)}点`);
|
|
@@ -4751,7 +4754,7 @@ var passiveConfig = {
|
|
|
4751
4754
|
derivedSkills: []
|
|
4752
4755
|
},
|
|
4753
4756
|
"基因变异": {
|
|
4754
|
-
description: "移除孤立无援状态;每次受击叠加1层「基因变异」(上限100
|
|
4757
|
+
description: "移除孤立无援状态;每次受击叠加1层「基因变异」(上限100层);每次受击回复100点能量;每受击3次随机获得1个基因技能,累计获得4个基因后再次触发则移除全部基因技能",
|
|
4755
4758
|
belong: ["坏兄弟"],
|
|
4756
4759
|
derivedSkills: [
|
|
4757
4760
|
"优化冗余片段",
|
|
@@ -4788,7 +4791,7 @@ var passiveConfig = {
|
|
|
4788
4791
|
derivedSkills: []
|
|
4789
4792
|
},
|
|
4790
4793
|
"耐力强化": {
|
|
4791
|
-
description: "
|
|
4794
|
+
description: "当能量≥80%时,受到的伤害降低80%;当能量≥50%时,受到的伤害降低50%;当能量≥30%时,受到的伤害降低30%",
|
|
4792
4795
|
belong: [],
|
|
4793
4796
|
derivedSkills: []
|
|
4794
4797
|
},
|
|
@@ -9425,7 +9428,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
9425
9428
|
} else {
|
|
9426
9429
|
result.push("➤ 无");
|
|
9427
9430
|
}
|
|
9428
|
-
const countingSkill = mainBoss.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液"].includes(s));
|
|
9431
|
+
const countingSkill = mainBoss.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液", "基因变异"].includes(s));
|
|
9429
9432
|
if (countingSkill) {
|
|
9430
9433
|
result.push(`📈 ${countingSkill}:${mainBoss.skillStacks}层`);
|
|
9431
9434
|
}
|
|
@@ -9492,7 +9495,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
9492
9495
|
} else {
|
|
9493
9496
|
minionInfo.push("➤ 无");
|
|
9494
9497
|
}
|
|
9495
|
-
const minionCountingSkill = minion.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液"].includes(s));
|
|
9498
|
+
const minionCountingSkill = minion.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液", "基因变异"].includes(s));
|
|
9496
9499
|
if (minionCountingSkill) {
|
|
9497
9500
|
minionInfo.push(`📈 ${minionCountingSkill}:${minion.skillStacks}层`);
|
|
9498
9501
|
}
|