koishi-plugin-ggcevo-game 1.5.6 → 1.5.7

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.
@@ -412,7 +412,7 @@ export declare const BattleEffectProcessor: {
412
412
  buffMultiplier: number;
413
413
  layerAdded: boolean;
414
414
  } | null;
415
- handleWeaponEnergyDrain: (targetBoss: any, weaponName: string, maxStatsForTarget: any) => {
415
+ handleWeaponEnergyDrain: (targetBoss: any, weaponName: string, maxStatsForTarget: any, equippedWeapon: any) => {
416
416
  messages: string[];
417
417
  targetUpdates: {
418
418
  name: string;
@@ -421,7 +421,7 @@ export declare const BattleEffectProcessor: {
421
421
  success: boolean;
422
422
  drainFactor: number;
423
423
  } | null;
424
- handleWeaponLayerReduction: (targetBoss: any, weaponName: string, maxStatsForTarget: any) => {
424
+ handleWeaponLayerReduction: (targetBoss: any, weaponName: string, maxStatsForTarget: any, equippedWeapon: any) => {
425
425
  messages: string[];
426
426
  targetUpdates: {
427
427
  name: string;
package/lib/index.js CHANGED
@@ -522,6 +522,18 @@ var modConfig = {
522
522
  effect: "每层[横冲直撞]提供双倍伤害",
523
523
  exclusiveTo: "M134轮转机枪",
524
524
  isExclusive: true
525
+ },
526
+ "脉冲稳定核心": {
527
+ cost: 2500,
528
+ effect: "攻击减少目标双倍技能层数",
529
+ exclusiveTo: "脉冲扰乱枪",
530
+ isExclusive: true
531
+ },
532
+ "高压电池": {
533
+ cost: 2250,
534
+ effect: "攻击消耗目标双倍能量值",
535
+ exclusiveTo: "弧焊枪",
536
+ isExclusive: true
525
537
  }
526
538
  };
527
539
 
@@ -3176,18 +3188,22 @@ var BattleEffectProcessor = {
3176
3188
  // 返回层数增加标记
3177
3189
  };
3178
3190
  }, "handleColdEffect"),
3179
- // 统一的武器能量消耗处理函数
3180
- handleWeaponEnergyDrain: /* @__PURE__ */ __name(function(targetBoss, weaponName, maxStatsForTarget) {
3191
+ // 统一的武器能量消耗处理函数(已添加模组检测)
3192
+ handleWeaponEnergyDrain: /* @__PURE__ */ __name(function(targetBoss, weaponName, maxStatsForTarget, equippedWeapon) {
3181
3193
  const weaponEnergyDrain = {
3182
3194
  "弧焊枪": 200,
3183
3195
  "DG-3电弧步枪": 500
3184
3196
  };
3185
3197
  const targetmaxEnergy = maxStatsForTarget.maxEnergy;
3186
- const drainValue = weaponEnergyDrain[weaponName];
3198
+ let drainValue = weaponEnergyDrain[weaponName];
3187
3199
  if (!drainValue || targetmaxEnergy === 0) {
3188
3200
  return null;
3189
3201
  }
3190
3202
  const messages = [];
3203
+ const hasHighVoltageBattery = equippedWeapon.installedMods?.includes("高压电池");
3204
+ if (hasHighVoltageBattery && weaponName === "弧焊枪") {
3205
+ drainValue *= 2;
3206
+ }
3191
3207
  const success = drainValue > 0;
3192
3208
  let targetUpdates = null;
3193
3209
  if (success) {
@@ -3201,8 +3217,11 @@ var BattleEffectProcessor = {
3201
3217
  }
3202
3218
  const drainFactor = drainValue / 100;
3203
3219
  const weaponDisplayName = weaponName === "弧焊枪" ? "弧焊枪" : "DG-3电弧步枪";
3220
+ let effectDescription = `消耗${drainValue}点能量`;
3221
+ if (hasHighVoltageBattery && weaponName === "弧焊枪") {
3222
+ }
3204
3223
  if (success) {
3205
- messages.push(`⚡ 【${weaponDisplayName}】武器效果:消耗${drainValue}点能量`);
3224
+ messages.push(`⚡ 【${weaponDisplayName}】武器效果:${effectDescription}`);
3206
3225
  }
3207
3226
  return {
3208
3227
  messages,
@@ -3211,18 +3230,21 @@ var BattleEffectProcessor = {
3211
3230
  drainFactor
3212
3231
  };
3213
3232
  }, "handleWeaponEnergyDrain"),
3214
- // 统一的武器层数减少处理函数
3215
- handleWeaponLayerReduction: /* @__PURE__ */ __name(function(targetBoss, weaponName, maxStatsForTarget) {
3233
+ // 统一的武器层数减少处理函数(已添加模组检测)
3234
+ handleWeaponLayerReduction: /* @__PURE__ */ __name(function(targetBoss, weaponName, maxStatsForTarget, equippedWeapon) {
3216
3235
  const weaponLayerReduction = {
3217
3236
  "脉冲扰乱枪": 2
3218
- // 可以在这里添加其他武器及其减少层数
3219
3237
  };
3220
3238
  const maxStacks = maxStatsForTarget.maxStacks;
3221
- const reductionAmount = weaponLayerReduction[weaponName];
3239
+ let reductionAmount = weaponLayerReduction[weaponName];
3222
3240
  if (!reductionAmount || maxStacks === 0) {
3223
3241
  return null;
3224
3242
  }
3225
3243
  const messages = [];
3244
+ const hasStabilizationCore = equippedWeapon.installedMods?.includes("脉冲稳定核心");
3245
+ if (hasStabilizationCore && weaponName === "脉冲扰乱枪") {
3246
+ reductionAmount *= 2;
3247
+ }
3226
3248
  const reductionSuccess = reductionAmount > 0;
3227
3249
  let targetUpdates = null;
3228
3250
  if (reductionSuccess) {
@@ -3230,12 +3252,14 @@ var BattleEffectProcessor = {
3230
3252
  name: targetBoss.name,
3231
3253
  updates: {
3232
3254
  skillStacksChanged: -reductionAmount
3233
- // 减少层数
3234
3255
  }
3235
3256
  };
3236
3257
  }
3258
+ let effectDescription = `技能层数减少${reductionAmount}层`;
3259
+ if (hasStabilizationCore && weaponName === "脉冲扰乱枪") {
3260
+ }
3237
3261
  if (reductionSuccess) {
3238
- messages.push(`⚡ 【${weaponName}】武器效果:技能层数减少${reductionAmount}层`);
3262
+ messages.push(`⚡ 【${weaponName}】武器效果:${effectDescription}`);
3239
3263
  }
3240
3264
  return {
3241
3265
  messages,
@@ -4306,7 +4330,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4306
4330
  }
4307
4331
  coldLayerAdded = coldResult.layerAdded;
4308
4332
  }
4309
- const energyDrainResult = BattleEffectProcessor.handleWeaponEnergyDrain(targetBoss, weaponName, maxStatsForTarget);
4333
+ const energyDrainResult = BattleEffectProcessor.handleWeaponEnergyDrain(targetBoss, weaponName, maxStatsForTarget, equippedWeapon);
4310
4334
  if (energyDrainResult) {
4311
4335
  messages.push(...energyDrainResult.messages);
4312
4336
  if (energyDrainResult.targetUpdates) {
@@ -4315,7 +4339,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
4315
4339
  energyDrained = energyDrainResult.success || false;
4316
4340
  drainFactor = energyDrainResult.drainFactor;
4317
4341
  }
4318
- const layerReduceResult = BattleEffectProcessor.handleWeaponLayerReduction(targetBoss, weaponName, maxStatsForTarget);
4342
+ const layerReduceResult = BattleEffectProcessor.handleWeaponLayerReduction(targetBoss, weaponName, maxStatsForTarget, equippedWeapon);
4319
4343
  if (layerReduceResult) {
4320
4344
  messages.push(...layerReduceResult.messages);
4321
4345
  if (layerReduceResult.targetUpdates) {
@@ -4925,6 +4949,14 @@ var ggcevoUpdates = [
4925
4949
  - 重制了辛迪加海盗阵营的辛迪加财务经理职业,并提高其转职门槛
4926
4950
  - 增强了MK-4激光步枪暴击保底机制
4927
4951
  `.trim()
4952
+ },
4953
+ {
4954
+ version: "1.5.7",
4955
+ time: "2025-06-29",
4956
+ content: `
4957
+ - 重制了脉冲干扰和能量消耗的任务要求
4958
+ - 新增专属模块:脉冲稳定核心和高压电池
4959
+ `.trim()
4928
4960
  }
4929
4961
  ];
4930
4962
  function compareVersions(a, b) {
package/lib/weapons.d.ts CHANGED
@@ -484,4 +484,16 @@ export declare const modConfig: {
484
484
  exclusiveTo: string;
485
485
  isExclusive: boolean;
486
486
  };
487
+ 脉冲稳定核心: {
488
+ cost: number;
489
+ effect: string;
490
+ exclusiveTo: string;
491
+ isExclusive: boolean;
492
+ };
493
+ 高压电池: {
494
+ cost: number;
495
+ effect: string;
496
+ exclusiveTo: string;
497
+ isExclusive: boolean;
498
+ };
487
499
  };
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.6",
4
+ "version": "1.5.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [