koishi-plugin-ggcevo-game 1.6.7 → 1.6.8
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/database.d.ts +1 -1
- package/lib/index.js +40 -26
- package/lib/tasks.d.ts +4 -4
- package/package.json +1 -1
package/lib/database.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -625,7 +625,7 @@ var SyndicatedItems = {
|
|
|
625
625
|
type: "设备工具",
|
|
626
626
|
description: "建造机器人,用于自动采集太空矿物",
|
|
627
627
|
price: 0,
|
|
628
|
-
redCrystalCost:
|
|
628
|
+
redCrystalCost: 20,
|
|
629
629
|
condition: "辛迪加海盗阵营",
|
|
630
630
|
effects: "挖矿获得的金币收益提高10%;可使用红晶升级"
|
|
631
631
|
}
|
|
@@ -1242,7 +1242,7 @@ var itemupgrades = [
|
|
|
1242
1242
|
// 升级基础成本
|
|
1243
1243
|
minUpgrade: 5,
|
|
1244
1244
|
// 每次升级最小提升
|
|
1245
|
-
maxUpgrade:
|
|
1245
|
+
maxUpgrade: 15,
|
|
1246
1246
|
// 每次升级最大提升
|
|
1247
1247
|
maxBonus: 90
|
|
1248
1248
|
// 总提升上限
|
|
@@ -1251,7 +1251,7 @@ var itemupgrades = [
|
|
|
1251
1251
|
name: "CRED-17",
|
|
1252
1252
|
upgradeCostBase: 10,
|
|
1253
1253
|
minUpgrade: 5,
|
|
1254
|
-
maxUpgrade:
|
|
1254
|
+
maxUpgrade: 15,
|
|
1255
1255
|
maxBonus: 50
|
|
1256
1256
|
}
|
|
1257
1257
|
];
|
|
@@ -1270,7 +1270,7 @@ var Tasklist = {
|
|
|
1270
1270
|
id: 2,
|
|
1271
1271
|
type: "可重复任务",
|
|
1272
1272
|
target: 1,
|
|
1273
|
-
price:
|
|
1273
|
+
price: 75,
|
|
1274
1274
|
redCrystalCost: 0,
|
|
1275
1275
|
condition: "使用【零度之下】攻击目标并成功增加其1层[寒冷]"
|
|
1276
1276
|
},
|
|
@@ -1286,7 +1286,7 @@ var Tasklist = {
|
|
|
1286
1286
|
id: 4,
|
|
1287
1287
|
type: "可重复任务",
|
|
1288
1288
|
target: 1,
|
|
1289
|
-
price:
|
|
1289
|
+
price: 45,
|
|
1290
1290
|
redCrystalCost: 0,
|
|
1291
1291
|
condition: "使用【脉冲扰乱枪】攻击目标并成功减少其1层技能层数"
|
|
1292
1292
|
},
|
|
@@ -1302,7 +1302,7 @@ var Tasklist = {
|
|
|
1302
1302
|
id: 6,
|
|
1303
1303
|
type: "可重复任务",
|
|
1304
1304
|
target: 1,
|
|
1305
|
-
price:
|
|
1305
|
+
price: 80,
|
|
1306
1306
|
redCrystalCost: 0,
|
|
1307
1307
|
condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲"
|
|
1308
1308
|
},
|
|
@@ -1310,7 +1310,7 @@ var Tasklist = {
|
|
|
1310
1310
|
id: 7,
|
|
1311
1311
|
type: "可重复任务",
|
|
1312
1312
|
target: 1,
|
|
1313
|
-
price:
|
|
1313
|
+
price: 40,
|
|
1314
1314
|
redCrystalCost: 0,
|
|
1315
1315
|
condition: "使用【焚烧枪】或【龙息霰弹枪】攻击目标并成功增加其1层[燃烧]"
|
|
1316
1316
|
}
|
|
@@ -3854,7 +3854,7 @@ var BattleEffectProcessor = {
|
|
|
3854
3854
|
let targetUpdates = null;
|
|
3855
3855
|
let pulseGrenadeTriggered = false;
|
|
3856
3856
|
if (weaponName === "M4AE脉冲步枪") {
|
|
3857
|
-
const armorReduction =
|
|
3857
|
+
const armorReduction = 2;
|
|
3858
3858
|
targetUpdates = {
|
|
3859
3859
|
name: targetBoss.name,
|
|
3860
3860
|
updates: { armorChange: armorReduction }
|
|
@@ -3867,7 +3867,7 @@ var BattleEffectProcessor = {
|
|
|
3867
3867
|
} else if (weaponName === "动力钻头" && equippedWeapon.installedMods?.includes("强力钻刺核心")) {
|
|
3868
3868
|
targetUpdates = {
|
|
3869
3869
|
name: targetBoss.name,
|
|
3870
|
-
updates: { armorChange:
|
|
3870
|
+
updates: { armorChange: 1 }
|
|
3871
3871
|
};
|
|
3872
3872
|
messages.push(`⚡ 【强力钻刺核心】触发:动力钻头穿透装甲,削减目标0.1点护甲值`);
|
|
3873
3873
|
} else {
|
|
@@ -4571,10 +4571,14 @@ function applyPassiveEffects(targetBoss, activeBosses, weaponName, damage, hasCr
|
|
|
4571
4571
|
if (equippedWeapon.installedMods?.includes("强力钻刺核心")) {
|
|
4572
4572
|
armorDamageReduction = 0.2;
|
|
4573
4573
|
}
|
|
4574
|
-
armor += targetBoss.
|
|
4574
|
+
armor += getArmorByName(targetBoss.name) - targetBoss.radiationLayers * 0.05 - targetBoss.armorReductionLayers * 0.1;
|
|
4575
4575
|
const armorReduction = armorDamageReduction * armor;
|
|
4576
4576
|
if (armorReduction !== 0) {
|
|
4577
|
-
|
|
4577
|
+
if (armorReduction > 0) {
|
|
4578
|
+
messages.push(`护甲减伤: ${armorReduction.toFixed(2)}点`);
|
|
4579
|
+
} else {
|
|
4580
|
+
messages.push(`护甲增伤: ${Math.abs(armorReduction).toFixed(2)}点`);
|
|
4581
|
+
}
|
|
4578
4582
|
}
|
|
4579
4583
|
finalDamage = Math.max(Math.round(finalDamage - armorReduction), 1);
|
|
4580
4584
|
if (finalDamage < targetBoss.HP) {
|
|
@@ -5285,6 +5289,15 @@ var ggcevoUpdates = [
|
|
|
5285
5289
|
- 黑市订购逻辑已修改,现在无法重复订购已有的设备工具类物品
|
|
5286
5290
|
- 新增探索星系“陨石星系”
|
|
5287
5291
|
`.trim()
|
|
5292
|
+
},
|
|
5293
|
+
{
|
|
5294
|
+
version: "1.6.8",
|
|
5295
|
+
time: "2025-07-09",
|
|
5296
|
+
content: `
|
|
5297
|
+
- 增强DG-3电弧步枪的散射伤害系数至50%
|
|
5298
|
+
- 提高“绝对零度”和“脉冲干扰”任务金币奖励,降低“破甲先锋”和“烈火燎原”任务金币奖励
|
|
5299
|
+
- 提高“自动采掘机器人”和“CRED-17”每次升级区间至5%-15%
|
|
5300
|
+
`.trim()
|
|
5288
5301
|
}
|
|
5289
5302
|
];
|
|
5290
5303
|
function compareVersions(a, b) {
|
|
@@ -5458,7 +5471,6 @@ async function activateNextBossGroup(ctx, currentBossId = null) {
|
|
|
5458
5471
|
// 新增标签字段
|
|
5459
5472
|
skills: [...nextBossGroup.main.passive],
|
|
5460
5473
|
energy: nextBossGroup.main.maxEnergy,
|
|
5461
|
-
armor: nextBossGroup.main.armor,
|
|
5462
5474
|
groupId: nextBossGroup.id,
|
|
5463
5475
|
isActive: true,
|
|
5464
5476
|
respawnTime: /* @__PURE__ */ new Date()
|
|
@@ -5472,7 +5484,6 @@ async function activateNextBossGroup(ctx, currentBossId = null) {
|
|
|
5472
5484
|
// 新增标签字段
|
|
5473
5485
|
skills: [...minion.passive],
|
|
5474
5486
|
energy: minion.maxEnergy,
|
|
5475
|
-
armor: minion.armor,
|
|
5476
5487
|
groupId: nextBossGroup.id,
|
|
5477
5488
|
isActive: true,
|
|
5478
5489
|
respawnTime: /* @__PURE__ */ new Date()
|
|
@@ -6768,8 +6779,8 @@ async function updateDatabaseWithStats(ctx, stats) {
|
|
|
6768
6779
|
updateData.energy = Math.max(0, Math.min(maxEnergy, newEnergy));
|
|
6769
6780
|
}
|
|
6770
6781
|
if (stats.armorChange !== 0) {
|
|
6771
|
-
const newarmor = boss.
|
|
6772
|
-
updateData.
|
|
6782
|
+
const newarmor = boss.armorReductionLayers + stats.armorChange;
|
|
6783
|
+
updateData.armorReductionLayers = newarmor;
|
|
6773
6784
|
}
|
|
6774
6785
|
if (stats.skillStacksChanged !== 0) {
|
|
6775
6786
|
const newStacks = boss.skillStacks + stats.skillStacksChanged;
|
|
@@ -7184,7 +7195,7 @@ function apply(ctx, config) {
|
|
|
7184
7195
|
type: "string",
|
|
7185
7196
|
HP: "unsigned",
|
|
7186
7197
|
energy: "unsigned",
|
|
7187
|
-
|
|
7198
|
+
armorReductionLayers: "unsigned",
|
|
7188
7199
|
tags: "list",
|
|
7189
7200
|
skills: "list",
|
|
7190
7201
|
skillStacks: "unsigned",
|
|
@@ -9950,7 +9961,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
9950
9961
|
if (bossGroup.main.maxEnergy > 0) {
|
|
9951
9962
|
result.push(`⚡ 能量:${mainBoss.energy}/1000`);
|
|
9952
9963
|
}
|
|
9953
|
-
result.push(`🛡️ 护甲:${
|
|
9964
|
+
result.push(`🛡️ 护甲:${bossGroup.main.armor || 0}`);
|
|
9954
9965
|
result.push(`🏷️ 标签:${mainBoss.tags?.join("、") || "无"}`);
|
|
9955
9966
|
if (mainBoss.radiationLayers > 0) {
|
|
9956
9967
|
result.push(`☢️ 辐射:${mainBoss.radiationLayers}层`);
|
|
@@ -10017,7 +10028,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
10017
10028
|
if (minionConfig && minionConfig.maxEnergy > 0) {
|
|
10018
10029
|
minionInfo.push(`⚡ 能量:${minion.energy}/1000`);
|
|
10019
10030
|
}
|
|
10020
|
-
minionInfo.push(`🛡️ 护甲:${
|
|
10031
|
+
minionInfo.push(`🛡️ 护甲:${minionConfig?.armor || 0}`);
|
|
10021
10032
|
minionInfo.push(`🏷️ 标签:${minion.tags?.join("、") || "无"}`);
|
|
10022
10033
|
if (minion.radiationLayers > 0) {
|
|
10023
10034
|
minionInfo.push(`☢️ 辐射:${minion.radiationLayers}层`);
|
|
@@ -10093,7 +10104,6 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
10093
10104
|
tags: bossConfig.main.tags,
|
|
10094
10105
|
skills: [...bossConfig.main.passive],
|
|
10095
10106
|
energy: bossConfig.main.maxEnergy,
|
|
10096
|
-
armor: bossConfig.main.armor,
|
|
10097
10107
|
groupId: groupid,
|
|
10098
10108
|
isActive: true,
|
|
10099
10109
|
respawnTime: /* @__PURE__ */ new Date()
|
|
@@ -10110,7 +10120,6 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
10110
10120
|
tags: minion.tags,
|
|
10111
10121
|
skills: [...minion.passive],
|
|
10112
10122
|
energy: minion.maxEnergy,
|
|
10113
|
-
armor: minion.armor,
|
|
10114
10123
|
groupId: groupid,
|
|
10115
10124
|
isActive: true,
|
|
10116
10125
|
respawnTime: /* @__PURE__ */ new Date()
|
|
@@ -11770,7 +11779,6 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11770
11779
|
...shipList.map((ship) => `▸ ${ship}`),
|
|
11771
11780
|
"\n🛒 购买指令:购买飞船 [飞船名称]",
|
|
11772
11781
|
"例如:购买飞船 TX-12S隐形巡洋舰",
|
|
11773
|
-
"\n📡 查询您当前的飞船:飞船信息",
|
|
11774
11782
|
'\n💡 提示:购买飞船后使用"飞船信息"查看您的飞船'
|
|
11775
11783
|
].join("\n");
|
|
11776
11784
|
});
|
|
@@ -11894,7 +11902,9 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11894
11902
|
currentBonus: item.bonus,
|
|
11895
11903
|
maxBonus: upgradeConfig2.maxBonus,
|
|
11896
11904
|
cost: actualCost,
|
|
11897
|
-
discount: isCommander ? `(原价: ${baseCost} 红晶)` : ""
|
|
11905
|
+
discount: isCommander ? `(原价: ${baseCost} 红晶)` : "",
|
|
11906
|
+
// 新增: 存储升级区间信息
|
|
11907
|
+
upgradeRange: `${upgradeConfig2.minUpgrade}%~${upgradeConfig2.maxUpgrade}%`
|
|
11898
11908
|
});
|
|
11899
11909
|
}
|
|
11900
11910
|
if (upgradableItems.length === 0) {
|
|
@@ -11910,12 +11920,16 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11910
11920
|
const msgLines = [
|
|
11911
11921
|
"💎 可升级物品列表",
|
|
11912
11922
|
...discountNotice2,
|
|
11913
|
-
// 在列表下方第一行添加折扣明细
|
|
11914
11923
|
"====================",
|
|
11924
|
+
// 修改这里: 在物品信息中增加升级区间显示
|
|
11915
11925
|
...upgradableItems.map((item) => {
|
|
11916
|
-
return
|
|
11917
|
-
|
|
11918
|
-
|
|
11926
|
+
return [
|
|
11927
|
+
`▸ ${item.name}:`,
|
|
11928
|
+
` 当前升级加成: ${item.currentBonus}% / ${item.maxBonus}%`,
|
|
11929
|
+
` 每次升级提升: ${item.upgradeRange}`,
|
|
11930
|
+
// 新增行
|
|
11931
|
+
` 升级消耗: ${item.cost} 红晶 ${item.discount}`
|
|
11932
|
+
].join("\n");
|
|
11919
11933
|
}),
|
|
11920
11934
|
"====================",
|
|
11921
11935
|
`使用"升级物品 物品名称"进行升级`
|
package/lib/tasks.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const Tasklist: {
|
|
|
11
11
|
readonly id: 2;
|
|
12
12
|
readonly type: "可重复任务";
|
|
13
13
|
readonly target: 1;
|
|
14
|
-
readonly price:
|
|
14
|
+
readonly price: 75;
|
|
15
15
|
readonly redCrystalCost: 0;
|
|
16
16
|
readonly condition: "使用【零度之下】攻击目标并成功增加其1层[寒冷]";
|
|
17
17
|
};
|
|
@@ -27,7 +27,7 @@ export declare const Tasklist: {
|
|
|
27
27
|
readonly id: 4;
|
|
28
28
|
readonly type: "可重复任务";
|
|
29
29
|
readonly target: 1;
|
|
30
|
-
readonly price:
|
|
30
|
+
readonly price: 45;
|
|
31
31
|
readonly redCrystalCost: 0;
|
|
32
32
|
readonly condition: "使用【脉冲扰乱枪】攻击目标并成功减少其1层技能层数";
|
|
33
33
|
};
|
|
@@ -43,7 +43,7 @@ export declare const Tasklist: {
|
|
|
43
43
|
readonly id: 6;
|
|
44
44
|
readonly type: "可重复任务";
|
|
45
45
|
readonly target: 1;
|
|
46
|
-
readonly price:
|
|
46
|
+
readonly price: 80;
|
|
47
47
|
readonly redCrystalCost: 0;
|
|
48
48
|
readonly condition: "使用【M4AE脉冲步枪】或【动力钻头】攻击目标并成功削减其0.1护甲";
|
|
49
49
|
};
|
|
@@ -51,7 +51,7 @@ export declare const Tasklist: {
|
|
|
51
51
|
readonly id: 7;
|
|
52
52
|
readonly type: "可重复任务";
|
|
53
53
|
readonly target: 1;
|
|
54
|
-
readonly price:
|
|
54
|
+
readonly price: 40;
|
|
55
55
|
readonly redCrystalCost: 0;
|
|
56
56
|
readonly condition: "使用【焚烧枪】或【龙息霰弹枪】攻击目标并成功增加其1层[燃烧]";
|
|
57
57
|
};
|