koishi-plugin-ggcevo-game 1.4.25 → 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 CHANGED
@@ -1408,7 +1408,7 @@ var wishConfig = {
1408
1408
  common: [
1409
1409
  {
1410
1410
  name: "蚱蜢优购",
1411
- effect: "下一次购买武器享有20%的折扣"
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: "攻击伤害+5%"
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: "获得基于武器等级的伤害加成(0级为10%,每等级增加10%)"
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.05;
1611
- messages.push("👑 王权增幅:攻击伤害+5%");
1610
+ value += 0.1;
1611
+ messages.push("👑 王权增幅:攻击伤害+10%");
1612
1612
  }
1613
1613
  const [lament] = await ctx.database.get("ggcevo_Wish_Record", {
1614
1614
  handle,
@@ -6245,10 +6245,10 @@ ${validTypes.join("、")}`;
6245
6245
  }
6246
6246
  const weaponSystemLevel = weaponTech?.level || 0;
6247
6247
  if (weaponSystemLevel < 5) {
6248
- return `❌ 购买传奇武器需要将武器系统升级到5级(当前等级:${weaponSystemLevel})。`;
6248
+ return `❌ 购买传奇武器需要将武器系统升级到5级(当前等级:${weaponSystemLevel})。`;
6249
6249
  }
6250
6250
  if (!careerData2.career || !["情报副官", "武器中士"].includes(careerData2.career)) {
6251
- return `❌ 购买传奇武器需要成为"情报副官"或"武器中士"(当前职业:${careerData2.career || "无"})。`;
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 if (discountDetails.length > 0) {
6352
- message += `(原价${config2.price} 金币)
6351
+ } else {
6352
+ if (discountDetails.length > 0) {
6353
+ message += `花费 ${actualPrice} 金币 (原价${config2.price} 金币)`;
6354
+ message += `
6353
6355
  💰 折扣明细:
6354
6356
  ▸ ${discountDetails.join("\n▸ ")}`;
6355
- } else {
6356
- message += ` (原价${config2.price} 金币)`;
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: "下一次购买武器享有20%的折扣";
4
+ readonly effect: "下一次购买武器(非传奇)享有20%的折扣";
5
5
  }, {
6
6
  readonly name: "灵狐升运";
7
7
  readonly effect: "下一次升级武器享有20%的折扣";
8
8
  }, {
9
9
  readonly name: "王权增幅";
10
- readonly effect: "攻击伤害+5%";
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: "获得基于武器等级的伤害加成(0级为10%,每等级增加10%)";
20
+ readonly effect: "攻击伤害+10% (武器等级0),每级武器等级额外+10%";
21
21
  }, {
22
22
  readonly name: "精灵双倍";
23
23
  readonly effect: "下一次击败主宰时可获得双倍的金币和咕咕币奖励";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.4.25",
4
+ "version": "1.4.26",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [