koishi-plugin-ggcevo-game 1.6.44 → 1.6.46
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/index.js +26 -15
- package/lib/utils.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -486,7 +486,7 @@ var modConfig = {
|
|
|
486
486
|
// 规范术语
|
|
487
487
|
exclusiveTo: "",
|
|
488
488
|
isExclusive: false,
|
|
489
|
-
recyclable:
|
|
489
|
+
recyclable: true
|
|
490
490
|
},
|
|
491
491
|
"棱镜水晶": {
|
|
492
492
|
cost: 2050,
|
|
@@ -502,7 +502,7 @@ var modConfig = {
|
|
|
502
502
|
// 术语统一
|
|
503
503
|
exclusiveTo: "",
|
|
504
504
|
isExclusive: false,
|
|
505
|
-
recyclable:
|
|
505
|
+
recyclable: true
|
|
506
506
|
},
|
|
507
507
|
// 专属模组修改
|
|
508
508
|
"裂甲核心": {
|
|
@@ -874,7 +874,7 @@ var syndicatePirateConfig = [
|
|
|
874
874
|
professionName: "装甲兵",
|
|
875
875
|
effect: "所有武器额外拥有一个改装槽;武器改装任意模块享有10%的折扣;购买外星电浆(传奇)享有50%的折扣",
|
|
876
876
|
requirements: "至少拥有一把改装3个模块的武器",
|
|
877
|
-
Jobtransfer:
|
|
877
|
+
Jobtransfer: false,
|
|
878
878
|
costredcrystal: 40
|
|
879
879
|
},
|
|
880
880
|
{
|
|
@@ -888,7 +888,7 @@ var syndicatePirateConfig = [
|
|
|
888
888
|
professionName: "征募官",
|
|
889
889
|
effect: "购买DG-3电弧步枪(传奇)享有50%的折扣",
|
|
890
890
|
requirements: "PK胜利20次及以上",
|
|
891
|
-
Jobtransfer:
|
|
891
|
+
Jobtransfer: false,
|
|
892
892
|
costredcrystal: 20
|
|
893
893
|
},
|
|
894
894
|
{
|
|
@@ -1558,7 +1558,7 @@ var bossPool = [
|
|
|
1558
1558
|
armor: 4,
|
|
1559
1559
|
shieldArmor: 0,
|
|
1560
1560
|
maxStacks: 0,
|
|
1561
|
-
tags: ["
|
|
1561
|
+
tags: ["护盾", "灵能", "重型", "异形"],
|
|
1562
1562
|
passive: ["超导体", "能源虹吸", "电能冲击波", "电能立场", "脉冲", "能量黑洞"]
|
|
1563
1563
|
},
|
|
1564
1564
|
minions: [
|
|
@@ -1571,7 +1571,7 @@ var bossPool = [
|
|
|
1571
1571
|
armor: 4,
|
|
1572
1572
|
shieldArmor: 0,
|
|
1573
1573
|
maxStacks: 0,
|
|
1574
|
-
tags: ["
|
|
1574
|
+
tags: ["护盾", "灵能", "异形"],
|
|
1575
1575
|
passive: ["超导体", "能量虹吸", "能量黑洞"]
|
|
1576
1576
|
}
|
|
1577
1577
|
]
|
|
@@ -4461,6 +4461,8 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4461
4461
|
{ effect: BattleEffectProcessor.handleToxicSaliva, args: [targetBoss] },
|
|
4462
4462
|
// 2. 剧毒狂暴
|
|
4463
4463
|
{ effect: BattleEffectProcessor.handleToxicFrenzy, args: [targetBoss] },
|
|
4464
|
+
{ effect: BattleEffectProcessor.handleEnergySiphon, args: [targetBoss] },
|
|
4465
|
+
{ effect: BattleEffectProcessor.handleEnergyAbsorption, args: [targetBoss] },
|
|
4464
4466
|
// 双参数效果
|
|
4465
4467
|
{ effect: BattleEffectProcessor.handleStructuralArmor, args: [targetBoss, weaponData] },
|
|
4466
4468
|
{ effect: BattleEffectProcessor.handleDisguise, args: [targetBoss, weaponName] },
|
|
@@ -5488,6 +5490,15 @@ var ggcevoUpdates = [
|
|
|
5488
5490
|
- 暂时关闭辛迪加海盗转职“清洁工”
|
|
5489
5491
|
- 关闭了签到验证机制
|
|
5490
5492
|
`.trim()
|
|
5493
|
+
},
|
|
5494
|
+
{
|
|
5495
|
+
version: "1.6.46",
|
|
5496
|
+
time: "2025-07-24",
|
|
5497
|
+
content: `
|
|
5498
|
+
- 禁用了通用模块(可原价拆卸)
|
|
5499
|
+
- 修改了竞猜ID为1项目的下注金额范围以及赔率
|
|
5500
|
+
- 禁用了辛迪加海盗转职“装甲兵”和“征募官”
|
|
5501
|
+
`.trim()
|
|
5491
5502
|
}
|
|
5492
5503
|
];
|
|
5493
5504
|
function compareVersions(a, b) {
|
|
@@ -6303,8 +6314,9 @@ var GUESSING_ITEMS = [
|
|
|
6303
6314
|
{
|
|
6304
6315
|
id: 1,
|
|
6305
6316
|
description: "猜测下一个复活主宰的名字",
|
|
6306
|
-
odds:
|
|
6307
|
-
minBet:
|
|
6317
|
+
odds: 5,
|
|
6318
|
+
minBet: 100,
|
|
6319
|
+
maxBet: 1e3,
|
|
6308
6320
|
status: "open"
|
|
6309
6321
|
}
|
|
6310
6322
|
// 可以继续添加更多竞猜项目
|
|
@@ -6456,8 +6468,6 @@ function calculateModifiers(equippedWeapon, weaponName) {
|
|
|
6456
6468
|
let totalModAdd = 0;
|
|
6457
6469
|
const modMessages = [];
|
|
6458
6470
|
if (equippedWeapon.installedMods?.includes("动能增幅")) {
|
|
6459
|
-
totalModAdd += 0.15;
|
|
6460
|
-
modMessages.push(`🛠️ 【动能增幅】:伤害+15%`);
|
|
6461
6471
|
}
|
|
6462
6472
|
if (equippedWeapon.installedMods?.includes("裂甲核心") && weaponName === modConfig["裂甲核心"]?.exclusiveTo) {
|
|
6463
6473
|
totalModAdd += 0.4;
|
|
@@ -7146,8 +7156,6 @@ async function handleIgnoreReductionEffects(ctx, handle, weaponName, targetBoss)
|
|
|
7146
7156
|
});
|
|
7147
7157
|
if (!equippedWeapon?.installedMods) return;
|
|
7148
7158
|
if (equippedWeapon.installedMods.includes("破甲模块")) {
|
|
7149
|
-
ignoreEffects.push(0.1);
|
|
7150
|
-
messages.push(`⚡ 【破甲模块】生效:无视10%伤害减免`);
|
|
7151
7159
|
}
|
|
7152
7160
|
if (weaponName === "高斯步枪" && equippedWeapon.installedMods.includes("裂甲核心")) {
|
|
7153
7161
|
ignoreEffects.push(0.4);
|
|
@@ -12591,7 +12599,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12591
12599
|
"=================================",
|
|
12592
12600
|
...availableItems.map(
|
|
12593
12601
|
(item) => `▸ [ID:${item.id}] ${item.description}
|
|
12594
|
-
赔率: ${item.odds}x |
|
|
12602
|
+
赔率: ${item.odds}x | 投注范围: ${item.minBet}-${item.maxBet}金币`
|
|
12595
12603
|
),
|
|
12596
12604
|
"================================="
|
|
12597
12605
|
].join("\n");
|
|
@@ -12611,7 +12619,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12611
12619
|
`📋 项目详情 [ID:${parsedItemId}]`,
|
|
12612
12620
|
`描述: ${targetItem.description}`,
|
|
12613
12621
|
`赔率: ${targetItem.odds}x`,
|
|
12614
|
-
|
|
12622
|
+
`投注范围: ${targetItem.minBet}-${targetItem.maxBet}金币`,
|
|
12615
12623
|
`猜中次数: ${wins} 次`,
|
|
12616
12624
|
`您的状态: ${betInfo}`
|
|
12617
12625
|
].join("\n");
|
|
@@ -12623,6 +12631,9 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12623
12631
|
if (betAmount < targetItem.minBet) {
|
|
12624
12632
|
return `⚠️ 下注金额必须≥${targetItem.minBet}金币 (当前项目最低投注)`;
|
|
12625
12633
|
}
|
|
12634
|
+
if (betAmount > targetItem.maxBet) {
|
|
12635
|
+
return `⚠️ 下注金额不能超过${targetItem.maxBet}金币 (当前项目最高投注)`;
|
|
12636
|
+
}
|
|
12626
12637
|
if (betAmount > userCoins) return `⚠️ 金币不足,当前账户只有 ${userCoins} 金币`;
|
|
12627
12638
|
const [existingBet] = await ctx.database.get("ggcevo_guess", {
|
|
12628
12639
|
handle,
|
|
@@ -12654,7 +12665,7 @@ ${validBossNames.join("、")}`;
|
|
|
12654
12665
|
totalRewards: userCoins - betAmount
|
|
12655
12666
|
});
|
|
12656
12667
|
return [
|
|
12657
|
-
"✅
|
|
12668
|
+
"✅ 竞猜下注成功!",
|
|
12658
12669
|
`项目ID: ${parsedItemId}`,
|
|
12659
12670
|
`项目描述: ${targetItem.description}`,
|
|
12660
12671
|
`竞猜内容: ${guess}`,
|
package/lib/utils.d.ts
CHANGED