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.
- package/lib/index.js +20 -18
- 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: "
|
|
873
|
-
requirements: "
|
|
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 = "⚔️ 职业加成:猩红杀手(
|
|
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 ? "" : "
|
|
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
|
-
|
|
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);
|
|
@@ -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
|
-
`💡
|
|
5694
|
+
`💡 提示:本轮挖矿1小时后才可收获并自动开始下一轮挖矿`
|
|
5693
5695
|
].join("\n");
|
|
5694
5696
|
}
|
|
5695
5697
|
const halfHours = Math.floor(duration / 30);
|