koishi-plugin-ggcevo-game 1.6.15 → 1.6.17

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;
@@ -251,7 +251,7 @@ export declare const BattleEffectProcessor: {
251
251
  updates: Partial<BattleStatistics>;
252
252
  }>;
253
253
  } | null;
254
- handleFlameBreath: (targetBoss: any, activeBosses: any[]) => {
254
+ handleFlameBreath: (targetBoss: any, activeBosses: any[], isHighStackHeal?: boolean) => {
255
255
  messages: string[];
256
256
  targetUpdates: {
257
257
  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(`🔥 【灼烧粘液】叠层:当前${newStacks}/20层`);
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;
@@ -2698,12 +2698,12 @@ var BattleEffectProcessor = {
2698
2698
  };
2699
2699
  }, "handleCorrosiveBile"),
2700
2700
  // 火焰吐息 - 高级群体回复机制
2701
- handleFlameBreath: /* @__PURE__ */ __name(function(targetBoss, activeBosses) {
2701
+ handleFlameBreath: /* @__PURE__ */ __name(function(targetBoss, activeBosses, isHighStackHeal = false) {
2702
2702
  const messages = [];
2703
2703
  const otherUpdates = [];
2704
2704
  let targetUpdates = null;
2705
2705
  const requiredStacks = 20;
2706
- if (!targetBoss.skills.includes("火焰吐息")) {
2706
+ if (!targetBoss.skills.includes("火焰吐息") || isHighStackHeal) {
2707
2707
  return null;
2708
2708
  }
2709
2709
  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,8 +4489,8 @@ 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] },
4493
- { effect: BattleEffectProcessor.handleFlameBreath, args: [targetBoss, activeBosses] }
4492
+ { effect: BattleEffectProcessor.handleCorrosiveBile, args: [targetBoss, activeBosses, bileDetonationTrigger] },
4493
+ { effect: BattleEffectProcessor.handleFlameBreath, args: [targetBoss, activeBosses, bileDetonationTrigger] }
4494
4494
  ];
4495
4495
  for (const effectItem of bileEffects) {
4496
4496
  processEffect(effectItem.effect, ...effectItem.args);
@@ -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: { $lte: now },
7417
+ respawnTime: { $gt: now },
7418
+ // 修改为大于当前时间
7419
7419
  isActive: false
7420
7420
  }).execute();
7421
7421
  for (const group of expiredGroups) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.6.15",
4
+ "version": "1.6.17",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [