koishi-plugin-ggcevo-game 1.5.19 → 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.
- package/lib/boss/BattleEffectProcessor.d.ts +1 -1
- package/lib/index.js +48 -17
- package/lib/tasks.d.ts +2 -2
- package/lib/weapons.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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;
|
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
|
|
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:
|
|
1226
|
+
price: 100,
|
|
1221
1227
|
redCrystalCost: 0,
|
|
1222
|
-
condition: "使用【M4AE
|
|
1228
|
+
condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲"
|
|
1223
1229
|
},
|
|
1224
1230
|
"烈火燎原": {
|
|
1225
1231
|
id: 7,
|
|
@@ -3771,23 +3777,31 @@ var BattleEffectProcessor = {
|
|
|
3771
3777
|
spawnNewBossMark: randomBossName
|
|
3772
3778
|
};
|
|
3773
3779
|
}, "handleHatching"),
|
|
3774
|
-
//
|
|
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
|
|
3780
|
-
|
|
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 }
|
|
3788
3790
|
};
|
|
3789
|
-
messages.push(`💥
|
|
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 }
|
|
3800
|
+
};
|
|
3801
|
+
messages.push(`⚡ 【强力钻刺核心】触发:动力钻头穿透装甲,削减目标0.1点护甲值`);
|
|
3802
|
+
} else {
|
|
3803
|
+
return null;
|
|
3804
|
+
}
|
|
3791
3805
|
return {
|
|
3792
3806
|
pulseGrenadeTriggered,
|
|
3793
3807
|
targetUpdates,
|
|
@@ -4235,7 +4249,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4235
4249
|
updateStatsByName(solarFlareResult.targetUpdates.name, solarFlareResult.targetUpdates.updates);
|
|
4236
4250
|
}
|
|
4237
4251
|
}
|
|
4238
|
-
const pulseEffect = BattleEffectProcessor.handlePulseRifleEffect(weaponName, targetBoss);
|
|
4252
|
+
const pulseEffect = BattleEffectProcessor.handlePulseRifleEffect(weaponName, targetBoss, equippedWeapon);
|
|
4239
4253
|
if (pulseEffect) {
|
|
4240
4254
|
messages.push(...pulseEffect.messages);
|
|
4241
4255
|
pulseGrenadeTriggered = pulseEffect.pulseGrenadeTriggered;
|
|
@@ -4483,6 +4497,9 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4483
4497
|
if (equippedWeapon.installedMods?.includes("助燃核心")) {
|
|
4484
4498
|
armorDamageReduction = -0.5;
|
|
4485
4499
|
}
|
|
4500
|
+
if (equippedWeapon.installedMods?.includes("强力钻刺核心")) {
|
|
4501
|
+
armorDamageReduction = 0.2;
|
|
4502
|
+
}
|
|
4486
4503
|
armor += targetBoss.armor - targetBoss.radiationLayers * 0.05;
|
|
4487
4504
|
const armorReduction = armorDamageReduction * armor;
|
|
4488
4505
|
if (armorReduction !== 0) {
|
|
@@ -5138,6 +5155,16 @@ var ggcevoUpdates = [
|
|
|
5138
5155
|
- 修改了寒冷机制,现在拥有免疫寒冷伤害的技能可以免疫获得寒冷层数
|
|
5139
5156
|
- 增强了部分免疫寒冷伤害的技能,使其可以清空自身寒冷层数
|
|
5140
5157
|
`.trim()
|
|
5158
|
+
},
|
|
5159
|
+
{
|
|
5160
|
+
version: "1.5.20",
|
|
5161
|
+
time: "2025-07-04",
|
|
5162
|
+
content: `
|
|
5163
|
+
- 修改了任务破甲先锋的奖励
|
|
5164
|
+
- 修改了M4AE脉冲步枪(传奇武器)的效果
|
|
5165
|
+
- 新增了动力钻头的专属改装:强力钻刺核心
|
|
5166
|
+
- 寒冰王蛇新增技能:冰悚嚎叫
|
|
5167
|
+
`.trim()
|
|
5141
5168
|
}
|
|
5142
5169
|
];
|
|
5143
5170
|
function compareVersions(a, b) {
|
|
@@ -6362,7 +6389,9 @@ async function handleScatterAttack(ctx, session, handle, config, equippedWeapon,
|
|
|
6362
6389
|
if (EffectProcessor.energyDrained) {
|
|
6363
6390
|
taskUpdates.push({ taskId: 5, count: EffectProcessor.drainFactor });
|
|
6364
6391
|
}
|
|
6365
|
-
if (
|
|
6392
|
+
if (weaponName === "M4AE脉冲步枪") {
|
|
6393
|
+
taskUpdates.push({ taskId: 6, count: 2 });
|
|
6394
|
+
} else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
|
|
6366
6395
|
taskUpdates.push({ taskId: 6, count: 1 });
|
|
6367
6396
|
}
|
|
6368
6397
|
if (EffectProcessor.burnLayerAdded) {
|
|
@@ -9545,7 +9574,9 @@ ${validTypes.join("、")}`;
|
|
|
9545
9574
|
if (primaryAttackResult.arcApplied) {
|
|
9546
9575
|
taskUpdates.push({ taskId: 5, count: primaryAttackResult.drainFactor });
|
|
9547
9576
|
}
|
|
9548
|
-
if (
|
|
9577
|
+
if (weaponName === "M4AE脉冲步枪") {
|
|
9578
|
+
taskUpdates.push({ taskId: 6, count: 2 });
|
|
9579
|
+
} else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
|
|
9549
9580
|
taskUpdates.push({ taskId: 6, count: 1 });
|
|
9550
9581
|
}
|
|
9551
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:
|
|
46
|
+
readonly price: 100;
|
|
47
47
|
readonly redCrystalCost: 0;
|
|
48
|
-
readonly condition: "使用【M4AE
|
|
48
|
+
readonly condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲";
|
|
49
49
|
};
|
|
50
50
|
readonly 烈火燎原: {
|
|
51
51
|
readonly id: 7;
|
package/lib/weapons.d.ts
CHANGED