koishi-plugin-ggcevo-game 1.4.42 → 1.4.44

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.
@@ -317,7 +317,7 @@ export declare const BattleEffectProcessor: {
317
317
  } | null;
318
318
  } | null;
319
319
  /** 远古预兆处理(概率免疫能量伤害)- 增加boost参数 */
320
- handleAncientOmen: (targetBoss: any, weaponData: any, boost?: number) => {
320
+ handleAncientOmen: (targetBoss: any, weaponData: any) => {
321
321
  isImmune: boolean;
322
322
  messages: string[];
323
323
  targetUpdates: {
@@ -325,12 +325,6 @@ export declare const BattleEffectProcessor: {
325
325
  updates: Partial<BattleStatistics>;
326
326
  } | null;
327
327
  } | null;
328
- /** 闪电冲锋处理(提升其他技能概率) - 修正版 */
329
- handleLightningCharge: (targetBoss: any) => {
330
- ancientOmenBoost: number;
331
- psychicForgeBoost: number;
332
- messages: string[];
333
- };
334
328
  /** 超视距穿梭处理(层数相关伤害调整) */
335
329
  handleHyperRangeShift: (targetBoss: any) => {
336
330
  nerfMultiplier: number;
@@ -338,7 +332,7 @@ export declare const BattleEffectProcessor: {
338
332
  messages: string[];
339
333
  };
340
334
  /** 灵能构造炉处理(随机获得技能)- 增加boost参数 */
341
- handlePsychicForge: (targetBoss: any, boost?: number) => {
335
+ handlePsychicForge: (targetBoss: any) => {
342
336
  messages: string[];
343
337
  newSkill: string | null;
344
338
  targetUpdates: {
@@ -179,10 +179,6 @@ export declare const passiveConfig: {
179
179
  type: string;
180
180
  description: string;
181
181
  };
182
- 闪电冲锋: {
183
- type: string;
184
- description: string;
185
- };
186
182
  超视距穿梭: {
187
183
  type: string;
188
184
  description: string;
package/lib/index.js CHANGED
@@ -1255,7 +1255,7 @@ var bossPool = [
1255
1255
  maxHP: 2e4,
1256
1256
  maxEnergy: 1e3,
1257
1257
  tags: ["重甲", "护盾", "生物", "灵能", "异形"],
1258
- passive: ["宇宙能量", "复苏", "光影之刃", "闪电冲锋", "远古预兆", "星界之风", "超视距穿梭"]
1258
+ passive: ["宇宙能量", "复苏", "光影之刃", "远古预兆", "星界之风", "超视距穿梭"]
1259
1259
  },
1260
1260
  minions: [
1261
1261
  {
@@ -1449,12 +1449,8 @@ var passiveConfig = {
1449
1449
  description: "受击获得1层「光影之刃」(上限50层)"
1450
1450
  },
1451
1451
  "远古预兆": {
1452
- type: "状态免疫(能量伤害免疫)",
1453
- description: "受击时1%概率免疫非热能伤害并回复100点能量"
1454
- },
1455
- "闪电冲锋": {
1456
- type: "状态增强(触发概率提升)",
1457
- description: "每层「光影之刃」使「远古预兆」和「灵能构造炉」触发概率提升0.5%"
1452
+ type: "状态免疫(伤害免疫)+状态增强(触发概率提升)",
1453
+ description: "受击时1%概率免疫非热能伤害并回复100点能量,每层「光影之刃」使触发概率提升0.5%"
1458
1454
  },
1459
1455
  "超视距穿梭": {
1460
1456
  type: "伤害增减(条件性)",
@@ -1478,7 +1474,7 @@ var passiveConfig = {
1478
1474
  },
1479
1475
  "轰炸引导": {
1480
1476
  type: "生存强化(能量回复)",
1481
- description: "受击时10%概率回复(「光影之刃」层数×50)点能量"
1477
+ description: "受击时10%概率回复(「光影之刃」层数×10)点能量"
1482
1478
  }
1483
1479
  };
1484
1480
 
@@ -1646,7 +1642,6 @@ function calculateModifiers(equippedWeapon, weaponName, hasCritRhythm) {
1646
1642
  100
1647
1643
  );
1648
1644
  if (totalCritRate > 0) {
1649
- modMessages.push(`🎯 总暴击率:${totalCritRate}%`);
1650
1645
  }
1651
1646
  if (totalCritRate > 0) {
1652
1647
  const roll = Math.random() * 100;
@@ -3633,7 +3628,7 @@ var BattleEffectProcessor = {
3633
3628
  };
3634
3629
  }, "handleBladeOfLight"),
3635
3630
  /** 远古预兆处理(概率免疫能量伤害)- 增加boost参数 */
3636
- handleAncientOmen: /* @__PURE__ */ __name(function(targetBoss, weaponData, boost = 0) {
3631
+ handleAncientOmen: /* @__PURE__ */ __name(function(targetBoss, weaponData) {
3637
3632
  const messages = [];
3638
3633
  let isImmune = false;
3639
3634
  let targetUpdates = null;
@@ -3643,8 +3638,11 @@ var BattleEffectProcessor = {
3643
3638
  if (weaponData.type === "热能武器") {
3644
3639
  return null;
3645
3640
  }
3641
+ const lightBladeStacks = targetBoss.skillStacks || 0;
3642
+ const boostPerStack = 5e-3;
3643
+ const totalBoost = lightBladeStacks * boostPerStack;
3646
3644
  const baseProbability = 0.01;
3647
- const actualProbability = Math.min(baseProbability + boost, 1);
3645
+ const actualProbability = Math.min(baseProbability + totalBoost, 1);
3648
3646
  if (Math.random() >= actualProbability) {
3649
3647
  return null;
3650
3648
  }
@@ -3664,24 +3662,6 @@ var BattleEffectProcessor = {
3664
3662
  targetUpdates
3665
3663
  };
3666
3664
  }, "handleAncientOmen"),
3667
- /** 闪电冲锋处理(提升其他技能概率) - 修正版 */
3668
- handleLightningCharge: /* @__PURE__ */ __name(function(targetBoss) {
3669
- const messages = [];
3670
- let ancientOmenBoost = 0;
3671
- let psychicForgeBoost = 0;
3672
- if (!targetBoss.skills.includes("闪电冲锋")) {
3673
- return null;
3674
- }
3675
- const lightBladeStacks = targetBoss.skillStacks || 0;
3676
- const boostPerStack = 5e-3;
3677
- const totalBoost = lightBladeStacks * boostPerStack;
3678
- ancientOmenBoost = totalBoost;
3679
- psychicForgeBoost = totalBoost;
3680
- if (totalBoost > 0) {
3681
- messages.push(`⚡ 【闪电冲锋】生效:「光影之刃」当前${lightBladeStacks}层,「远古预兆」触发概率+${(ancientOmenBoost * 100).toFixed(1)}%,「灵能构造炉」触发概率+${(psychicForgeBoost * 100).toFixed(1)}%`);
3682
- }
3683
- return { ancientOmenBoost, psychicForgeBoost, messages };
3684
- }, "handleLightningCharge"),
3685
3665
  /** 超视距穿梭处理(层数相关伤害调整) */
3686
3666
  handleHyperRangeShift: /* @__PURE__ */ __name(function(targetBoss) {
3687
3667
  const messages = [];
@@ -3706,7 +3686,7 @@ var BattleEffectProcessor = {
3706
3686
  return { nerfMultiplier, buffMultiplier, messages };
3707
3687
  }, "handleHyperRangeShift"),
3708
3688
  /** 灵能构造炉处理(随机获得技能)- 增加boost参数 */
3709
- handlePsychicForge: /* @__PURE__ */ __name(function(targetBoss, boost = 0) {
3689
+ handlePsychicForge: /* @__PURE__ */ __name(function(targetBoss) {
3710
3690
  const messages = [];
3711
3691
  let newSkill = null;
3712
3692
  let targetUpdates = null;
@@ -3720,8 +3700,7 @@ var BattleEffectProcessor = {
3720
3700
  return null;
3721
3701
  }
3722
3702
  const baseProbability = 0.05;
3723
- const actualProbability = Math.min(baseProbability + boost, 1);
3724
- if (Math.random() >= actualProbability) {
3703
+ if (Math.random() >= baseProbability) {
3725
3704
  return null;
3726
3705
  }
3727
3706
  const availableSkills = possibleSkills.filter(
@@ -3737,7 +3716,7 @@ var BattleEffectProcessor = {
3737
3716
  skillsAdded: [newSkill]
3738
3717
  }
3739
3718
  };
3740
- messages.push(`⚙️ 【灵能构造炉】触发:${(actualProbability * 100).toFixed(2)}%概率获得新技能「${newSkill}」`);
3719
+ messages.push(`⚙️ 【灵能构造炉】触发:${(baseProbability * 100).toFixed(2)}%概率获得新技能「${newSkill}」`);
3741
3720
  return {
3742
3721
  messages,
3743
3722
  newSkill,
@@ -3775,7 +3754,7 @@ var BattleEffectProcessor = {
3775
3754
  handleCollapsingPulse: /* @__PURE__ */ __name(function(targetBoss) {
3776
3755
  const messages = [];
3777
3756
  let targetUpdates = null;
3778
- const maxStacks = 50;
3757
+ const maxStacks = 49;
3779
3758
  if (!targetBoss.skills.includes("塌缩脉冲")) {
3780
3759
  return null;
3781
3760
  }
@@ -3818,7 +3797,7 @@ var BattleEffectProcessor = {
3818
3797
  return null;
3819
3798
  }
3820
3799
  const currentStacks = targetBoss.skillStacks || 0;
3821
- const energyGained = currentStacks * 50;
3800
+ const energyGained = currentStacks * 10;
3822
3801
  targetUpdates = {
3823
3802
  name: targetBoss.name,
3824
3803
  updates: {
@@ -3841,7 +3820,6 @@ var BattleEffectProcessor = {
3841
3820
  if (effectiveLayers > 0) {
3842
3821
  messages.push(`☢️ 【辐射增伤】:当前${currentLayers}层,受到的伤害+${(effectiveLayers * 2.5).toFixed(1)}%`);
3843
3822
  if (currentLayers > 20) {
3844
- messages.push(`☢️ 注意:超过20层的辐射不会提供额外增伤`);
3845
3823
  }
3846
3824
  }
3847
3825
  let targetUpdates = null;
@@ -3877,7 +3855,6 @@ var BattleEffectProcessor = {
3877
3855
  if (effectiveLayers > 0) {
3878
3856
  messages.push(`❄️ 【寒冷增伤】:当前${currentLayers}层,受到的伤害+${(effectiveLayers * 2.5).toFixed(1)}%`);
3879
3857
  if (currentLayers > 20) {
3880
- messages.push(`❄️ 注意:超过20层的寒冷不会提供额外增伤`);
3881
3858
  }
3882
3859
  }
3883
3860
  let targetUpdates = null;
@@ -3976,8 +3953,6 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
3976
3953
  let layerReduced = false;
3977
3954
  let bileDetonationTrigger = false;
3978
3955
  const weaponData = weaponConfig[weaponName] || { type: "" };
3979
- let ancientOmenBoost = 0;
3980
- let psychicForgeBoost = 0;
3981
3956
  let doubleAstralWind = false;
3982
3957
  let isolatedImmunityMark = false;
3983
3958
  const processEffect = /* @__PURE__ */ __name((effect, ...args) => {
@@ -3994,12 +3969,6 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
3994
3969
  }
3995
3970
  return result;
3996
3971
  }, "processEffect");
3997
- const lightningResult = BattleEffectProcessor.handleLightningCharge(targetBoss);
3998
- if (lightningResult) {
3999
- ancientOmenBoost = lightningResult.ancientOmenBoost || 0;
4000
- psychicForgeBoost = lightningResult.psychicForgeBoost || 0;
4001
- messages.push(...lightningResult.messages);
4002
- }
4003
3972
  const coldImmuneEffects = [
4004
3973
  {
4005
3974
  effect: BattleEffectProcessor.handleColdAdaptation,
@@ -4018,7 +3987,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
4018
3987
  },
4019
3988
  {
4020
3989
  effect: BattleEffectProcessor.handleAncientOmen,
4021
- args: [targetBoss, weaponData, ancientOmenBoost]
3990
+ args: [targetBoss, weaponData]
4022
3991
  }
4023
3992
  ];
4024
3993
  const allImmuneEffects = [...coldImmuneEffects, ...fireImmuneEffects, ...chanceImmuneEffects];
@@ -4144,8 +4113,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
4144
4113
  }
4145
4114
  }
4146
4115
  const psychicForgeResult = BattleEffectProcessor.handlePsychicForge(
4147
- targetBoss,
4148
- psychicForgeBoost
4116
+ targetBoss
4149
4117
  );
4150
4118
  if (psychicForgeResult) {
4151
4119
  messages.push(...psychicForgeResult.messages);
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.42",
4
+ "version": "1.4.44",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [