koishi-plugin-ggcevo-game 1.4.44 → 1.4.45

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.
@@ -340,9 +340,12 @@ export declare const BattleEffectProcessor: {
340
340
  updates: Partial<BattleStatistics>;
341
341
  } | null;
342
342
  } | null;
343
- /** 天启超载护盾处理(层数相关群体回复) */
344
343
  handleOverdriveShield: (targetBoss: any, activeBosses: any[]) => {
345
344
  messages: string[];
345
+ targetUpdates: {
346
+ name: string;
347
+ updates: Partial<BattleStatistics>;
348
+ } | null;
346
349
  otherUpdates: Array<{
347
350
  name: string;
348
351
  updates: Partial<BattleStatistics>;
@@ -362,7 +365,6 @@ export declare const BattleEffectProcessor: {
362
365
  messages: string[];
363
366
  tempMark: boolean;
364
367
  };
365
- /** 轰炸引导处理(层数相关能量回复) */
366
368
  handleBombardmentGuide: (targetBoss: any) => {
367
369
  messages: string[];
368
370
  targetUpdates: {
package/lib/index.js CHANGED
@@ -1458,11 +1458,11 @@ var passiveConfig = {
1458
1458
  },
1459
1459
  "灵能构造炉": {
1460
1460
  type: "状态获得(技能获得)",
1461
- description: "受击时5%概率随机获得以下技能之一:天启超载护盾/塌缩脉冲/地毯式轰炸/轰炸引导"
1461
+ description: "受击时1%概率随机获得以下技能之一:天启超载护盾/塌缩脉冲/地毯式轰炸/轰炸引导"
1462
1462
  },
1463
1463
  "天启超载护盾": {
1464
1464
  type: "生存强化(生命回复)",
1465
- description: "受击时10%概率为所有存活异形回复(「光影之刃」层数×10)点生命"
1465
+ description: "受击时10%概率触发,消耗当前「光影之刃」层数的一半(向下取整),并为所有存活异形回复(消耗层数×10)点生命"
1466
1466
  },
1467
1467
  "塌缩脉冲": {
1468
1468
  type: "状态叠加(层数叠加)",
@@ -1470,11 +1470,11 @@ var passiveConfig = {
1470
1470
  },
1471
1471
  "地毯式轰炸": {
1472
1472
  type: "状态移除+伤害增减(正面)",
1473
- description: "移除孤立无援状态,受到的伤害降低100%"
1473
+ description: "移除孤立无援状态,受到的伤害降低80%"
1474
1474
  },
1475
1475
  "轰炸引导": {
1476
1476
  type: "生存强化(能量回复)",
1477
- description: "受击时10%概率回复(「光影之刃」层数×10)点能量"
1477
+ description: "受击时10%概率触发,消耗当前「光影之刃」层数的一半(向下取整),并回复(消耗层数×10)点能量"
1478
1478
  }
1479
1479
  };
1480
1480
 
@@ -3699,7 +3699,7 @@ var BattleEffectProcessor = {
3699
3699
  if (!targetBoss.skills.includes("灵能构造炉")) {
3700
3700
  return null;
3701
3701
  }
3702
- const baseProbability = 0.05;
3702
+ const baseProbability = 0.01;
3703
3703
  if (Math.random() >= baseProbability) {
3704
3704
  return null;
3705
3705
  }
@@ -3723,7 +3723,7 @@ var BattleEffectProcessor = {
3723
3723
  targetUpdates
3724
3724
  };
3725
3725
  }, "handlePsychicForge"),
3726
- /** 天启超载护盾处理(层数相关群体回复) */
3726
+ // 修改后的天启超载护盾处理函数
3727
3727
  handleOverdriveShield: /* @__PURE__ */ __name(function(targetBoss, activeBosses) {
3728
3728
  const messages = [];
3729
3729
  const otherUpdates = [];
@@ -3733,20 +3733,31 @@ var BattleEffectProcessor = {
3733
3733
  if (Math.random() >= 0.1) {
3734
3734
  return null;
3735
3735
  }
3736
- const baseHealAmount = (targetBoss.skillStacks || 0) * 10;
3736
+ const currentStacks = targetBoss.skillStacks || 0;
3737
+ const consumedStacks = Math.floor(currentStacks / 2);
3738
+ if (consumedStacks <= 0) {
3739
+ return null;
3740
+ }
3737
3741
  const survivingBosses = activeBosses.filter((boss) => boss.isActive);
3742
+ messages.push(`🛡️ 【天启超载护盾】触发:消耗${consumedStacks}层「光影之刃」`);
3738
3743
  survivingBosses.forEach((boss) => {
3739
- const bossName = boss.name;
3740
- if (baseHealAmount > 0) {
3741
- otherUpdates.push({
3742
- name: bossName,
3743
- updates: { hpChange: baseHealAmount }
3744
- });
3745
- }
3746
- messages.push(`🛡️ 【天启超载护盾】触发:为「${bossName}」回复${baseHealAmount}点生命值`);
3744
+ const healAmount = consumedStacks * 10;
3745
+ otherUpdates.push({
3746
+ name: boss.name,
3747
+ updates: { hpChange: healAmount }
3748
+ });
3749
+ messages.push(`为「${boss.name}」回复${healAmount}点生命值`);
3747
3750
  });
3751
+ const targetUpdates = {
3752
+ name: targetBoss.name,
3753
+ updates: {
3754
+ skillStacksChanged: -consumedStacks
3755
+ // 消耗层数
3756
+ }
3757
+ };
3748
3758
  return {
3749
3759
  messages,
3760
+ targetUpdates,
3750
3761
  otherUpdates
3751
3762
  };
3752
3763
  }, "handleOverdriveShield"),
@@ -3782,14 +3793,13 @@ var BattleEffectProcessor = {
3782
3793
  if (!targetBoss.skills.includes("地毯式轰炸")) {
3783
3794
  return null;
3784
3795
  }
3785
- nerfMultiplier = 1;
3786
- messages.push(`💣 【地毯式轰炸】生效:受到的伤害-100%`);
3796
+ nerfMultiplier = 0.8;
3797
+ messages.push(`💣 【地毯式轰炸】生效:受到的伤害-80%`);
3787
3798
  return { nerfMultiplier, messages, tempMark: true };
3788
3799
  }, "handleCarpetBombing"),
3789
- /** 轰炸引导处理(层数相关能量回复) */
3800
+ // 修改后的轰炸引导处理函数
3790
3801
  handleBombardmentGuide: /* @__PURE__ */ __name(function(targetBoss) {
3791
3802
  const messages = [];
3792
- let targetUpdates = null;
3793
3803
  if (!targetBoss.skills.includes("轰炸引导")) {
3794
3804
  return null;
3795
3805
  }
@@ -3797,14 +3807,21 @@ var BattleEffectProcessor = {
3797
3807
  return null;
3798
3808
  }
3799
3809
  const currentStacks = targetBoss.skillStacks || 0;
3800
- const energyGained = currentStacks * 10;
3801
- targetUpdates = {
3810
+ const consumedStacks = Math.floor(currentStacks / 2);
3811
+ if (consumedStacks <= 0) {
3812
+ return null;
3813
+ }
3814
+ const energyGained = consumedStacks * 10;
3815
+ const targetUpdates = {
3802
3816
  name: targetBoss.name,
3803
3817
  updates: {
3818
+ skillStacksChanged: -consumedStacks,
3819
+ // 消耗层数
3804
3820
  energyChange: energyGained
3821
+ // 回复能量
3805
3822
  }
3806
3823
  };
3807
- messages.push(`🎯 【轰炸引导】触发:当前${currentStacks}层「光影之刃」,获得${energyGained}点能量`);
3824
+ messages.push(`🎯 【轰炸引导】触发:消耗${consumedStacks}层「光影之刃」,获得${energyGained}点能量`);
3808
3825
  return {
3809
3826
  messages,
3810
3827
  targetUpdates
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.4.44",
4
+ "version": "1.4.45",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [