koishi-plugin-ggcevo-game 1.5.18 → 1.5.20

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.
@@ -573,7 +573,7 @@ export declare const BattleEffectProcessor: {
573
573
  messages: string[];
574
574
  spawnNewBossMark: string;
575
575
  };
576
- handlePulseRifleEffect: (weaponName: string, targetBoss: any) => {
576
+ handlePulseRifleEffect: (weaponName: string, targetBoss: any, equippedWeapon: any) => {
577
577
  pulseGrenadeTriggered: boolean;
578
578
  targetUpdates: {
579
579
  name: string;
@@ -645,6 +645,10 @@ export declare const BattleEffectProcessor: {
645
645
  isImmune: boolean;
646
646
  messages: string[];
647
647
  } | null;
648
+ handleShiveringHowl: (targetBoss: any) => {
649
+ nerfMultiplier: number;
650
+ messages: string[];
651
+ } | null;
648
652
  };
649
653
  /**
650
654
  * 统一处理所有被动效果(包含伤害修正、免疫检查、状态更新等)
@@ -374,4 +374,9 @@ export declare const passiveConfig: {
374
374
  belong: any[];
375
375
  derivedSkills: any[];
376
376
  };
377
+ 冰悚嚎叫: {
378
+ description: string;
379
+ belong: string[];
380
+ derivedSkills: any[];
381
+ };
377
382
  };
package/lib/index.js CHANGED
@@ -426,7 +426,7 @@ var weaponConfig = {
426
426
  damage: 80,
427
427
  armorDamageReduction: 0,
428
428
  description: "一件传奇武器",
429
- specialeffect: "无法暴击;无视50%伤害减免;每次攻击时有33%的概率发射脉冲榴弹,额外造成50%伤害并降低目标0.5护甲值",
429
+ specialeffect: "无法暴击;无视50%伤害减免;每次攻击削减目标0.2护甲值;每次攻击时有33%的概率发射脉冲榴弹,额外造成50%伤害",
430
430
  price: 6400,
431
431
  redCrystalCost: 200,
432
432
  isantiair: true,
@@ -546,6 +546,12 @@ var modConfig = {
546
546
  effect: "伤害提高40%;攻击时每1点护甲改为减少0点伤害",
547
547
  exclusiveTo: "等离子切割机",
548
548
  isExclusive: true
549
+ },
550
+ "强力钻刺核心": {
551
+ cost: 1750,
552
+ effect: "攻击时每1点护甲改为减少0.2点伤害;每次攻击削减目标0.1护甲值",
553
+ exclusiveTo: "动力钻头",
554
+ isExclusive: true
549
555
  }
550
556
  };
551
557
 
@@ -1217,9 +1223,9 @@ var Tasklist = {
1217
1223
  id: 6,
1218
1224
  type: "可重复任务",
1219
1225
  target: 1,
1220
- price: 200,
1226
+ price: 100,
1221
1227
  redCrystalCost: 0,
1222
- condition: "使用【M4AE脉冲步枪】攻击目标并成功削减其0.5护甲"
1228
+ condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲"
1223
1229
  },
1224
1230
  "烈火燎原": {
1225
1231
  id: 7,
@@ -1274,7 +1280,7 @@ var bossPool = [
1274
1280
  shieldArmor: 0,
1275
1281
  maxStacks: 0,
1276
1282
  tags: ["重甲", "生物", "惧热", "重型", "异形"],
1277
- passive: ["冰霜环绕", "冰霜进化"]
1283
+ passive: ["冰霜环绕", "冰霜进化", "冰悚嚎叫"]
1278
1284
  },
1279
1285
  minions: [
1280
1286
  {
@@ -3771,23 +3777,31 @@ var BattleEffectProcessor = {
3771
3777
  spawnNewBossMark: randomBossName
3772
3778
  };
3773
3779
  }, "handleHatching"),
3774
- // M4AE脉冲步枪特殊效果处理
3775
- handlePulseRifleEffect: /* @__PURE__ */ __name(function(weaponName, targetBoss) {
3780
+ // 增强后的脉冲步枪及动力钻头特殊效果处理
3781
+ handlePulseRifleEffect: /* @__PURE__ */ __name(function(weaponName, targetBoss, equippedWeapon) {
3776
3782
  const messages = [];
3777
3783
  let targetUpdates = null;
3778
3784
  let pulseGrenadeTriggered = false;
3779
- if (weaponName !== "M4AE脉冲步枪") return null;
3780
- if (Math.random() < 0.33) {
3781
- pulseGrenadeTriggered = true;
3785
+ if (weaponName === "M4AE脉冲步枪") {
3786
+ const armorReduction = -0.2;
3782
3787
  targetUpdates = {
3783
3788
  name: targetBoss.name,
3784
- updates: {
3785
- armorChange: -0.5
3786
- // 负值表示削减护甲
3787
- }
3789
+ updates: { armorChange: armorReduction }
3790
+ };
3791
+ messages.push(`💥 【脉冲榴弹】触发:削减目标0.2点护甲值`);
3792
+ if (Math.random() < 0.33) {
3793
+ pulseGrenadeTriggered = true;
3794
+ messages.push(`💥 【脉冲榴弹】额外效果:本次攻击造成额外50%伤害!`);
3795
+ }
3796
+ } else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
3797
+ targetUpdates = {
3798
+ name: targetBoss.name,
3799
+ updates: { armorChange: -0.1 }
3788
3800
  };
3789
- messages.push(`💥 【脉冲榴弹】触发:额外造成50%伤害,削减目标0.5点护甲值`);
3790
- } else return null;
3801
+ messages.push(`⚡ 【强力钻刺核心】触发:动力钻头穿透装甲,削减目标0.1点护甲值`);
3802
+ } else {
3803
+ return null;
3804
+ }
3791
3805
  return {
3792
3806
  pulseGrenadeTriggered,
3793
3807
  targetUpdates,
@@ -4107,7 +4121,26 @@ var BattleEffectProcessor = {
4107
4121
  };
4108
4122
  }
4109
4123
  return null;
4110
- }, "handleBiologicalSignatureImitation")
4124
+ }, "handleBiologicalSignatureImitation"),
4125
+ // 冰悚嚎叫处理(50%血量以下减伤30%)
4126
+ handleShiveringHowl: /* @__PURE__ */ __name(function(targetBoss) {
4127
+ const messages = [];
4128
+ if (!targetBoss.skills.includes("冰悚嚎叫")) {
4129
+ return null;
4130
+ }
4131
+ const maxHP = getMaxHPByName(targetBoss.name);
4132
+ if (typeof maxHP !== "number") return null;
4133
+ const hpPercent = targetBoss.HP / maxHP;
4134
+ if (hpPercent > 0.5) {
4135
+ return null;
4136
+ }
4137
+ const nerfMultiplier = 0.3;
4138
+ messages.push(`❄️ 【冰悚嚎叫】生效:生命值≤50%,受到的伤害-30%`);
4139
+ return {
4140
+ nerfMultiplier,
4141
+ messages
4142
+ };
4143
+ }, "handleShiveringHowl")
4111
4144
  };
