koishi-plugin-ggcevo-game 1.6.45 → 1.6.47
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 +23 -14
- 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
|
{
|
|
@@ -5490,6 +5490,15 @@ var ggcevoUpdates = [
|
|
|
5490
5490
|
- 暂时关闭辛迪加海盗转职“清洁工”
|
|
5491
5491
|
- 关闭了签到验证机制
|
|
5492
5492
|
`.trim()
|
|
5493
|
+
},
|
|
5494
|
+
{
|
|
5495
|
+
version: "1.6.46",
|
|
5496
|
+
time: "2025-07-24",
|
|
5497
|
+
content: `
|
|
5498
|
+
- 禁用了通用模块(可原价拆卸)
|
|
5499
|
+
- 修改了竞猜ID为1项目的下注金额范围以及赔率
|
|
5500
|
+
- 禁用了辛迪加海盗转职“装甲兵”和“征募官”
|
|
5501
|
+
`.trim()
|
|
5493
5502
|
}
|
|
5494
5503
|
];
|
|
5495
5504
|
function compareVersions(a, b) {
|
|
@@ -6305,8 +6314,9 @@ var GUESSING_ITEMS = [
|
|
|
6305
6314
|
{
|
|
6306
6315
|
id: 1,
|
|
6307
6316
|
description: "猜测下一个复活主宰的名字",
|
|
6308
|
-
odds:
|
|
6309
|
-
minBet:
|
|
6317
|
+
odds: 5,
|
|
6318
|
+
minBet: 100,
|
|
6319
|
+
maxBet: 1e3,
|
|
6310
6320
|
status: "open"
|
|
6311
6321
|
}
|
|
6312
6322
|
// 可以继续添加更多竞猜项目
|
|
@@ -6458,8 +6468,6 @@ function calculateModifiers(equippedWeapon, weaponName) {
|
|
|
6458
6468
|
let totalModAdd = 0;
|
|
6459
6469
|
const modMessages = [];
|
|
6460
6470
|
if (equippedWeapon.installedMods?.includes("动能增幅")) {
|
|
6461
|
-
totalModAdd += 0.15;
|
|
6462
|
-
modMessages.push(`🛠️ 【动能增幅】:伤害+15%`);
|
|
6463
6471
|
}
|
|
6464
6472
|
if (equippedWeapon.installedMods?.includes("裂甲核心") && weaponName === modConfig["裂甲核心"]?.exclusiveTo) {
|
|
6465
6473
|
totalModAdd += 0.4;
|
|
@@ -7148,8 +7156,6 @@ async function handleIgnoreReductionEffects(ctx, handle, weaponName, targetBoss)
|
|
|
7148
7156
|
});
|
|
7149
7157
|
if (!equippedWeapon?.installedMods) return;
|
|
7150
7158
|
if (equippedWeapon.installedMods.includes("破甲模块")) {
|
|
7151
|
-
ignoreEffects.push(0.1);
|
|
7152
|
-
messages.push(`⚡ 【破甲模块】生效:无视10%伤害减免`);
|
|
7153
7159
|
}
|
|
7154
7160
|
if (weaponName === "高斯步枪" && equippedWeapon.installedMods.includes("裂甲核心")) {
|
|
7155
7161
|
ignoreEffects.push(0.4);
|
|
@@ -7701,7 +7707,7 @@ function apply(ctx, config) {
|
|
|
7701
7707
|
);
|
|
7702
7708
|
const winMessages = [];
|
|
7703
7709
|
for (const winner of winners) {
|
|
7704
|
-
const prize = Math.floor(winner.amount *
|
|
7710
|
+
const prize = Math.floor(winner.amount * 5);
|
|
7705
7711
|
const [signInfo] = await ctx.database.get("ggcevo_sign", {
|
|
7706
7712
|
handle: winner.handle
|
|
7707
7713
|
});
|
|
@@ -12593,7 +12599,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12593
12599
|
"=================================",
|
|
12594
12600
|
...availableItems.map(
|
|
12595
12601
|
(item) => `▸ [ID:${item.id}] ${item.description}
|
|
12596
|
-
赔率: ${item.odds}x |
|
|
12602
|
+
赔率: ${item.odds}x | 投注范围: ${item.minBet}-${item.maxBet}金币`
|
|
12597
12603
|
),
|
|
12598
12604
|
"================================="
|
|
12599
12605
|
].join("\n");
|
|
@@ -12613,7 +12619,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12613
12619
|
`📋 项目详情 [ID:${parsedItemId}]`,
|
|
12614
12620
|
`描述: ${targetItem.description}`,
|
|
12615
12621
|
`赔率: ${targetItem.odds}x`,
|
|
12616
|
-
|
|
12622
|
+
`投注范围: ${targetItem.minBet}-${targetItem.maxBet}金币`,
|
|
12617
12623
|
`猜中次数: ${wins} 次`,
|
|
12618
12624
|
`您的状态: ${betInfo}`
|
|
12619
12625
|
].join("\n");
|
|
@@ -12625,6 +12631,9 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12625
12631
|
if (betAmount < targetItem.minBet) {
|
|
12626
12632
|
return `⚠️ 下注金额必须≥${targetItem.minBet}金币 (当前项目最低投注)`;
|
|
12627
12633
|
}
|
|
12634
|
+
if (betAmount > targetItem.maxBet) {
|
|
12635
|
+
return `⚠️ 下注金额不能超过${targetItem.maxBet}金币 (当前项目最高投注)`;
|
|
12636
|
+
}
|
|
12628
12637
|
if (betAmount > userCoins) return `⚠️ 金币不足,当前账户只有 ${userCoins} 金币`;
|
|
12629
12638
|
const [existingBet] = await ctx.database.get("ggcevo_guess", {
|
|
12630
12639
|
handle,
|
|
@@ -12656,7 +12665,7 @@ ${validBossNames.join("、")}`;
|
|
|
12656
12665
|
totalRewards: userCoins - betAmount
|
|
12657
12666
|
});
|
|
12658
12667
|
return [
|
|
12659
|
-
"✅
|
|
12668
|
+
"✅ 竞猜下注成功!",
|
|
12660
12669
|
`项目ID: ${parsedItemId}`,
|
|
12661
12670
|
`项目描述: ${targetItem.description}`,
|
|
12662
12671
|
`竞猜内容: ${guess}`,
|
package/lib/utils.d.ts
CHANGED