koishi-plugin-ggcevo-game 1.6.27 → 1.6.29
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 +9 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7201,6 +7201,7 @@ async function testAttackFunction(ctx, session, handle, config, equippedWeapon,
|
|
|
7201
7201
|
const ignoreReduction = await handleIgnoreReductionEffects(ctx, handle, weaponName, targetBoss);
|
|
7202
7202
|
const EffectProcessor = applyPassiveEffects(targetBoss, activeBosses, weaponName, damageResult.damage, damageResult.hasCrit, ignoreReduction.ignoreRate, careerData, equippedWeapon);
|
|
7203
7203
|
const initialDamage = EffectProcessor.finalDamage;
|
|
7204
|
+
Object.keys(battleStatsMap).forEach((key) => delete battleStatsMap[key]);
|
|
7204
7205
|
return {
|
|
7205
7206
|
initialDamage,
|
|
7206
7207
|
hasCrit: damageResult.hasCrit,
|
|
@@ -7681,8 +7682,9 @@ function apply(ctx, config) {
|
|
|
7681
7682
|
}
|
|
7682
7683
|
const now = /* @__PURE__ */ new Date();
|
|
7683
7684
|
const expiredGroups = await ctx.database.select("ggcevo_boss").where({
|
|
7684
|
-
|
|
7685
|
-
|
|
7685
|
+
type: "主宰",
|
|
7686
|
+
respawnTime: { $lte: now },
|
|
7687
|
+
// 修改为小于等于当前时间
|
|
7686
7688
|
isActive: false
|
|
7687
7689
|
}).execute();
|
|
7688
7690
|
for (const group of expiredGroups) {
|
|
@@ -7701,7 +7703,7 @@ function apply(ctx, config) {
|
|
|
7701
7703
|
);
|
|
7702
7704
|
const winMessages = [];
|
|
7703
7705
|
for (const winner of winners) {
|
|
7704
|
-
const prize = Math.floor(winner.amount *
|
|
7706
|
+
const prize = Math.floor(winner.amount * 10);
|
|
7705
7707
|
const [signInfo] = await ctx.database.get("ggcevo_sign", {
|
|
7706
7708
|
handle: winner.handle
|
|
7707
7709
|
});
|
|
@@ -12020,8 +12022,10 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12020
12022
|
if (await ctx.database.get("ggcevo_blacklist", { handle }).then((r) => r.length)) {
|
|
12021
12023
|
return "⛔ 您已被列入黑名单。";
|
|
12022
12024
|
}
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
+
if (galaxyName) {
|
|
12026
|
+
const parsedUser = import_koishi.h.parse(galaxyName)[0];
|
|
12027
|
+
if (parsedUser && parsedUser.type === "at") return "禁止探索群友。";
|
|
12028
|
+
}
|
|
12025
12029
|
const [career] = await ctx.database.get("ggcevo_careers", { handle });
|
|
12026
12030
|
const careerName = career?.career;
|
|
12027
12031
|
const careerCoinBonus = careerName === "总工程师" ? 50 : 0;
|