koishi-plugin-ggcevo-game 1.6.15 → 1.6.16
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.
|
@@ -240,7 +240,7 @@ export declare const BattleEffectProcessor: {
|
|
|
240
240
|
} | null;
|
|
241
241
|
isHighStackHeal: boolean;
|
|
242
242
|
} | null;
|
|
243
|
-
handleCorrosiveBile: (targetBoss: any, activeBosses: any[]) => {
|
|
243
|
+
handleCorrosiveBile: (targetBoss: any, activeBosses: any[], isHighStackHeal?: boolean) => {
|
|
244
244
|
messages: string[];
|
|
245
245
|
targetUpdates: {
|
|
246
246
|
name: string;
|
package/lib/index.js
CHANGED
|
@@ -2632,7 +2632,7 @@ var BattleEffectProcessor = {
|
|
|
2632
2632
|
if (!isFireDamage && currentStacks < maxStacks) {
|
|
2633
2633
|
updates.skillStacksChanged = 1;
|
|
2634
2634
|
const newStacks = currentStacks + 1;
|
|
2635
|
-
messages.push(`🔥
|
|
2635
|
+
messages.push(`🔥 【灼烧粘液】生效:获得1层「灼烧粘液」`);
|
|
2636
2636
|
}
|
|
2637
2637
|
if (isFireDamage && currentStacks > 0) {
|
|
2638
2638
|
const healAmount = currentStacks * 10;
|
|
@@ -2657,12 +2657,12 @@ var BattleEffectProcessor = {
|
|
|
2657
2657
|
};
|
|
2658
2658
|
}, "handleBurningSlime"),
|
|
2659
2659
|
// 腐蚀胆汁 - 群体回复机制
|
|
2660
|
-
handleCorrosiveBile: /* @__PURE__ */ __name(function(targetBoss, activeBosses) {
|
|
2660
|
+
handleCorrosiveBile: /* @__PURE__ */ __name(function(targetBoss, activeBosses, isHighStackHeal = false) {
|
|
2661
2661
|
const messages = [];
|
|
2662
2662
|
const otherUpdates = [];
|
|
2663
2663
|
let targetUpdates = null;
|
|
2664
2664
|
const requiredStacks = 10;
|
|
2665
|
-
if (!targetBoss.skills.includes("腐蚀胆汁")) {
|
|
2665
|
+
if (!targetBoss.skills.includes("腐蚀胆汁") || isHighStackHeal) {
|
|
2666
2666
|
return null;
|
|
2667
2667
|
}
|
|
2668
2668
|
const currentStacks = targetBoss.skillStacks || 0;
|
|
@@ -2836,7 +2836,7 @@ var BattleEffectProcessor = {
|
|
|
2836
2836
|
nerfMultiplier = baseReduction + extraReduction;
|
|
2837
2837
|
if (nerfMultiplier > 0) {
|
|
2838
2838
|
const reductionPercent = Math.round(nerfMultiplier * 100);
|
|
2839
|
-
const offspringMsg = hasLivingOffspring ? "
|
|
2839
|
+
const offspringMsg = hasLivingOffspring ? "" : "";
|
|
2840
2840
|
messages.push(`💣 【炼狱爆弹】生效:当前${currentStacks}层「灼烧粘液」,受到的伤害-${reductionPercent}%${offspringMsg}`);
|
|
2841
2841
|
}
|
|
2842
2842
|
return { nerfMultiplier, messages };
|
|
@@ -4489,7 +4489,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4489
4489
|
bileDetonationTrigger = burningSlimeResult.isHighStackHeal || false;
|
|
4490
4490
|
}
|
|
4491
4491
|
const bileEffects = [
|
|
4492
|
-
{ effect: BattleEffectProcessor.handleCorrosiveBile, args: [targetBoss, activeBosses] },
|
|
4492
|
+
{ effect: BattleEffectProcessor.handleCorrosiveBile, args: [targetBoss, activeBosses, bileDetonationTrigger] },
|
|
4493
4493
|
{ effect: BattleEffectProcessor.handleFlameBreath, args: [targetBoss, activeBosses] }
|
|
4494
4494
|
];
|
|
4495
4495
|
for (const effectItem of bileEffects) {
|
|
@@ -6653,7 +6653,6 @@ async function handleDeathTargets(ctx, deadTargets, killerName, killerHandle) {
|
|
|
6653
6653
|
const now = /* @__PURE__ */ new Date();
|
|
6654
6654
|
let nextRespawn = /* @__PURE__ */ new Date();
|
|
6655
6655
|
const hours = now.getHours();
|
|
6656
|
-
console.log(`当前小时:${hours}`);
|
|
6657
6656
|
if (hours < 12) {
|
|
6658
6657
|
nextRespawn.setHours(12, 0, 0, 0);
|
|
6659
6658
|
} else {
|
|
@@ -7415,7 +7414,8 @@ function apply(ctx, config) {
|
|
|
7415
7414
|
}
|
|
7416
7415
|
const now = /* @__PURE__ */ new Date();
|
|
7417
7416
|
const expiredGroups = await ctx.database.select("ggcevo_boss").where({
|
|
7418
|
-
respawnTime: { $
|
|
7417
|
+
respawnTime: { $gt: now },
|
|
7418
|
+
// 修改为大于当前时间
|
|
7419
7419
|
isActive: false
|
|
7420
7420
|
}).execute();
|
|
7421
7421
|
for (const group of expiredGroups) {
|