koishi-plugin-ggcevo-game 1.6.26 → 1.6.28
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 +10 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7201,6 +7201,10 @@ 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
|
+
for (const name2 in battleStatsMap) {
|
|
7205
|
+
const stats = battleStatsMap[name2];
|
|
7206
|
+
}
|
|
7207
|
+
Object.keys(battleStatsMap).forEach((key) => delete battleStatsMap[key]);
|
|
7204
7208
|
return {
|
|
7205
7209
|
initialDamage,
|
|
7206
7210
|
hasCrit: damageResult.hasCrit,
|
|
@@ -7681,6 +7685,7 @@ function apply(ctx, config) {
|
|
|
7681
7685
|
}
|
|
7682
7686
|
const now = /* @__PURE__ */ new Date();
|
|
7683
7687
|
const expiredGroups = await ctx.database.select("ggcevo_boss").where({
|
|
7688
|
+
type: "主宰",
|
|
7684
7689
|
respawnTime: { $gt: now },
|
|
7685
7690
|
// 修改为大于当前时间
|
|
7686
7691
|
isActive: false
|
|
@@ -7701,7 +7706,7 @@ function apply(ctx, config) {
|
|
|
7701
7706
|
);
|
|
7702
7707
|
const winMessages = [];
|
|
7703
7708
|
for (const winner of winners) {
|
|
7704
|
-
const prize = Math.floor(winner.amount *
|
|
7709
|
+
const prize = Math.floor(winner.amount * 10);
|
|
7705
7710
|
const [signInfo] = await ctx.database.get("ggcevo_sign", {
|
|
7706
7711
|
handle: winner.handle
|
|
7707
7712
|
});
|
|
@@ -12020,6 +12025,10 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12020
12025
|
if (await ctx.database.get("ggcevo_blacklist", { handle }).then((r) => r.length)) {
|
|
12021
12026
|
return "⛔ 您已被列入黑名单。";
|
|
12022
12027
|
}
|
|
12028
|
+
if (galaxyName) {
|
|
12029
|
+
const parsedUser = import_koishi.h.parse(galaxyName)[0];
|
|
12030
|
+
if (parsedUser && parsedUser.type === "at") return "禁止探索群友。";
|
|
12031
|
+
}
|
|
12023
12032
|
const [career] = await ctx.database.get("ggcevo_careers", { handle });
|
|
12024
12033
|
const careerName = career?.career;
|
|
12025
12034
|
const careerCoinBonus = careerName === "总工程师" ? 50 : 0;
|