koishi-plugin-ggcevo-game 1.4.24 → 1.4.26
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 +17 -14
- package/lib/wish.d.ts +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1408,7 +1408,7 @@ var wishConfig = {
|
|
|
1408
1408
|
common: [
|
|
1409
1409
|
{
|
|
1410
1410
|
name: "蚱蜢优购",
|
|
1411
|
-
effect: "
|
|
1411
|
+
effect: "下一次购买武器(非传奇)享有20%的折扣"
|
|
1412
1412
|
},
|
|
1413
1413
|
{
|
|
1414
1414
|
name: "灵狐升运",
|
|
@@ -1416,7 +1416,7 @@ var wishConfig = {
|
|
|
1416
1416
|
},
|
|
1417
1417
|
{
|
|
1418
1418
|
name: "王权增幅",
|
|
1419
|
-
effect: "攻击伤害+
|
|
1419
|
+
effect: "攻击伤害+10%"
|
|
1420
1420
|
},
|
|
1421
1421
|
{
|
|
1422
1422
|
name: "金柚赐福",
|
|
@@ -1431,7 +1431,7 @@ var wishConfig = {
|
|
|
1431
1431
|
rare: [
|
|
1432
1432
|
{
|
|
1433
1433
|
name: "悲鸣之锋",
|
|
1434
|
-
effect: "
|
|
1434
|
+
effect: "攻击伤害+10% (武器等级0),每级武器等级额外+10%"
|
|
1435
1435
|
},
|
|
1436
1436
|
{
|
|
1437
1437
|
name: "精灵双倍",
|
|
@@ -1607,8 +1607,8 @@ async function calculateWishAdditive(ctx, handle, weapon) {
|
|
|
1607
1607
|
endTime: { $gte: /* @__PURE__ */ new Date() }
|
|
1608
1608
|
});
|
|
1609
1609
|
if (sovereign) {
|
|
1610
|
-
value += 0.
|
|
1611
|
-
messages.push("👑 王权增幅:攻击伤害+
|
|
1610
|
+
value += 0.1;
|
|
1611
|
+
messages.push("👑 王权增幅:攻击伤害+10%");
|
|
1612
1612
|
}
|
|
1613
1613
|
const [lament] = await ctx.database.get("ggcevo_Wish_Record", {
|
|
1614
1614
|
handle,
|
|
@@ -2606,7 +2606,7 @@ var PassiveHandler = {
|
|
|
2606
2606
|
{ name: targetBoss.name },
|
|
2607
2607
|
{ Vulnerability: newLayers }
|
|
2608
2608
|
);
|
|
2609
|
-
messages.push(`☢️ ${targetBoss.name}获得1层"辐射"
|
|
2609
|
+
messages.push(`☢️ ${targetBoss.name}获得1层"辐射"`);
|
|
2610
2610
|
radiationApplied = true;
|
|
2611
2611
|
return {
|
|
2612
2612
|
messages,
|
|
@@ -2647,7 +2647,7 @@ var PassiveHandler = {
|
|
|
2647
2647
|
{ name: targetBoss.name },
|
|
2648
2648
|
{ freezing: newFreezing }
|
|
2649
2649
|
);
|
|
2650
|
-
messages.push(`❄️ ${targetBoss.name} 获得1层"寒冷"
|
|
2650
|
+
messages.push(`❄️ ${targetBoss.name} 获得1层"寒冷"`);
|
|
2651
2651
|
freezing = true;
|
|
2652
2652
|
return {
|
|
2653
2653
|
messages,
|
|
@@ -6245,10 +6245,10 @@ ${validTypes.join("、")}`;
|
|
|
6245
6245
|
}
|
|
6246
6246
|
const weaponSystemLevel = weaponTech?.level || 0;
|
|
6247
6247
|
if (weaponSystemLevel < 5) {
|
|
6248
|
-
return `❌ 购买传奇武器需要将武器系统升级到5
|
|
6248
|
+
return `❌ 购买传奇武器需要将武器系统升级到5级(当前等级:${weaponSystemLevel})。`;
|
|
6249
6249
|
}
|
|
6250
6250
|
if (!careerData2.career || !["情报副官", "武器中士"].includes(careerData2.career)) {
|
|
6251
|
-
return `❌ 购买传奇武器需要成为"情报副官"或"武器中士"
|
|
6251
|
+
return `❌ 购买传奇武器需要成为"情报副官"或"武器中士"(当前职业:${careerData2.career || "无"})。`;
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
6254
|
const [signInfo] = await ctx.database.get("ggcevo_sign", { handle });
|
|
@@ -6343,17 +6343,20 @@ ${validTypes.join("、")}`;
|
|
|
6343
6343
|
});
|
|
6344
6344
|
let message = `✅ 成功购买${isWeapon ? "武器" : "物品"}「${item}」
|
|
6345
6345
|
`;
|
|
6346
|
-
message += `花费 ${actualPrice} 金币`;
|
|
6347
6346
|
if (isLegendaryWeapon) {
|
|
6347
|
+
message += `花费 ${actualPrice} 金币`;
|
|
6348
6348
|
const [permissions] = await ctx.database.get("ggcevo_purchasepermissions", { handle });
|
|
6349
6349
|
message += `
|
|
6350
6350
|
扣除 1 次传奇武器购买权限,剩余次数:${permissions?.legendarypermissions || 0}`;
|
|
6351
|
-
} else
|
|
6352
|
-
|
|
6351
|
+
} else {
|
|
6352
|
+
if (discountDetails.length > 0) {
|
|
6353
|
+
message += `花费 ${actualPrice} 金币 (原价${config2.price} 金币)`;
|
|
6354
|
+
message += `
|
|
6353
6355
|
💰 折扣明细:
|
|
6354
6356
|
▸ ${discountDetails.join("\n▸ ")}`;
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
+
} else {
|
|
6358
|
+
message += `花费 ${actualPrice} 金币`;
|
|
6359
|
+
}
|
|
6357
6360
|
}
|
|
6358
6361
|
if (isWeapon) {
|
|
6359
6362
|
if (isAutoEquipped) {
|
package/lib/wish.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const wishConfig: {
|
|
2
2
|
readonly common: readonly [{
|
|
3
3
|
readonly name: "蚱蜢优购";
|
|
4
|
-
readonly effect: "
|
|
4
|
+
readonly effect: "下一次购买武器(非传奇)享有20%的折扣";
|
|
5
5
|
}, {
|
|
6
6
|
readonly name: "灵狐升运";
|
|
7
7
|
readonly effect: "下一次升级武器享有20%的折扣";
|
|
8
8
|
}, {
|
|
9
9
|
readonly name: "王权增幅";
|
|
10
|
-
readonly effect: "攻击伤害+
|
|
10
|
+
readonly effect: "攻击伤害+10%";
|
|
11
11
|
}, {
|
|
12
12
|
readonly name: "金柚赐福";
|
|
13
13
|
readonly effect: "立即获得250枚金币";
|
|
@@ -17,7 +17,7 @@ export declare const wishConfig: {
|
|
|
17
17
|
}];
|
|
18
18
|
readonly rare: readonly [{
|
|
19
19
|
readonly name: "悲鸣之锋";
|
|
20
|
-
readonly effect: "
|
|
20
|
+
readonly effect: "攻击伤害+10% (武器等级0),每级武器等级额外+10%";
|
|
21
21
|
}, {
|
|
22
22
|
readonly name: "精灵双倍";
|
|
23
23
|
readonly effect: "下一次击败主宰时可获得双倍的金币和咕咕币奖励";
|