koishi-plugin-ggcevo-game 1.3.33 → 1.3.34

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 +13 -11
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -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);
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.34",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [