koishi-plugin-ggcevo-game 1.6.18 → 1.6.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 +4 -0
- package/lib/index.js +57 -19
- package/lib/tasks.d.ts +1 -1
- package/package.json +1 -1
|
@@ -649,6 +649,10 @@ export declare const BattleEffectProcessor: {
|
|
|
649
649
|
nerfMultiplier: number;
|
|
650
650
|
messages: string[];
|
|
651
651
|
} | null;
|
|
652
|
+
handleDragonBreathResistance: (targetBoss: any, weaponName: string) => {
|
|
653
|
+
nerfMultiplier: number;
|
|
654
|
+
messages: string[];
|
|
655
|
+
} | null;
|
|
652
656
|
};
|
|
653
657
|
/**
|
|
654
658
|
* 统一处理所有被动效果(包含伤害修正、免疫检查、状态更新等)
|
package/lib/index.js
CHANGED
|
@@ -388,7 +388,7 @@ var weaponConfig = {
|
|
|
388
388
|
damage: 90,
|
|
389
389
|
armorDamageReduction: 0,
|
|
390
390
|
description: "这是传说中的武器",
|
|
391
|
-
specialeffect: "
|
|
391
|
+
specialeffect: "造成的30%伤害转化为火焰伤害;攻击时为目标附加2层[燃烧]效果,每层使目标受到火焰伤害时额外造成2点伤害(至多额外造成100点伤害)",
|
|
392
392
|
price: 6400,
|
|
393
393
|
redCrystalCost: 200,
|
|
394
394
|
isantiair: false,
|
|
@@ -730,7 +730,7 @@ var spaceStationCrewConfig = [
|
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
732
|
professionName: "武器中士",
|
|
733
|
-
effect: "攻击伤害+15%;
|
|
733
|
+
effect: "攻击伤害+15%; 购买传奇武器无需权限次数(可消耗权限次数半价购买传奇武器)",
|
|
734
734
|
requirements: "至少拥有一把6级及以上等级的武器",
|
|
735
735
|
Jobtransfer: true,
|
|
736
736
|
costcoins: 3e3
|
|
@@ -1177,7 +1177,7 @@ var Spacestationtechnology = [
|
|
|
1177
1177
|
level: 5,
|
|
1178
1178
|
cost: 5350,
|
|
1179
1179
|
description: "完全恢复空间站安防系统,攻击获得的金币+25%",
|
|
1180
|
-
careerBonus: "攻击获得的金币额外+25%;
|
|
1180
|
+
careerBonus: "攻击获得的金币额外+25%; 获得解锁军械库防爆门权限1次,可以随机获得一把传奇武器"
|
|
1181
1181
|
}
|
|
1182
1182
|
]
|
|
1183
1183
|
},
|
|
@@ -1335,7 +1335,7 @@ var Tasklist = {
|
|
|
1335
1335
|
id: 7,
|
|
1336
1336
|
type: "可重复任务",
|
|
1337
1337
|
target: 1,
|
|
1338
|
-
price:
|
|
1338
|
+
price: 25,
|
|
1339
1339
|
redCrystalCost: 0,
|
|
1340
1340
|
condition: "使用【焚烧枪】或【龙息霰弹枪】攻击目标并成功增加其1层[燃烧]"
|
|
1341
1341
|
}
|
|
@@ -2583,20 +2583,29 @@ var BattleEffectProcessor = {
|
|
|
2583
2583
|
if (!targetBoss.skills.includes("火焰异形")) {
|
|
2584
2584
|
return null;
|
|
2585
2585
|
}
|
|
2586
|
-
const isFireDamage = weaponName === "焚烧枪";
|
|
2586
|
+
const isFireDamage = weaponName === "焚烧枪" || weaponName === "龙息霰弹枪";
|
|
2587
2587
|
if (!isFireDamage) {
|
|
2588
2588
|
return null;
|
|
2589
2589
|
}
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2590
|
+
let healAmount = 0;
|
|
2591
|
+
let targetUpdates = null;
|
|
2592
|
+
if (weaponName === "焚烧枪") {
|
|
2593
|
+
isImmune = true;
|
|
2594
|
+
healAmount = damage;
|
|
2595
|
+
messages.push(`🔥 【火焰异形】生效:免疫火焰伤害并回复${healAmount}点生命值`);
|
|
2596
|
+
} else if (weaponName === "龙息霰弹枪") {
|
|
2597
|
+
healAmount = Math.round(damage * 0.3);
|
|
2598
|
+
messages.push(`🔥 【火焰异形】生效:受到龙息霰弹枪的火焰伤害,回复${healAmount}点生命值`);
|
|
2599
|
+
}
|
|
2600
|
+
if (healAmount > 0) {
|
|
2601
|
+
targetUpdates = {
|
|
2602
|
+
name: targetBoss.name,
|
|
2603
|
+
updates: {
|
|
2604
|
+
hpChange: healAmount
|
|
2605
|
+
// 生命值变化量
|
|
2606
|
+
}
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2600
2609
|
return {
|
|
2601
2610
|
isImmune,
|
|
2602
2611
|
messages,
|
|
@@ -4233,7 +4242,27 @@ var BattleEffectProcessor = {
|
|
|
4233
4242
|
nerfMultiplier,
|
|
4234
4243
|
messages
|
|
4235
4244
|
};
|
|
4236
|
-
}, "handleShiveringHowl")
|
|
4245
|
+
}, "handleShiveringHowl"),
|
|
4246
|
+
// 龙息霰弹枪抗性处理
|
|
4247
|
+
handleDragonBreathResistance: /* @__PURE__ */ __name(function(targetBoss, weaponName) {
|
|
4248
|
+
const isDragonBreath = weaponName === "龙息霰弹枪";
|
|
4249
|
+
if (!isDragonBreath) {
|
|
4250
|
+
return null;
|
|
4251
|
+
}
|
|
4252
|
+
const resistanceSkills = ["火焰异形", "猎手异形", "环境适应"];
|
|
4253
|
+
const activeResistances = resistanceSkills.filter(
|
|
4254
|
+
(skill) => targetBoss.skills.includes(skill)
|
|
4255
|
+
);
|
|
4256
|
+
if (activeResistances.length === 0) {
|
|
4257
|
+
return null;
|
|
4258
|
+
}
|
|
4259
|
+
return {
|
|
4260
|
+
nerfMultiplier: 0.3,
|
|
4261
|
+
messages: [
|
|
4262
|
+
`🔥 【龙息霰弹枪】:${activeResistances.join("、")}免疫30%的火焰伤害`
|
|
4263
|
+
]
|
|
4264
|
+
};
|
|
4265
|
+
}, "handleDragonBreathResistance")
|
|
4237
4266
|
};
|
|
4238
4267
|
function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCrit, ignoreRate, careerData, equippedWeapon) {
|
|
4239
4268
|
const messages = [];
|
|
@@ -4400,6 +4429,7 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4400
4429
|
// 双参数效果
|
|
4401
4430
|
{ effect: BattleEffectProcessor.handleStructuralArmor, args: [targetBoss, weaponData] },
|
|
4402
4431
|
{ effect: BattleEffectProcessor.handleDisguise, args: [targetBoss, weaponName] },
|
|
4432
|
+
{ effect: BattleEffectProcessor.handleDragonBreathResistance, args: [targetBoss, weaponName] },
|
|
4403
4433
|
// 多参数效果
|
|
4404
4434
|
{ effect: BattleEffectProcessor.handleIsolated, args: [targetBoss, activeBosses, isolatedImmunityMark] },
|
|
4405
4435
|
{ effect: BattleEffectProcessor.handleInfectedSpaceStation, args: [targetBoss, activeBosses] },
|
|
@@ -5341,6 +5371,14 @@ var ggcevoUpdates = [
|
|
|
5341
5371
|
- 猜测下一个复活主宰的名字的赔率提升至10
|
|
5342
5372
|
- 削弱了烈焰庞兽的太阳耀斑技能效果
|
|
5343
5373
|
`.trim()
|
|
5374
|
+
},
|
|
5375
|
+
{
|
|
5376
|
+
version: "1.6.19",
|
|
5377
|
+
time: "2025-07-12",
|
|
5378
|
+
content: `
|
|
5379
|
+
- 修改了龙息霰弹枪的特殊效果
|
|
5380
|
+
- 下调了“烈火燎原”任务的奖励金币
|
|
5381
|
+
`.trim()
|
|
5344
5382
|
}
|
|
5345
5383
|
];
|
|
5346
5384
|
function compareVersions(a, b) {
|
|
@@ -5747,7 +5785,7 @@ async function handleTechUpgrade(ctx, handle, target) {
|
|
|
5747
5785
|
type: "武器系统",
|
|
5748
5786
|
field: "legendarypermissions",
|
|
5749
5787
|
amount: 1,
|
|
5750
|
-
message: "🎉
|
|
5788
|
+
message: "🎉 获得传奇武器购买权限1次!"
|
|
5751
5789
|
};
|
|
5752
5790
|
}
|
|
5753
5791
|
if (tech.techname === "安防系统" && currentLevel === 4 && nextLevel === 5) {
|
|
@@ -5755,7 +5793,7 @@ async function handleTechUpgrade(ctx, handle, target) {
|
|
|
5755
5793
|
type: "安防系统",
|
|
5756
5794
|
field: "explosiondoorauthority",
|
|
5757
5795
|
amount: 1,
|
|
5758
|
-
message: "🔓
|
|
5796
|
+
message: "🔓 获得解锁军械库防爆门权限1次!(使用指令“开启军械库防爆门”)"
|
|
5759
5797
|
};
|
|
5760
5798
|
}
|
|
5761
5799
|
await ctx.database.withTransaction(async () => {
|
|
@@ -11198,7 +11236,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11198
11236
|
`最大可升级等级:${romanNumerals[tech.maxLevel]}`,
|
|
11199
11237
|
`适用职业:${tech.careerNames.join("、")}`,
|
|
11200
11238
|
// 适用职业移动到最顶部
|
|
11201
|
-
'使用 "
|
|
11239
|
+
'使用 "升级科技 科技名称" 进行升级',
|
|
11202
11240
|
...discountInfo,
|
|
11203
11241
|
"====================",
|
|
11204
11242
|
...techDetails
|
package/lib/tasks.d.ts
CHANGED