koishi-plugin-ggcevo-game 1.6.48 → 1.6.50
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 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5508,7 +5508,7 @@ var ggcevoUpdates = [
|
|
|
5508
5508
|
- 调整了赛季奖励
|
|
5509
5509
|
- 削弱了传奇武器“MK-4激光步枪”和激光步枪的专属模块“棱镜超载核心”
|
|
5510
5510
|
- 新增机制,每次刷新主宰将会重置保底暴击计数
|
|
5511
|
-
-
|
|
5511
|
+
- 调整了祈愿“夜市赠礼”和“喵喵财源”效果
|
|
5512
5512
|
- 暂时禁用了“兑换赞助物品”指令
|
|
5513
5513
|
`.trim()
|
|
5514
5514
|
}
|
|
@@ -5951,6 +5951,13 @@ async function applyItemEffect(ctx, session, handle, itemConfig2, target) {
|
|
|
5951
5951
|
isActive: !isDefeated
|
|
5952
5952
|
}
|
|
5953
5953
|
);
|
|
5954
|
+
const [damageRecords] = await ctx.database.get("ggcevo_boss_damage", { handle });
|
|
5955
|
+
if (!damageRecords)
|
|
5956
|
+
return {
|
|
5957
|
+
success: false,
|
|
5958
|
+
message: "🚫 无法获取伤害记录,请先攻击一次。",
|
|
5959
|
+
isDefeated: false
|
|
5960
|
+
};
|
|
5954
5961
|
if (actualDamage > 0) {
|
|
5955
5962
|
await ctx.database.withTransaction(async () => {
|
|
5956
5963
|
const signRecords = await ctx.database.get("ggcevo_sign", { handle });
|
|
@@ -5958,7 +5965,6 @@ async function applyItemEffect(ctx, session, handle, itemConfig2, target) {
|
|
|
5958
5965
|
handle,
|
|
5959
5966
|
totalRewards: (signRecords[0]?.totalRewards || 0) + damage
|
|
5960
5967
|
}], ["handle"]);
|
|
5961
|
-
const [damageRecords] = await ctx.database.get("ggcevo_boss_damage", { handle });
|
|
5962
5968
|
await ctx.database.upsert("ggcevo_boss_damage", [{
|
|
5963
5969
|
handle,
|
|
5964
5970
|
playerName: session.username,
|
|
@@ -8123,7 +8129,7 @@ ${itemDetails.join("\n")}`;
|
|
|
8123
8129
|
let multiplier = 1;
|
|
8124
8130
|
if (meowEffect) {
|
|
8125
8131
|
multiplier = 2;
|
|
8126
|
-
messages.push("🐾 喵喵财源祈愿:金币×2
|
|
8132
|
+
messages.push("🐾 喵喵财源祈愿:金币×2");
|
|
8127
8133
|
}
|
|
8128
8134
|
const finalPoints = Math.round(baseFinalPoints * multiplier);
|
|
8129
8135
|
const finalTickets = Math.round(baseFinalTickets * multiplier);
|
|
@@ -12861,7 +12867,7 @@ PK同玩家限战:1次/日
|
|
|
12861
12867
|
🔮 稀有祈愿池(5%概率)
|
|
12862
12868
|
🗡️ 悲鸣之锋:攻击伤害提高10%,武器每等级提高5%伤害
|
|
12863
12869
|
🧚 精灵双倍:下一次击败主宰时可获得双倍的资源兑换券
|
|
12864
|
-
🐾
|
|
12870
|
+
🐾 喵喵财源:签到获得双倍的金币
|
|
12865
12871
|
🎵 暴击韵律:攻击暴击率提高20%
|
|
12866
12872
|
⚠️ 酥手空空:立即失去50枚金币(可触发彩蛋)
|
|
12867
12873
|
`.trim();
|