koishi-plugin-ggcevo-game 1.4.42 → 1.4.43

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
@@ -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
 
@@ -3633,7 +3629,7 @@ var BattleEffectProcessor = {
3633
3629
  };
3634
3630
  }, "handleBladeOfLight"),
3635
3631
  /** 远古预兆处理(概率免疫能量伤害)- 增加boost参数 */
3636
- handleAncientOmen: /* @__PURE__ */ __name(function(targetBoss, weaponData, boost = 0) {
3632
+ handleAncientOmen: /* @__PURE__ */ __name(function(targetBoss, weaponData) {
3637
3633
  const messages = [];
3638
3634
  let isImmune = false;
3639
3635
  let targetUpdates = null;
@@ -3643,8 +3639,11 @@ var BattleEffectProcessor = {
3643
3639
  if (weaponData.type === "热能武器") {
3644
3640
  return null;
3645
3641
  }
3642
+ const lightBladeStacks = targetBoss.skillStacks || 0;
3643
+ const boostPerStack = 5e-3;
3644
+ const totalBoost = lightBladeStacks * boostPerStack;
3646
3645
  const baseProbability = 0.01;
3647
- const actualProbability = Math.min(baseProbability + boost, 1);
3646
+ const actualProbability = Math.min(baseProbability + totalBoost, 1);
3648
3647
  if (Math.random() >= actualProbability) {
3649
3648
  return null;
3650
3649
  }
@@ -3664,24 +3663,6 @@ var BattleEffectProcessor = {
3664
3663
  targetUpdates
3665
3664
  };
3666
3665
  }, "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
3666
  /** 超视距穿梭处理(层数相关伤害调整) */
3686
3667
  handleHyperRangeShift: /* @__PURE__ */ __name(function(targetBoss) {
3687
3668
  const messages = [];
@@ -3706,7 +3687,7 @@ var BattleEffectProcessor = {
3706
3687
  return { nerfMultiplier, buffMultiplier, messages };
3707
3688
  }, "handleHyperRangeShift"),
3708
3689
  /** 灵能构造炉处理(随机获得技能)- 增加boost参数 */
3709
- handlePsychicForge: /* @__PURE__ */ __name(function(targetBoss, boost = 0) {
3690
+ handlePsychicForge: /* @__PURE__ */ __name(function(targetBoss) {
3710
3691
  const messages = [];
3711
3692
  let newSkill = null;
3712
3693
  let targetUpdates = null;
@@ -3720,8 +3701,7 @@ var BattleEffectProcessor = {
3720
3701
  return null;
3721
3702
  }
3722
3703
  const baseProbability = 0.05;
3723
- const actualProbability = Math.min(baseProbability + boost, 1);
3724
- if (Math.random() >= actualProbability) {
3704
+ if (Math.random() >= baseProbability) {
3725
3705
  return null;
3726
3706
  }
3727
3707
  const availableSkills = possibleSkills.filter(
@@ -3737,7 +3717,7 @@ var BattleEffectProcessor = {
3737
3717
  skillsAdded: [newSkill]
3738
3718
  }
3739
3719
  };
3740
- messages.push(`⚙️ 【灵能构造炉】触发:${(actualProbability * 100).toFixed(2)}%概率获得新技能「${newSkill}」`);
3720
+ messages.push(`⚙️ 【灵能构造炉】触发:${(baseProbability * 100).toFixed(2)}%概率获得新技能「${newSkill}」`);
3741
3721
  return {
3742
3722
  messages,
3743
3723
  newSkill,
@@ -3818,7 +3798,7 @@ var BattleEffectProcessor = {
3818
3798
  return null;
3819
3799
  }
3820
3800
  const currentStacks = targetBoss.skillStacks || 0;
3821
- const energyGained = currentStacks * 50;
3801
+ const energyGained = currentStacks * 10;
3822
3802
  targetUpdates = {
3823
3803
  name: targetBoss.name,
3824
3804
  updates: {
@@ -3976,8 +3956,6 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
3976
3956
  let layerReduced = false;
3977
3957
  let bileDetonationTrigger = false;
3978
3958
  const weaponData = weaponConfig[weaponName] || { type: "" };
3979
- let ancientOmenBoost = 0;
3980
- let psychicForgeBoost = 0;
3981
3959
  let doubleAstralWind = false;
3982
3960
  let isolatedImmunityMark = false;
3983
3961
  const processEffect = /* @__PURE__ */ __name((effect, ...args) => {
@@ -3994,12 +3972,6 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
3994
3972
  }
3995
3973
  return result;
3996
3974
  }, "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
3975
  const coldImmuneEffects = [
4004
3976
  {
4005
3977
  effect: BattleEffectProcessor.handleColdAdaptation,
@@ -4018,7 +3990,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
4018
3990
  },
4019
3991
  {
4020
3992
  effect: BattleEffectProcessor.handleAncientOmen,
4021
- args: [targetBoss, weaponData, ancientOmenBoost]
3993
+ args: [targetBoss, weaponData]
4022
3994
  }
4023
3995
  ];
4024
3996
  const allImmuneEffects = [...coldImmuneEffects, ...fireImmuneEffects, ...chanceImmuneEffects];
@@ -4144,8 +4116,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, ignor
4144
4116
  }
4145
4117
  }
4146
4118
  const psychicForgeResult = BattleEffectProcessor.handlePsychicForge(
4147
- targetBoss,
4148
- psychicForgeBoost
4119
+ targetBoss
4149
4120
  );
4150
4121
  if (psychicForgeResult) {
4151
4122
  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.43",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [