koishi-plugin-ggcevo-game 1.3.33 → 1.3.35

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.
Files changed (2) hide show
  1. package/lib/index.js +20 -18
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -382,7 +382,7 @@ function apply(ctx, config) {
382
382
  "重甲": 0.8
383
383
  }
384
384
  },
385
- "侦查步枪": {
385
+ "侦察步枪": {
386
386
  id: 7,
387
387
  type: "实弹武器",
388
388
  damage: 50,
@@ -869,8 +869,8 @@ function apply(ctx, config) {
869
869
  },
870
870
  {
871
871
  professionName: "猩红杀手",
872
- effect: "使用“侦查步枪”造成的伤害+15%; 解锁DSR-55反器材步枪(传奇)购买权限",
873
- requirements: "“侦查步枪”武器等级≥3",
872
+ effect: "使用“侦察步枪”造成的伤害+15%; 解锁DSR-55反器材步枪(传奇)购买权限",
873
+ requirements: "“侦察步枪”武器等级≥3",
874
874
  Jobtransfer: true,
875
875
  costcoins: 0,
876
876
  costredcrystal: 30
@@ -1182,7 +1182,7 @@ function apply(ctx, config) {
1182
1182
  if (careerData?.career === "猩红杀手") {
1183
1183
  if (weaponId === 7) {
1184
1184
  value += 0.15;
1185
- message = "⚔️ 职业加成:猩红杀手(侦查步枪伤害+15%)";
1185
+ message = "⚔️ 职业加成:猩红杀手(侦察步枪伤害+15%)";
1186
1186
  }
1187
1187
  }
1188
1188
  return { value, message };
@@ -2132,7 +2132,7 @@ function apply(ctx, config) {
2132
2132
  const scoutRifle = weapons.find((weapon) => weapon.weaponId === 7);
2133
2133
  return {
2134
2134
  success: !!scoutRifle,
2135
- message: scoutRifle ? "" : "需要“侦查步枪”武器等级≥3"
2135
+ message: scoutRifle ? "" : "需要“侦察步枪”武器等级≥3"
2136
2136
  };
2137
2137
  }
2138
2138
  ;
@@ -3482,7 +3482,7 @@ ${items.join("、")}
3482
3482
  queryConditions.season = currentSeason;
3483
3483
  }
3484
3484
  const globalRecords = await ctx.database.get("ggcevo_exchange", queryConditions);
3485
- if (globalRecords.length >= configname.quantity) return "该物品已被兑换完了。";
3485
+ if (globalRecords.length >= configname.quantity) return "该物品已被兑尽。(非限定物品可等待赛季更新后兑换)";
3486
3486
  }
3487
3487
  const qualityMap = { "t3": 4, "t2": 5, "t1": 6, "t0": 7 };
3488
3488
  const petItems = new Set(
@@ -4679,7 +4679,7 @@ ${validTypes.join("、")}`;
4679
4679
  let initialDamage = Math.min(damage, targetBoss.HP);
4680
4680
  let currentHP = targetBoss.HP - initialDamage;
4681
4681
  let passiveMessages = [];
4682
- let radiationApplied;
4682
+ let radiationApplied = false;
4683
4683
  const passiveResult = await PassiveHandler.handlePassives(
4684
4684
  ctx,
4685
4685
  targetBoss,
@@ -4713,15 +4713,17 @@ ${validTypes.join("、")}`;
4713
4713
  attackCount: (existingRecord?.attackCount || 0) + 1,
4714
4714
  lastattackDate: /* @__PURE__ */ new Date()
4715
4715
  }], ["handle"]);
4716
- const [RadiationRecord] = await ctx.database.get("ggcevo_task", {
4717
- handle,
4718
- taskId: 1
4719
- });
4720
- await ctx.database.upsert("ggcevo_task", [{
4721
- handle,
4722
- taskId: 1,
4723
- progress: (RadiationRecord?.progress || 0) + 1
4724
- }], ["handle"]);
4716
+ if (radiationApplied) {
4717
+ const [RadiationRecord] = await ctx.database.get("ggcevo_task", {
4718
+ handle,
4719
+ taskId: 1
4720
+ });
4721
+ await ctx.database.upsert("ggcevo_task", [{
4722
+ handle,
4723
+ taskId: 1,
4724
+ progress: (RadiationRecord?.progress || 0) + 1
4725
+ }], ["handle"]);
4726
+ }
4725
4727
  if (isDefeated) {
4726
4728
  if (targetBoss.type === "主宰") {
4727
4729
  await ctx.database.set(
@@ -5674,7 +5676,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
5674
5676
  startTime: /* @__PURE__ */ new Date()
5675
5677
  // 记录当前时间为开始时间
5676
5678
  });
5677
- return "⛏️ 首次挖矿作业已开始,等待至少1小时后可收获。";
5679
+ return "⛏️ 首次挖矿作业已开始,请至少等待1小时后才可收获。";
5678
5680
  }
5679
5681
  const nowtime = /* @__PURE__ */ new Date();
5680
5682
  const chinaStart = convertUTCtoChinaTime(record.startTime);
@@ -5689,7 +5691,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
5689
5691
  `🕒 开始时间:${record.startTime.toLocaleString("zh-CN", { hour12: false })}`,
5690
5692
  `⏱️ 当前时间:${nowtime.toLocaleString("zh-CN", { hour12: false })}`,
5691
5693
  `⏳ 还需等待:${remaining}分钟`,
5692
- `💡 提示:挖矿1小时后可随时收获并自动开始下一轮挖矿`
5694
+ `💡 提示:本轮挖矿1小时后才可收获并自动开始下一轮挖矿`
5693
5695
  ].join("\n");
5694
5696
  }
5695
5697
  const halfHours = Math.floor(duration / 30);
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.3.33",
4
+ "version": "1.3.35",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [