koishi-plugin-ggcevo-game 1.5.11 → 1.5.12
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 +2 -0
- package/lib/index.js +18 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1232,7 +1232,7 @@ var bossPool = [
|
|
|
1232
1232
|
main: {
|
|
1233
1233
|
name: "异齿猛兽首领",
|
|
1234
1234
|
type: "主宰",
|
|
1235
|
-
maxHP:
|
|
1235
|
+
maxHP: 2e4,
|
|
1236
1236
|
maxShield: 0,
|
|
1237
1237
|
maxEnergy: 0,
|
|
1238
1238
|
armor: 25,
|
|
@@ -1245,7 +1245,7 @@ var bossPool = [
|
|
|
1245
1245
|
{
|
|
1246
1246
|
name: "异齿猛兽",
|
|
1247
1247
|
type: "子代",
|
|
1248
|
-
maxHP:
|
|
1248
|
+
maxHP: 1e4,
|
|
1249
1249
|
maxShield: 0,
|
|
1250
1250
|
maxEnergy: 0,
|
|
1251
1251
|
armor: 20,
|
|
@@ -1261,7 +1261,7 @@ var bossPool = [
|
|
|
1261
1261
|
main: {
|
|
1262
1262
|
name: "寒冰王蛇",
|
|
1263
1263
|
type: "主宰",
|
|
1264
|
-
maxHP:
|
|
1264
|
+
maxHP: 2e4,
|
|
1265
1265
|
maxShield: 0,
|
|
1266
1266
|
maxEnergy: 0,
|
|
1267
1267
|
armor: 6,
|
|
@@ -4478,7 +4478,9 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4478
4478
|
burnLayerAdded,
|
|
4479
4479
|
// 新增燃烧叠加标记
|
|
4480
4480
|
drainFactor,
|
|
4481
|
-
reductionAmount
|
|
4481
|
+
reductionAmount,
|
|
4482
|
+
isLethal,
|
|
4483
|
+
revivalTriggered
|
|
4482
4484
|
};
|
|
4483
4485
|
}
|
|
4484
4486
|
__name(applyPassiveEffects, "applyPassiveEffects");
|
|
@@ -4991,6 +4993,13 @@ var ggcevoUpdates = [
|
|
|
4991
4993
|
content: `
|
|
4992
4994
|
- 新增专属改装:氮气压缩核心
|
|
4993
4995
|
`.trim()
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
version: "1.5.12",
|
|
4999
|
+
time: "2025-07-02",
|
|
5000
|
+
content: `
|
|
5001
|
+
- 现在所有异形受到致命伤害后,若无复活技能,则会直接死亡
|
|
5002
|
+
`.trim()
|
|
4994
5003
|
}
|
|
4995
5004
|
];
|
|
4996
5005
|
function compareVersions(a, b) {
|
|
@@ -6122,6 +6131,7 @@ async function handleBossDefeatRewards(ctx, targetBoss) {
|
|
|
6122
6131
|
}
|
|
6123
6132
|
__name(handleBossDefeatRewards, "handleBossDefeatRewards");
|
|
6124
6133
|
async function handlePrimaryAttack(ctx, session, handle, config, equippedWeapon, targetBoss, activeBosses, weaponName, careerData) {
|
|
6134
|
+
let currentHP = 0;
|
|
6125
6135
|
const damageResult = await calculateTotalDamage(ctx, session, config, equippedWeapon, targetBoss, careerData);
|
|
6126
6136
|
const ignoreReduction = await handleIgnoreReductionEffects(ctx, handle, weaponName, targetBoss);
|
|
6127
6137
|
const EffectProcessor = applyPassiveEffects(targetBoss, activeBosses, weaponName, damageResult.damage, damageResult.hasCrit, ignoreReduction.ignoreRate, careerData, equippedWeapon);
|
|
@@ -6133,8 +6143,10 @@ async function handlePrimaryAttack(ctx, session, handle, config, equippedWeapon,
|
|
|
6133
6143
|
}
|
|
6134
6144
|
}
|
|
6135
6145
|
const [currentboss] = await ctx.database.get("ggcevo_boss", { name: targetBoss.name });
|
|
6136
|
-
const
|
|
6137
|
-
|
|
6146
|
+
const isDefeated = EffectProcessor.isLethal && !EffectProcessor.revivalTriggered;
|
|
6147
|
+
if (!isDefeated) {
|
|
6148
|
+
currentHP = currentboss.HP;
|
|
6149
|
+
}
|
|
6138
6150
|
return {
|
|
6139
6151
|
initialDamage,
|
|
6140
6152
|
currentHP,
|