koishi-plugin-ggcevo-game 1.6.47 → 1.6.48

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
@@ -372,7 +372,7 @@ var weaponConfig = {
372
372
  damage: 80,
373
373
  armorDamageReduction: -1,
374
374
  description: "一件传奇武器",
375
- specialeffect: "暴击率提高25%;连续2次未暴击时,下次攻击必定暴击",
375
+ specialeffect: "暴击率提高25%;连续3次未暴击时,下次攻击必定暴击",
376
376
  price: 6400,
377
377
  redCrystalCost: 200,
378
378
  isantiair: true,
@@ -514,7 +514,7 @@ var modConfig = {
514
514
  },
515
515
  "棱镜超载核心": {
516
516
  cost: 2250,
517
- effect: "暴击率提升20%;连续3次未暴击时,下次攻击必定暴击",
517
+ effect: "暴击率提升20%;连续4次未暴击时,下次攻击必定暴击",
518
518
  exclusiveTo: "激光步枪",
519
519
  isExclusive: true,
520
520
  recyclable: false
@@ -5199,7 +5199,7 @@ var wishConfig = {
5199
5199
  },
5200
5200
  {
5201
5201
  name: "夜市赠礼",
5202
- effect: "立即获得5枚咕咕币"
5202
+ effect: "立即获得5张资源兑换券"
5203
5203
  }
5204
5204
  ],
5205
5205
  // 稀有祈愿(总概率 5 * 1=5%)
@@ -5499,6 +5499,18 @@ var ggcevoUpdates = [
5499
5499
  - 修改了竞猜ID为1项目的下注金额范围以及赔率
5500
5500
  - 禁用了辛迪加海盗转职“装甲兵”和“征募官”
5501
5501
  `.trim()
5502
+ },
5503
+ {
5504
+ version: "1.6.48",
5505
+ time: "2025-07-25",
5506
+ content: `
5507
+ - 调整了签到奖励
5508
+ - 调整了赛季奖励
5509
+ - 削弱了传奇武器“MK-4激光步枪”和激光步枪的专属模块“棱镜超载核心”
5510
+ - 新增机制,每次刷新主宰将会重置保底暴击计数
5511
+ - 调整了祈愿“​夜市赠礼”效果
5512
+ - 暂时禁用了“兑换赞助物品”指令
5513
+ `.trim()
5502
5514
  }
5503
5515
  ];
5504
5516
  function compareVersions(a, b) {
@@ -6407,13 +6419,13 @@ async function calculateCrit(ctx, handle, equippedWeapon, weaponName, careerData
6407
6419
  critSources: []
6408
6420
  };
6409
6421
  }
6410
- if (weaponName === "MK-4激光步枪" && pityCounter >= 2) {
6422
+ if (weaponName === "MK-4激光步枪" && pityCounter >= 3) {
6411
6423
  return {
6412
6424
  hasCrit: true,
6413
6425
  critSources: ["🔫 MK-4激光步枪:保底暴击"]
6414
6426
  };
6415
6427
  }
6416
- if (equippedWeapon.installedMods?.includes("棱镜超载核心") && modConfig["棱镜超载核心"]?.exclusiveTo === weaponName && pityCounter >= 3) {
6428
+ if (equippedWeapon.installedMods?.includes("棱镜超载核心") && modConfig["棱镜超载核心"]?.exclusiveTo === weaponName && pityCounter >= 4) {
6417
6429
  return {
6418
6430
  hasCrit: true,
6419
6431
  critSources: ["⚙️ 【棱镜超载核心】:保底暴击"]
@@ -7696,6 +7708,7 @@ function apply(ctx, config) {
7696
7708
  await ctx.database.remove("ggcevo_boss_damage", {});
7697
7709
  await ctx.database.remove("ggcevo_boss", {});
7698
7710
  await ctx.database.set("ggcevo_weapons", {}, { comboCount: 0 });
7711
+ await ctx.database.set("ggcevo_weapons", {}, { pityCounter: 0 });
7699
7712
  const newBossGroup = await activateNextBossGroup(ctx, currentGroupId);
7700
7713
  const nextBossName = newBossGroup.name;
7701
7714
  const guessingRecords = await ctx.database.get("ggcevo_guess", {
@@ -8068,12 +8081,6 @@ ${itemDetails.join("\n")}`;
8068
8081
  let totalBonus = 0;
8069
8082
  let baseTickets = 0;
8070
8083
  if (!config2.enablePlayRequirement || hasRecentPlay) {
8071
- if (monthlyDays < 7) baseTickets = 3;
8072
- else if (monthlyDays === 7) baseTickets = 4;
8073
- else if (monthlyDays === 14) baseTickets = 5;
8074
- else if (monthlyDays === 21) baseTickets = 6;
8075
- else if (monthlyDays === 28) baseTickets = 7;
8076
- else baseTickets = 3;
8077
8084
  }
8078
8085
  const basePoints = getRandomInt(50, 100);
8079
8086
  const [careerData] = await ctx.database.get("ggcevo_careers", { handle });
@@ -8519,12 +8526,12 @@ ${ticketMessage}${effectMessage}`;
8519
8526
  for (const [index, player] of rankedPlayers.entries()) {
8520
8527
  const rank = index + 1;
8521
8528
  const coins = getCoinsByRank(rank);
8522
- await updateBackpack(player.handle, 1, coins);
8529
+ await updateBackpack(player.handle, 8, coins);
8523
8530
  const medalType = getMedalType(rank);
8524
8531
  const medalName = requiredMedals[medalType];
8525
8532
  const medalId = initDefaultItems[medalName].id;
8526
8533
  await updateBackpack(player.handle, medalId, 1);
8527
- playerDetails.push(`✦ 第${rank}名:${player.handle} - ${coins}咕咕币 + ${medalName}`);
8534
+ playerDetails.push(`✦ 第${rank}名:${player.handle} - ${coins}资源兑换券 + ${medalName}`);
8528
8535
  }
8529
8536
  report += "🏆 精英玩家奖励:\n" + playerDetails.join("\n") + "\n\n";
8530
8537
  const otherPlayers = await ctx.database.get("ggcevo_rank", {
@@ -8535,16 +8542,16 @@ ${ticketMessage}${effectMessage}`;
8535
8542
  for (const player of otherPlayers) {
8536
8543
  if (player.rank > 0) {
8537
8544
  positiveCount++;
8538
- await updateBackpack(player.handle, 1, 20);
8545
+ await updateBackpack(player.handle, 8, 20);
8539
8546
  } else {
8540
8547
  negativeCount++;
8541
- await updateBackpack(player.handle, 1, 10);
8548
+ await updateBackpack(player.handle, 8, 10);
8542
8549
  }
8543
8550
  }
8544
8551
  report += "🎉 参与奖励发放:\n";
8545
- report += `✦ 积极玩家(分数>0):${positiveCount}人 × 20咕咕币
8552
+ report += `✦ 积极玩家(分数>0):${positiveCount}人 × 20资源兑换券
8546
8553
  `;
8547
- report += `✦ 奋斗玩家(分数≤0):${negativeCount}人 × 10咕咕币
8554
+ report += `✦ 奋斗玩家(分数≤0):${negativeCount}人 × 10资源兑换券
8548
8555
 
8549
8556
  `;
8550
8557
  report += `✅ 总计发放:
@@ -10645,6 +10652,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
10645
10652
  await ctx.database.remove("ggcevo_boss_damage", {});
10646
10653
  await ctx.database.remove("ggcevo_boss", {});
10647
10654
  await ctx.database.set("ggcevo_weapons", {}, { comboCount: 0 });
10655
+ await ctx.database.set("ggcevo_weapons", {}, { pityCounter: 0 });
10648
10656
  await ctx.database.create("ggcevo_boss", {
10649
10657
  name: bossConfig.main.name,
10650
10658
  type: "主宰",
@@ -10728,7 +10736,7 @@ ${testResult.passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
10728
10736
  const [backpack] = await ctx.database.get("ggcevo_backpack", { handle, itemId: 1 });
10729
10737
  await ctx.database.upsert("ggcevo_backpack", [{
10730
10738
  handle,
10731
- itemId: 1,
10739
+ itemId: 8,
10732
10740
  quantity: (backpack?.quantity || 0) + 5
10733
10741
  }]);
10734
10742
  break;
@@ -12756,20 +12764,11 @@ ${validBossNames.join("、")}`;
12756
12764
  });
12757
12765
  ctx.command("ggcevo/签到奖励").action(({}) => {
12758
12766
  return `
12759
- 签到咕咕币奖励:
12760
- 每天签到获得3枚咕咕币
12761
- 第7天签到获得4枚咕咕币
12762
- 第14天签到获得5枚咕咕币
12763
- 第21天签到获得6枚咕咕币
12764
- 第28天签到获得7枚咕咕币
12765
- --------------
12766
12767
  签到金币奖励:
12767
12768
  每天获得50-100金币
12768
12769
  --------------
12769
12770
  签到红晶奖励(辛迪加财务经理职业加成):
12770
12771
  每天签到获得5枚红晶
12771
- --------------
12772
- 注意:补签只能获得咕咕币
12773
12772
  `.trim();
12774
12773
  });
12775
12774
  ctx.command("ggcevo/pk规则").action(({}) => {
@@ -12857,7 +12856,7 @@ PK同玩家限战:1次/日
12857
12856
  🦊 ​​灵狐升运​​:下一次升级武器享有20%的折扣
12858
12857
  👑 ​​王权增幅​​:攻击伤害提高5%
12859
12858
  🍊 ​​金柚赐福​​:立即获得250枚金币
12860
- 🪙 ​​夜市赠礼​​:立即获得5枚咕咕币
12859
+ 🪙 ​​夜市赠礼​​:立即获得5张资源兑换券
12861
12860
 
12862
12861
  🔮 ​​稀有祈愿池(5%概率)​​
12863
12862
  🗡️ ​​悲鸣之锋​​:攻击伤害提高10%,武器每等级提高5%伤害
@@ -12871,18 +12870,18 @@ PK同玩家限战:1次/日
12871
12870
  return `
12872
12871
  🏆 赛季排名奖励规则:
12873
12872
  🥇 第1名:
12874
- 100 咕咕币 + 🥇 赛季冠军勋章
12873
+ 100 资源兑换券 + 🥇 赛季冠军勋章
12875
12874
  🥈 第2名:
12876
- 90 咕咕币 + 🥈 赛季亚军勋章
12875
+ 90 资源兑换券 + 🥈 赛季亚军勋章
12877
12876
  🥉 第3名:
12878
- 80 咕咕币 + 🥉 赛季季军勋章
12877
+ 80 资源兑换券 + 🥉 赛季季军勋章
12879
12878
  🏅 第4-10名:
12880
- 60 咕咕币 + 🏅 赛季前十勋章
12879
+ 60 资源兑换券 + 🏅 赛季前十勋章
12881
12880
  🎖 第11-20名:
12882
- 40 咕咕币 + 🎖 赛季前二十勋章
12881
+ 40 资源兑换券 + 🎖 赛季前二十勋章
12883
12882
  💝 参与奖励:
12884
- ▸ 所有积分 > 0 玩家:20 咕咕币
12885
- ▸ 所有积分 ≤ 0 玩家:10 咕咕币
12883
+ ▸ 所有积分 > 0 玩家:20 资源兑换券
12884
+ ▸ 所有积分 ≤ 0 玩家:10 资源兑换券
12886
12885
 
12887
12886
  📦 勋章系统:
12888
12887
  ● 每个勋章对应专属成就
package/lib/wish.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare const wishConfig: {
13
13
  readonly effect: "立即获得250枚金币";
14
14
  }, {
15
15
  readonly name: "夜市赠礼";
16
- readonly effect: "立即获得5枚咕咕币";
16
+ readonly effect: "立即获得5张资源兑换券";
17
17
  }];
18
18
  readonly rare: readonly [{
19
19
  readonly name: "悲鸣之锋";
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.6.47",
4
+ "version": "1.6.48",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [