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.
- package/lib/index.js +13 -11
- 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
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
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 "⛏️
|
|
5679
|
+
return "⛏️ 首次挖矿作业已开始,请至少等待1小时后可收获。";
|
|
5678
5680
|
}
|
|
5679
5681
|
const nowtime = /* @__PURE__ */ new Date();
|
|
5680
5682
|
const chinaStart = convertUTCtoChinaTime(record.startTime);
|