koishi-plugin-ggcevo-game 1.5.1 → 1.5.3

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.
@@ -619,10 +619,6 @@ export declare const BattleEffectProcessor: {
619
619
  } | null;
620
620
  handleEnduranceEnhancement: (targetBoss: any) => {
621
621
  messages: string[];
622
- targetUpdates: {
623
- name: string;
624
- updates: Partial<BattleStatistics>;
625
- } | null;
626
622
  nerfMultiplier: number;
627
623
  } | null;
628
624
  handleThickenedCarapace: (targetBoss: any) => {
package/lib/index.js CHANGED
@@ -41,7 +41,7 @@ var weaponConfig = {
41
41
  // 每点护甲减伤1点伤害
42
42
  description: "标准配置武器,中距离作战利器",
43
43
  specialeffect: "",
44
- price: 100,
44
+ price: 1,
45
45
  redCrystalCost: 1,
46
46
  isantiair: true,
47
47
  tagEffects: {
@@ -3758,6 +3758,9 @@ var BattleEffectProcessor = {
3758
3758
  }
3759
3759
  };
3760
3760
  messages.push(`🧬 【基因变异】生效:获得1层「基因变异」`);
3761
+ const energyGain = 100;
3762
+ targetUpdates.updates.energyChange = energyGain;
3763
+ messages.push(`🧬 【基因变异】生效:回复${energyGain}点能量`);
3761
3764
  if ((currentStatusLayers + 1) % 3 === 0) {
3762
3765
  const geneSkills = targetBoss.skills.filter((skill) => [
3763
3766
  "优化冗余片段",
@@ -3906,11 +3909,7 @@ var BattleEffectProcessor = {
3906
3909
  return null;
3907
3910
  }
3908
3911
  const messages = [];
3909
- const updates = {};
3910
3912
  let nerfMultiplier = 0;
3911
- const energyGain = 100;
3912
- updates.energyChange = energyGain;
3913
- messages.push(`🧬 【耐力强化】生效:回复${energyGain}点能量`);
3914
3913
  const currentEnergy = targetBoss.energy || 0;
3915
3914
  const maxEnergy = getMaxEnergyByName(targetBoss.name);
3916
3915
  const energyPercent = maxEnergy > 0 ? currentEnergy / maxEnergy : 0;
@@ -3926,10 +3925,6 @@ var BattleEffectProcessor = {
3926
3925
  }
3927
3926
  return {
3928
3927
  messages,
3929
- targetUpdates: {
3930
- name: targetBoss.name,
3931
- updates
3932
- },
3933
3928
  nerfMultiplier
3934
3929
  };
3935
3930
  }, "handleEnduranceEnhancement"),
@@ -3939,7 +3934,7 @@ var BattleEffectProcessor = {
3939
3934
  return null;
3940
3935
  }
3941
3936
  const geneStacks = targetBoss.skillStacks || 0;
3942
- const nerfMultiplier = geneStacks * 0.05;
3937
+ const nerfMultiplier = geneStacks * 0.01;
3943
3938
  if (nerfMultiplier === 0) {
3944
3939
  return null;
3945
3940
  }
@@ -3985,7 +3980,7 @@ var BattleEffectProcessor = {
3985
3980
  return null;
3986
3981
  }
3987
3982
  const geneStacks = targetBoss.skillStacks || 0;
3988
- const baseChance = 0.05;
3983
+ const baseChance = 0.01;
3989
3984
  const stackBonus = geneStacks * 0.01;
3990
3985
  const totalChance = Math.min(baseChance + stackBonus, 0.99);
3991
3986
  if (Math.random() < totalChance) {
@@ -4337,11 +4332,19 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4337
4332
  }
4338
4333
  finalDamage += burnDamage;
4339
4334
  }
4335
+ if (targetBoss.skills && targetBoss.skills.includes("组织增生")) {
4336
+ const geneMutationStacks = targetBoss?.skillStacks || 0;
4337
+ const armorBonus = geneMutationStacks * 0.1;
4338
+ armor += armorBonus;
4339
+ if (armorBonus > 0) {
4340
+ messages.push(`【组织增生】生效:临时增加${armorBonus}点护甲`);
4341
+ }
4342
+ }
4340
4343
  let armorDamageReduction = weaponData.armorDamageReduction || 0;
4341
4344
  if (careerData?.career === "猩红杀手" && weaponName === "侦察步枪") {
4342
4345
  armorDamageReduction = 1;
4343
4346
  }
4344
- armor = targetBoss.armor - targetBoss.radiationLayers * 0.05;
4347
+ armor += targetBoss.armor - targetBoss.radiationLayers * 0.05;
4345
4348
  const armorReduction = armorDamageReduction * armor;
4346
4349
  if (armorReduction !== 0) {
4347
4350
  messages.push(`护甲减伤: ${armorReduction.toFixed(2)}点`);
@@ -4751,7 +4754,7 @@ var passiveConfig = {
4751
4754
  derivedSkills: []
4752
4755
  },
4753
4756
  "基因变异": {
4754
- description: "移除孤立无援状态;每次受击叠加1层「基因变异」(上限100层);每受击3次随机获得1个基因技能,累计获得4个基因后再次触发则移除全部基因技能",
4757
+ description: "移除孤立无援状态;每次受击叠加1层「基因变异」(上限100层);每次受击回复100点能量;每受击3次随机获得1个基因技能,累计获得4个基因后再次触发则移除全部基因技能",
4755
4758
  belong: ["坏兄弟"],
4756
4759
  derivedSkills: [
4757
4760
  "优化冗余片段",
@@ -4788,7 +4791,7 @@ var passiveConfig = {
4788
4791
  derivedSkills: []
4789
4792
  },
4790
4793
  "耐力强化": {
4791
- description: "每次受击回复100点能量;当能量≥80%时,受到的伤害降低80%;当能量≥50%时,受到的伤害降低50%;当能量≥30%时,受到的伤害降低30%",
4794
+ description: "当能量≥80%时,受到的伤害降低80%;当能量≥50%时,受到的伤害降低50%;当能量≥30%时,受到的伤害降低30%",
4792
4795
  belong: [],
4793
4796
  derivedSkills: []
4794
4797
  },
@@ -4798,7 +4801,7 @@ var passiveConfig = {
4798
4801
  derivedSkills: []
4799
4802
  },
4800
4803
  "增厚甲壳": {
4801
- description: "每层「基因变异」使受到的伤害降低5%",
4804
+ description: "每层「基因变异」使受到的伤害降低1%",
4802
4805
  belong: [],
4803
4806
  derivedSkills: []
4804
4807
  },
@@ -4813,12 +4816,12 @@ var passiveConfig = {
4813
4816
  derivedSkills: []
4814
4817
  },
4815
4818
  "组织增生": {
4816
- description: "每层「基因变异」使护甲值临时提高1点",
4819
+ description: "每层「基因变异」使护甲值临时提高0.1点",
4817
4820
  belong: [],
4818
4821
  derivedSkills: []
4819
4822
  },
4820
4823
  "模仿生物签名": {
4821
- description: "受击时5%概率免疫该次伤害,每层「基因变异」提高1%的概率",
4824
+ description: "受击时1%概率免疫该次伤害,每层「基因变异」提高1%的概率",
4822
4825
  belong: [],
4823
4826
  derivedSkills: []
4824
4827
  }
@@ -4886,6 +4889,14 @@ var ggcevoUpdates = [
4886
4889
  - 削弱人类联盟警卫长攻击奖励为+75%
4887
4890
  - 新增“技能”指令用于查询各异形的技能列表
4888
4891
  `.trim()
4892
+ },
4893
+ {
4894
+ version: "1.5.3",
4895
+ time: "2025-06-28",
4896
+ content: `
4897
+ - 下调了高斯步枪的价格
4898
+ - 削弱了坏兄弟的部分衍生技能
4899
+ `.trim()
4889
4900
  }
4890
4901
  ];
4891
4902
  function compareVersions(a, b) {
@@ -9425,7 +9436,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
9425
9436
  } else {
9426
9437
  result.push("➤ 无");
9427
9438
  }
9428
- const countingSkill = mainBoss.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液"].includes(s));
9439
+ const countingSkill = mainBoss.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液", "基因变异"].includes(s));
9429
9440
  if (countingSkill) {
9430
9441
  result.push(`📈 ${countingSkill}:${mainBoss.skillStacks}层`);
9431
9442
  }
@@ -9492,7 +9503,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
9492
9503
  } else {
9493
9504
  minionInfo.push("➤ 无");
9494
9505
  }
9495
- const minionCountingSkill = minion.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液"].includes(s));
9506
+ const minionCountingSkill = minion.skills?.find((s) => ["岗哨机枪", "吸血唾液", "灼烧粘液", "光影之刃", "毒性唾液", "基因变异"].includes(s));
9496
9507
  if (minionCountingSkill) {
9497
9508
  minionInfo.push(`📈 ${minionCountingSkill}:${minion.skillStacks}层`);
9498
9509
  }
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.5.1",
4
+ "version": "1.5.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [