koishi-plugin-ggcevo-game 1.6.77 → 1.6.78
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 +19 -14
- package/lib/items.d.ts +25 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -714,7 +714,12 @@ var initDefaultItems = {
|
|
|
714
714
|
"🥈S2赛季亚军勋章": { id: 112, type: "勋章", description: "" },
|
|
715
715
|
"🥉S2赛季季军勋章": { id: 113, type: "勋章", description: "" },
|
|
716
716
|
"🏅S2赛季前十勋章": { id: 114, type: "勋章", description: "" },
|
|
717
|
-
"🎖S2赛季前二十勋章": { id: 115, type: "勋章", description: "" }
|
|
717
|
+
"🎖S2赛季前二十勋章": { id: 115, type: "勋章", description: "" },
|
|
718
|
+
"🥇S3赛季冠军勋章": { id: 116, type: "勋章", description: "" },
|
|
719
|
+
"🥈S3赛季亚军勋章": { id: 117, type: "勋章", description: "" },
|
|
720
|
+
"🥉S3赛季季军勋章": { id: 118, type: "勋章", description: "" },
|
|
721
|
+
"🏅S3赛季前十勋章": { id: 119, type: "勋章", description: "" },
|
|
722
|
+
"🎖S3赛季前二十勋章": { id: 120, type: "勋章", description: "" }
|
|
718
723
|
};
|
|
719
724
|
var itemConfig = {
|
|
720
725
|
"拾荒者": { quality: "t3", type: "皮肤", cost: 3, quantity: 8, isLimited: false },
|
|
@@ -8650,12 +8655,12 @@ ${ticketMessage}${effectMessage}`;
|
|
|
8650
8655
|
for (const [index, player] of rankedPlayers.entries()) {
|
|
8651
8656
|
const rank = index + 1;
|
|
8652
8657
|
const coins = getCoinsByRank(rank);
|
|
8653
|
-
await updateBackpack(player.handle,
|
|
8658
|
+
await updateBackpack(player.handle, 1, coins);
|
|
8654
8659
|
const medalType = getMedalType(rank);
|
|
8655
8660
|
const medalName = requiredMedals[medalType];
|
|
8656
8661
|
const medalId = initDefaultItems[medalName].id;
|
|
8657
8662
|
await updateBackpack(player.handle, medalId, 1);
|
|
8658
|
-
playerDetails.push(`✦ 第${rank}名:${player.
|
|
8663
|
+
playerDetails.push(`✦ 第${rank}名:${player.name} - ${coins}咕咕币 + ${medalName}`);
|
|
8659
8664
|
}
|
|
8660
8665
|
report += "🏆 精英玩家奖励:\n" + playerDetails.join("\n") + "\n\n";
|
|
8661
8666
|
const otherPlayers = await ctx.database.get("ggcevo_rank", {
|
|
@@ -8666,16 +8671,16 @@ ${ticketMessage}${effectMessage}`;
|
|
|
8666
8671
|
for (const player of otherPlayers) {
|
|
8667
8672
|
if (player.rank > 0) {
|
|
8668
8673
|
positiveCount++;
|
|
8669
|
-
await updateBackpack(player.handle,
|
|
8674
|
+
await updateBackpack(player.handle, 1, 20);
|
|
8670
8675
|
} else {
|
|
8671
8676
|
negativeCount++;
|
|
8672
|
-
await updateBackpack(player.handle,
|
|
8677
|
+
await updateBackpack(player.handle, 1, 10);
|
|
8673
8678
|
}
|
|
8674
8679
|
}
|
|
8675
8680
|
report += "🎉 参与奖励发放:\n";
|
|
8676
|
-
report += `✦ 积极玩家(分数>0):${positiveCount}人
|
|
8681
|
+
report += `✦ 积极玩家(分数>0):${positiveCount}人 x 20咕咕币
|
|
8677
8682
|
`;
|
|
8678
|
-
report += `✦ 奋斗玩家(分数≤0):${negativeCount}人
|
|
8683
|
+
report += `✦ 奋斗玩家(分数≤0):${negativeCount}人 x 10咕咕币
|
|
8679
8684
|
|
|
8680
8685
|
`;
|
|
8681
8686
|
report += `✅ 总计发放:
|
|
@@ -13164,18 +13169,18 @@ PK同玩家限战:1次/日
|
|
|
13164
13169
|
return `
|
|
13165
13170
|
🏆 赛季排名奖励规则:
|
|
13166
13171
|
🥇 第1名:
|
|
13167
|
-
100
|
|
13172
|
+
100 咕咕币 + 🥇 赛季冠军勋章
|
|
13168
13173
|
🥈 第2名:
|
|
13169
|
-
90
|
|
13174
|
+
90 咕咕币 + 🥈 赛季亚军勋章
|
|
13170
13175
|
🥉 第3名:
|
|
13171
|
-
80
|
|
13176
|
+
80 咕咕币 + 🥉 赛季季军勋章
|
|
13172
13177
|
🏅 第4-10名:
|
|
13173
|
-
60
|
|
13178
|
+
60 咕咕币 + 🏅 赛季前十勋章
|
|
13174
13179
|
🎖 第11-20名:
|
|
13175
|
-
40
|
|
13180
|
+
40 咕咕币 + 🎖 赛季前二十勋章
|
|
13176
13181
|
💝 参与奖励:
|
|
13177
|
-
▸ 所有积分 > 0 玩家:20
|
|
13178
|
-
▸ 所有积分 ≤ 0 玩家:10
|
|
13182
|
+
▸ 所有积分 > 0 玩家:20 咕咕币
|
|
13183
|
+
▸ 所有积分 ≤ 0 玩家:10 咕咕币
|
|
13179
13184
|
|
|
13180
13185
|
📦 勋章系统:
|
|
13181
13186
|
● 每个勋章对应专属成就
|
package/lib/items.d.ts
CHANGED
|
@@ -206,6 +206,31 @@ export declare const initDefaultItems: {
|
|
|
206
206
|
type: string;
|
|
207
207
|
description: string;
|
|
208
208
|
};
|
|
209
|
+
'\uD83E\uDD47S3\u8D5B\u5B63\u51A0\u519B\u52CB\u7AE0': {
|
|
210
|
+
id: number;
|
|
211
|
+
type: string;
|
|
212
|
+
description: string;
|
|
213
|
+
};
|
|
214
|
+
'\uD83E\uDD48S3\u8D5B\u5B63\u4E9A\u519B\u52CB\u7AE0': {
|
|
215
|
+
id: number;
|
|
216
|
+
type: string;
|
|
217
|
+
description: string;
|
|
218
|
+
};
|
|
219
|
+
'\uD83E\uDD49S3\u8D5B\u5B63\u5B63\u519B\u52CB\u7AE0': {
|
|
220
|
+
id: number;
|
|
221
|
+
type: string;
|
|
222
|
+
description: string;
|
|
223
|
+
};
|
|
224
|
+
'\uD83C\uDFC5S3\u8D5B\u5B63\u524D\u5341\u52CB\u7AE0': {
|
|
225
|
+
id: number;
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
};
|
|
229
|
+
'\uD83C\uDF96S3\u8D5B\u5B63\u524D\u4E8C\u5341\u52CB\u7AE0': {
|
|
230
|
+
id: number;
|
|
231
|
+
type: string;
|
|
232
|
+
description: string;
|
|
233
|
+
};
|
|
209
234
|
};
|
|
210
235
|
export declare const itemConfig: {
|
|
211
236
|
拾荒者: {
|