4112
4145
  function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCrit, ignoreRate, careerData, equippedWeapon) {
4113
4146
  const messages = [];
@@ -4216,7 +4249,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4216
4249
  updateStatsByName(solarFlareResult.targetUpdates.name, solarFlareResult.targetUpdates.updates);
4217
4250
  }
4218
4251
  }
4219
- const pulseEffect = BattleEffectProcessor.handlePulseRifleEffect(weaponName, targetBoss);
4252
+ const pulseEffect = BattleEffectProcessor.handlePulseRifleEffect(weaponName, targetBoss, equippedWeapon);
4220
4253
  if (pulseEffect) {
4221
4254
  messages.push(...pulseEffect.messages);
4222
4255
  pulseGrenadeTriggered = pulseEffect.pulseGrenadeTriggered;
@@ -4265,6 +4298,8 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4265
4298
  { effect: BattleEffectProcessor.handleVomit, args: [targetBoss] },
4266
4299
  { effect: BattleEffectProcessor.handleRampage, args: [targetBoss] },
4267
4300
  { effect: BattleEffectProcessor.handleHyperRangeShift, args: [targetBoss] },
4301
+ // +++ 新增:冰悚嚎叫技能处理 +++
4302
+ { effect: BattleEffectProcessor.handleShiveringHowl, args: [targetBoss] },
4268
4303
  // 1. 毒性唾液
4269
4304
  { effect: BattleEffectProcessor.handleToxicSaliva, args: [targetBoss] },
4270
4305
  // 2. 剧毒狂暴
@@ -4459,6 +4494,12 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4459
4494
  if (equippedWeapon.installedMods?.includes("轻型电源节点")) {
4460
4495
  armorDamageReduction = 0;
4461
4496
  }
4497
+ if (equippedWeapon.installedMods?.includes("助燃核心")) {
4498
+ armorDamageReduction = -0.5;
4499
+ }
4500
+ if (equippedWeapon.installedMods?.includes("强力钻刺核心")) {
4501
+ armorDamageReduction = 0.2;
4502
+ }
4462
4503
  armor += targetBoss.armor - targetBoss.radiationLayers * 0.05;
4463
4504
  const armorReduction = armorDamageReduction * armor;
4464
4505
  if (armorReduction !== 0) {
@@ -4963,6 +5004,11 @@ var passiveConfig = {
4963
5004
  description: "受击时1%概率免疫该次伤害,每层「基因变异」提高1%的概率",
4964
5005
  belong: [],
4965
5006
  derivedSkills: []
5007
+ },
5008
+ "冰悚嚎叫": {
5009
+ description: "血量低于50%后,受到的伤害降低30%",
5010
+ belong: ["寒冰王蛇"],
5011
+ derivedSkills: []
4966
5012
  }
4967
5013
  };
4968
5014
 
@@ -5109,6 +5155,16 @@ var ggcevoUpdates = [
5109
5155
  - 修改了寒冷机制,现在拥有免疫寒冷伤害的技能可以免疫获得寒冷层数
5110
5156
  - 增强了部分免疫寒冷伤害的技能,使其可以清空自身寒冷层数
5111
5157
  `.trim()
5158
+ },
5159
+ {
5160
+ version: "1.5.20",
5161
+ time: "2025-07-04",
5162
+ content: `
5163
+ - 修改了任务破甲先锋的奖励
5164
+ - 修改了M4AE脉冲步枪(传奇武器)的效果
5165
+ - 新增了动力钻头的专属改装:强力钻刺核心
5166
+ - 寒冰王蛇新增技能:冰悚嚎叫
5167
+ `.trim()
5112
5168
  }
5113
5169
  ];
5114
5170
  function compareVersions(a, b) {
@@ -6333,7 +6389,9 @@ async function handleScatterAttack(ctx, session, handle, config, equippedWeapon,
6333
6389
  if (EffectProcessor.energyDrained) {
6334
6390
  taskUpdates.push({ taskId: 5, count: EffectProcessor.drainFactor });
6335
6391
  }
6336
- if (EffectProcessor.pulseGrenadeTriggered) {
6392
+ if (weaponName === "M4AE脉冲步枪") {
6393
+ taskUpdates.push({ taskId: 6, count: 2 });
6394
+ } else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
6337
6395
  taskUpdates.push({ taskId: 6, count: 1 });
6338
6396
  }
6339
6397
  if (EffectProcessor.burnLayerAdded) {
@@ -9516,7 +9574,9 @@ ${validTypes.join("、")}`;
9516
9574
  if (primaryAttackResult.arcApplied) {
9517
9575
  taskUpdates.push({ taskId: 5, count: primaryAttackResult.drainFactor });
9518
9576
  }
9519
- if (primaryAttackResult.pulseGrenadeTriggered) {
9577
+ if (weaponName === "M4AE脉冲步枪") {
9578
+ taskUpdates.push({ taskId: 6, count: 2 });
9579
+ } else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
9520
9580
  taskUpdates.push({ taskId: 6, count: 1 });
9521
9581
  }
9522
9582
  if (primaryAttackResult.burnLayerAdded) {
package/lib/tasks.d.ts CHANGED
@@ -43,9 +43,9 @@ export declare const Tasklist: {
43
43
  readonly id: 6;
44
44
  readonly type: "可重复任务";
45
45
  readonly target: 1;
46
- readonly price: 200;
46
+ readonly price: 100;
47
47
  readonly redCrystalCost: 0;
48
- readonly condition: "使用【M4AE脉冲步枪】攻击目标并成功削减其0.5护甲";
48
+ readonly condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲";
49
49
  };
50
50
  readonly 烈火燎原: {
51
51
  readonly id: 7;
package/lib/weapons.d.ts CHANGED
@@ -508,4 +508,10 @@ export declare const modConfig: {
508
508
  exclusiveTo: string;
509
509
  isExclusive: boolean;
510
510
  };
511
+ 强力钻刺核心: {
512
+ cost: number;
513
+ effect: string;
514
+ exclusiveTo: string;
515
+ isExclusive: boolean;
516
+ };
511
517
  };
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.18",
4
+ "version": "1.5.20",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [