@opfr/services 0.49.6 → 0.49.8
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/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Schema as p, models as b, model as w, connect as
|
|
2
|
-
import { randomBetween as et, range as
|
|
3
|
-
import { seedEquipment as
|
|
4
|
-
import { RANKS as n, getCurrentLevel as g, getCurrentCrewLevel as ee, CHARACTERISTICS as
|
|
1
|
+
import { Schema as p, models as b, model as w, connect as Ua, Types as Ba } from "mongoose";
|
|
2
|
+
import { randomBetween as et, range as va, mergeObjects as Me, recordToArray as ve, filterNullAndUndefined as tt, isFunction as Je, formatNumber as re, sameDay as A, yesterday as ke, unique as Ce, hasExpire as q, exclude as ie } from "@opfr/utils-lang";
|
|
3
|
+
import { seedEquipment as ka, findEntity as at, isBackgroundItem as Ca, isTitleItem as $a, isChestItem as Oa, isBoostItem as Sa, isRepairItem as Ra, isStoreItem as Ea, isObjectItem as Fa, isEquipment as Aa, isBottleItem as Da, EQUIPMENT_SLOT as st, fromDBToEquipableEquipment as nt, allPanoplies as rt, getPanoplyBonus as ce, findEquipment as Ia, isScrollItem as Ta, isCookedMeal as Qa, transformToDBBuff as Pa, isEquipmentId as K, getAllItemsLimit as it } from "@opfr/items";
|
|
4
|
+
import { RANKS as n, getCurrentLevel as g, getCurrentCrewLevel as ee, CHARACTERISTICS as Na, HP_PER_VITALITY as ja, DEFAULT_MAX_HP as qa, DEFAULT_FACTION as La } from "@opfr/utils-type";
|
|
5
5
|
import { getComputedCharacteristicValue as m } from "@opfr/raids";
|
|
6
6
|
import * as lt from "events";
|
|
7
|
-
import
|
|
8
|
-
import { BadgeList as o, progressiveBadgeTypeGuard as $e, factionTitleList as
|
|
7
|
+
import Ha from "events";
|
|
8
|
+
import { BadgeList as o, progressiveBadgeTypeGuard as $e, factionTitleList as Ga, questTitles as c, profileAssets as Oe } from "@opfr/ornaments";
|
|
9
9
|
import { CanvasOrigin as X, nextAllToXAxis as F } from "@opfr/canvas";
|
|
10
10
|
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
11
|
__proto__: null,
|
|
@@ -80,16 +80,16 @@ const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
80
80
|
});
|
|
81
81
|
Re.index({ bannedUserId: 1 });
|
|
82
82
|
Re.index({ unbannedTimestamp: 1 });
|
|
83
|
-
const te = b?.Bans || w("Bans", Re),
|
|
83
|
+
const te = b?.Bans || w("Bans", Re), Ya = async () => await te.find({
|
|
84
84
|
unbannedTimestamp: { $lte: /* @__PURE__ */ new Date(), $ne: null }
|
|
85
85
|
}), Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
86
|
__proto__: null,
|
|
87
|
-
getUnbanUsers:
|
|
87
|
+
getUnbanUsers: Ya
|
|
88
88
|
}, Symbol.toStringTag, { value: "Module" })), Bu = async (t) => await te.create({
|
|
89
89
|
...t
|
|
90
90
|
}), vu = async (t) => await te.findOne({ bannedUserId: t }), ku = async (t) => {
|
|
91
91
|
await te.deleteOne({ bannedUserId: t });
|
|
92
|
-
}, Cu = (t) => te.exists({ bannedUserId: t }),
|
|
92
|
+
}, Cu = (t) => te.exists({ bannedUserId: t }), za = new p({
|
|
93
93
|
betOwner: String,
|
|
94
94
|
betId: Number,
|
|
95
95
|
channelId: String,
|
|
@@ -110,7 +110,7 @@ const te = b?.Bans || w("Bans", Re), za = async () => await te.find({
|
|
|
110
110
|
],
|
|
111
111
|
default: []
|
|
112
112
|
}
|
|
113
|
-
}), ot = b?.Bets || w("Bets",
|
|
113
|
+
}), ot = b?.Bets || w("Bets", za), $u = async (t, e = {}) => {
|
|
114
114
|
const a = await ot.findById(t, e);
|
|
115
115
|
return a || null;
|
|
116
116
|
}, Ou = async (t) => await ot.create({
|
|
@@ -136,7 +136,7 @@ const Ee = b?.Invitations || w("Invitations", ct), Su = async (t) => {
|
|
|
136
136
|
await Ee.deleteMany({
|
|
137
137
|
...t
|
|
138
138
|
});
|
|
139
|
-
},
|
|
139
|
+
}, Va = new p({
|
|
140
140
|
guildId: { type: String, required: !0, unique: !0 },
|
|
141
141
|
suggestionChannelId: { type: String, default: null },
|
|
142
142
|
reportChannelId: { type: String, default: null },
|
|
@@ -180,80 +180,80 @@ const Ee = b?.Invitations || w("Invitations", ct), Su = async (t) => {
|
|
|
180
180
|
},
|
|
181
181
|
shopChannelId: { type: String, default: null },
|
|
182
182
|
blackMarketChannelId: { type: String, default: null }
|
|
183
|
-
}), Fe = b?.Settings || w("Settings",
|
|
183
|
+
}), Fe = b?.Settings || w("Settings", Va), x = async (t, e, a = !1) => {
|
|
184
184
|
await Fe.updateOne({ guildId: t }, e, { upsert: a });
|
|
185
|
-
},
|
|
185
|
+
}, Wa = async (t, e) => {
|
|
186
186
|
await x(t, {
|
|
187
187
|
$set: { suggestionChannelId: e }
|
|
188
188
|
});
|
|
189
|
-
},
|
|
189
|
+
}, Xa = async (t, e) => {
|
|
190
190
|
await x(t, {
|
|
191
191
|
$set: { reportChannelId: e }
|
|
192
192
|
});
|
|
193
|
-
},
|
|
193
|
+
}, Ja = async (t, e) => {
|
|
194
194
|
await x(t, {
|
|
195
195
|
$set: { reportModeratorChannelId: e }
|
|
196
196
|
});
|
|
197
|
-
},
|
|
197
|
+
}, Za = async (t, e) => {
|
|
198
198
|
await x(t, {
|
|
199
199
|
$set: { factionChannelId: e }
|
|
200
200
|
});
|
|
201
|
-
},
|
|
201
|
+
}, Ka = async (t, e) => {
|
|
202
202
|
await x(t, {
|
|
203
203
|
$set: { "edito.channelId": e }
|
|
204
204
|
});
|
|
205
|
-
},
|
|
205
|
+
}, es = async (t) => {
|
|
206
206
|
const e = et(100, 1001);
|
|
207
207
|
return await x(t, {
|
|
208
208
|
$set: { "edito.price": e }
|
|
209
209
|
}), e;
|
|
210
|
-
},
|
|
210
|
+
}, ts = async (t, e) => {
|
|
211
211
|
await x(t, {
|
|
212
212
|
$set: { "edito.sentAtMidnight": e }
|
|
213
213
|
});
|
|
214
|
-
},
|
|
214
|
+
}, as = async (t, e) => {
|
|
215
215
|
await x(t, {
|
|
216
216
|
$set: { "edito.messageId": e }
|
|
217
217
|
});
|
|
218
|
-
},
|
|
218
|
+
}, ss = async (t, e) => {
|
|
219
219
|
await x(t, {
|
|
220
220
|
$set: { discussionChannelId: e }
|
|
221
221
|
});
|
|
222
|
-
},
|
|
222
|
+
}, ns = async (t, e) => {
|
|
223
223
|
await x(t, {
|
|
224
224
|
$set: { questFallbackChannelId: e }
|
|
225
225
|
});
|
|
226
|
-
},
|
|
226
|
+
}, rs = async (t, e) => {
|
|
227
227
|
await x(t, {
|
|
228
228
|
$set: { "ranking.channelId": e }
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, is = async (t, e) => {
|
|
231
231
|
await x(t, {
|
|
232
232
|
$set: { "ranking.messageId": e }
|
|
233
233
|
});
|
|
234
|
-
},
|
|
234
|
+
}, ls = async (t, e, a) => {
|
|
235
235
|
await x(t, {
|
|
236
236
|
$set: { shopChannelId: e, blackMarketChannelId: a }
|
|
237
237
|
});
|
|
238
|
-
},
|
|
238
|
+
}, os = async (t, e) => {
|
|
239
239
|
await x(t, {
|
|
240
240
|
$set: { reportBugChannelId: e }
|
|
241
241
|
});
|
|
242
|
-
},
|
|
242
|
+
}, cs = async (t, e) => {
|
|
243
243
|
await x(t, {
|
|
244
244
|
$set: { "crew.infoChannelId": e }
|
|
245
245
|
});
|
|
246
|
-
},
|
|
246
|
+
}, ds = async (t, e, a) => {
|
|
247
247
|
await x(t, {
|
|
248
248
|
$push: { "crew.crewChannelIds": { channelId: a, crewId: e } }
|
|
249
249
|
});
|
|
250
|
-
},
|
|
250
|
+
}, us = async (t, e) => {
|
|
251
251
|
await x(t, {
|
|
252
252
|
$set: Object.fromEntries(
|
|
253
253
|
Object.entries(e).map(([a, s]) => [`roles.${a}`, s])
|
|
254
254
|
)
|
|
255
255
|
});
|
|
256
|
-
},
|
|
256
|
+
}, ps = async (t, e) => {
|
|
257
257
|
await x(t, {
|
|
258
258
|
$set: Object.fromEntries(
|
|
259
259
|
Object.entries(e).map(([a, s]) => [`channels.${a}`, s])
|
|
@@ -261,29 +261,29 @@ const Ee = b?.Invitations || w("Invitations", ct), Su = async (t) => {
|
|
|
261
261
|
});
|
|
262
262
|
}, Fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
263
263
|
__proto__: null,
|
|
264
|
-
addCrewChannelId:
|
|
265
|
-
randomizeEditoPrice:
|
|
266
|
-
sentAtMidnight:
|
|
267
|
-
setCrewInfoChannelId:
|
|
268
|
-
setDiscussionChannelId:
|
|
269
|
-
setEditoChannel:
|
|
270
|
-
setEditoMessageId:
|
|
271
|
-
setFactionChannel:
|
|
272
|
-
setQuestChannelId:
|
|
273
|
-
setRankingChannel:
|
|
274
|
-
setRankingMessage:
|
|
275
|
-
setReportBugChannelId:
|
|
276
|
-
setReportChannel:
|
|
277
|
-
setReportModeratorChannel:
|
|
278
|
-
setShopChannelId:
|
|
279
|
-
setSuggestionChannel:
|
|
280
|
-
updateChannelId:
|
|
281
|
-
updateRolesId:
|
|
282
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
264
|
+
addCrewChannelId: ds,
|
|
265
|
+
randomizeEditoPrice: es,
|
|
266
|
+
sentAtMidnight: ts,
|
|
267
|
+
setCrewInfoChannelId: cs,
|
|
268
|
+
setDiscussionChannelId: ss,
|
|
269
|
+
setEditoChannel: Ka,
|
|
270
|
+
setEditoMessageId: as,
|
|
271
|
+
setFactionChannel: Za,
|
|
272
|
+
setQuestChannelId: ns,
|
|
273
|
+
setRankingChannel: rs,
|
|
274
|
+
setRankingMessage: is,
|
|
275
|
+
setReportBugChannelId: os,
|
|
276
|
+
setReportChannel: Xa,
|
|
277
|
+
setReportModeratorChannel: Ja,
|
|
278
|
+
setShopChannelId: ls,
|
|
279
|
+
setSuggestionChannel: Wa,
|
|
280
|
+
updateChannelId: ps,
|
|
281
|
+
updateRolesId: us
|
|
282
|
+
}, Symbol.toStringTag, { value: "Module" })), fs = async (t) => await Fe.create({
|
|
283
283
|
guildId: t
|
|
284
284
|
}), Au = async (t, e = {}) => {
|
|
285
285
|
const a = await Fe.findOne({ guildId: t }, e);
|
|
286
|
-
return a ||
|
|
286
|
+
return a || fs(t);
|
|
287
287
|
};
|
|
288
288
|
class $ {
|
|
289
289
|
constructor() {
|
|
@@ -305,7 +305,7 @@ class $ {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
async onBuy(e, a) {
|
|
308
|
-
this.currency === "berry" ? (await
|
|
308
|
+
this.currency === "berry" ? (await Dt(e, -1 * this.price * a), await St(
|
|
309
309
|
e,
|
|
310
310
|
this.price * a
|
|
311
311
|
)) : await Q(
|
|
@@ -342,7 +342,7 @@ class $ {
|
|
|
342
342
|
return !1;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
class
|
|
345
|
+
class ms extends $ {
|
|
346
346
|
constructor({
|
|
347
347
|
name: e,
|
|
348
348
|
price: a,
|
|
@@ -353,13 +353,13 @@ class ys extends $ {
|
|
|
353
353
|
super(), this.name = e, this.data = s, this.price = a, this.size = i, this.currency = l;
|
|
354
354
|
}
|
|
355
355
|
async onBuy(e, a) {
|
|
356
|
-
await super.onBuy(e, a), await
|
|
356
|
+
await super.onBuy(e, a), await Zt(e, this.data.background.id);
|
|
357
357
|
}
|
|
358
358
|
isBackground() {
|
|
359
359
|
return !0;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
class
|
|
362
|
+
class ys extends $ {
|
|
363
363
|
constructor({
|
|
364
364
|
name: e,
|
|
365
365
|
price: a,
|
|
@@ -376,7 +376,7 @@ class gs extends $ {
|
|
|
376
376
|
return !0;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class gs extends $ {
|
|
380
380
|
constructor({
|
|
381
381
|
name: e,
|
|
382
382
|
price: a,
|
|
@@ -393,7 +393,7 @@ class bs extends $ {
|
|
|
393
393
|
return !0;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class bs extends $ {
|
|
397
397
|
constructor({
|
|
398
398
|
name: e,
|
|
399
399
|
price: a,
|
|
@@ -410,7 +410,7 @@ class ws extends $ {
|
|
|
410
410
|
return !0;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
class
|
|
413
|
+
class ws extends $ {
|
|
414
414
|
constructor({
|
|
415
415
|
name: e,
|
|
416
416
|
price: a,
|
|
@@ -423,8 +423,8 @@ class hs extends $ {
|
|
|
423
423
|
async onBuy(e, a) {
|
|
424
424
|
await super.onBuy(e, a), await qe(
|
|
425
425
|
e,
|
|
426
|
-
|
|
427
|
-
() =>
|
|
426
|
+
va({ stop: a }).map(
|
|
427
|
+
() => ka(
|
|
428
428
|
{ ...this.data },
|
|
429
429
|
Date.now() - Math.round(Math.random() * 1e3)
|
|
430
430
|
)
|
|
@@ -435,7 +435,7 @@ class hs extends $ {
|
|
|
435
435
|
return !0;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class hs extends $ {
|
|
439
439
|
constructor({
|
|
440
440
|
name: e,
|
|
441
441
|
price: a,
|
|
@@ -452,7 +452,7 @@ class _s extends $ {
|
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
class
|
|
455
|
+
class _s extends $ {
|
|
456
456
|
constructor({
|
|
457
457
|
name: e,
|
|
458
458
|
price: a,
|
|
@@ -469,7 +469,7 @@ class xs extends $ {
|
|
|
469
469
|
return !0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class xs extends $ {
|
|
473
473
|
constructor({
|
|
474
474
|
name: e,
|
|
475
475
|
price: a,
|
|
@@ -486,7 +486,7 @@ class Ms extends $ {
|
|
|
486
486
|
return !0;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
class
|
|
489
|
+
class Ms extends $ {
|
|
490
490
|
constructor({
|
|
491
491
|
name: e,
|
|
492
492
|
price: a,
|
|
@@ -507,26 +507,26 @@ const dt = (t, e) => {
|
|
|
507
507
|
const a = t.items.find((s) => s.entityId === e);
|
|
508
508
|
if (a) {
|
|
509
509
|
const { name: s, price: i, size: l, currency: d } = a, u = at(a.entityId);
|
|
510
|
+
if (Ca(u))
|
|
511
|
+
return new ms({ name: s, price: i, item: u, size: l, currency: d });
|
|
510
512
|
if ($a(u))
|
|
511
|
-
return new
|
|
513
|
+
return new Ms({ name: s, price: i, item: u, size: l, currency: d });
|
|
512
514
|
if (Oa(u))
|
|
513
|
-
return new
|
|
515
|
+
return new gs({ name: s, price: i, item: u, size: l, currency: d });
|
|
514
516
|
if (Sa(u))
|
|
515
|
-
return new
|
|
517
|
+
return new ys({ name: s, price: i, item: u, size: l, currency: d });
|
|
516
518
|
if (Ra(u))
|
|
517
|
-
return new
|
|
519
|
+
return new _s({ name: s, price: i, item: u, size: l, currency: d });
|
|
518
520
|
if (Ea(u))
|
|
519
521
|
return new xs({ name: s, price: i, item: u, size: l, currency: d });
|
|
520
522
|
if (Fa(u))
|
|
521
|
-
return new
|
|
523
|
+
return new bs({ name: s, price: i, item: u, size: l, currency: d });
|
|
522
524
|
if (Aa(u))
|
|
523
525
|
return new ws({ name: s, price: i, item: u, size: l, currency: d });
|
|
524
526
|
if (Da(u))
|
|
525
|
-
return new hs({ name: s, price: i,
|
|
526
|
-
if (Ia(u))
|
|
527
|
-
return new _s({ name: s, price: i, size: l, item: u, currency: d });
|
|
527
|
+
return new hs({ name: s, price: i, size: l, item: u, currency: d });
|
|
528
528
|
}
|
|
529
|
-
},
|
|
529
|
+
}, Us = (t) => {
|
|
530
530
|
const e = [];
|
|
531
531
|
for (const { entityId: a } of t.items) {
|
|
532
532
|
const s = dt(t, a);
|
|
@@ -536,8 +536,8 @@ const dt = (t, e) => {
|
|
|
536
536
|
}, Du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
537
537
|
__proto__: null,
|
|
538
538
|
getShopItem: dt,
|
|
539
|
-
getShopItemList:
|
|
540
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
539
|
+
getShopItemList: Us
|
|
540
|
+
}, Symbol.toStringTag, { value: "Module" })), Bs = new p(
|
|
541
541
|
{
|
|
542
542
|
shopType: { type: String, required: !0, unique: !0 },
|
|
543
543
|
publishedAt: { type: Date, default: /* @__PURE__ */ new Date() },
|
|
@@ -564,13 +564,11 @@ const dt = (t, e) => {
|
|
|
564
564
|
}
|
|
565
565
|
},
|
|
566
566
|
{ minimize: !1 }
|
|
567
|
-
)
|
|
568
|
-
ut
|
|
569
|
-
const Ae = b?.Shop || w("Shop", ut), vs = async (t, e) => {
|
|
570
|
-
await pt({ shopType: t }, e, !0);
|
|
567
|
+
), Ae = b?.Shop || w("Shop", Bs), vs = async (t, e) => {
|
|
568
|
+
await ut({ shopType: t }, e, !0);
|
|
571
569
|
}, De = async (t, e) => {
|
|
572
|
-
await
|
|
573
|
-
},
|
|
570
|
+
await ut({ _id: t }, e, !0);
|
|
571
|
+
}, ut = async (t, e, a = !1) => {
|
|
574
572
|
await Ae.updateOne(t, e, { upsert: a });
|
|
575
573
|
}, ks = async (t, e, a) => {
|
|
576
574
|
await De(t, {
|
|
@@ -635,14 +633,14 @@ const G = b?.Reminder || w("Reminder", Ie), As = async () => await G.find({ date
|
|
|
635
633
|
getAllPassedReminder: As
|
|
636
634
|
}, Symbol.toStringTag, { value: "Module" })), Ds = async (t, e) => {
|
|
637
635
|
await G.deleteOne({ user: t, type: e });
|
|
638
|
-
},
|
|
636
|
+
}, pt = async (t, e, a, s) => {
|
|
639
637
|
await G.updateOne({ user: t, type: e }, a, {
|
|
640
638
|
upsert: s
|
|
641
639
|
});
|
|
642
640
|
}, Te = async (t, e, a) => {
|
|
643
|
-
await
|
|
641
|
+
await pt(t, e, { $set: { date: a } }, !0);
|
|
644
642
|
}, Ue = async (t, e, a) => {
|
|
645
|
-
await
|
|
643
|
+
await pt(
|
|
646
644
|
t,
|
|
647
645
|
e,
|
|
648
646
|
[
|
|
@@ -775,11 +773,11 @@ const G = b?.Reminder || w("Reminder", Ie), As = async () => await G.find({ date
|
|
|
775
773
|
}, Gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
776
774
|
__proto__: null,
|
|
777
775
|
addItem: ue
|
|
778
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
776
|
+
}, Symbol.toStringTag, { value: "Module" })), ft = async (t) => await de.create({
|
|
779
777
|
user: t
|
|
780
778
|
}), Yu = async (t) => {
|
|
781
779
|
const e = await de.findOne({ user: t });
|
|
782
|
-
return e || await
|
|
780
|
+
return e || await ft(t);
|
|
783
781
|
}, en = [
|
|
784
782
|
"crewUpdate",
|
|
785
783
|
"crewQuestUpdate",
|
|
@@ -791,11 +789,11 @@ const G = b?.Reminder || w("Reminder", Ie), As = async () => await G.find({ date
|
|
|
791
789
|
"userDaily",
|
|
792
790
|
"crewDaily",
|
|
793
791
|
"userChristmasUpdate"
|
|
794
|
-
],
|
|
795
|
-
|
|
792
|
+
], mt = new lt.EventEmitter(), R = (t, e, a) => {
|
|
793
|
+
mt.emit(t, e, a);
|
|
796
794
|
}, zu = (t) => {
|
|
797
795
|
for (const e of en)
|
|
798
|
-
|
|
796
|
+
mt.on(e, (a, s) => {
|
|
799
797
|
t(e, a, s);
|
|
800
798
|
});
|
|
801
799
|
};
|
|
@@ -815,7 +813,7 @@ class r {
|
|
|
815
813
|
_userMeta: i,
|
|
816
814
|
_userInventory: l
|
|
817
815
|
}) => {
|
|
818
|
-
const d = a ?? await
|
|
816
|
+
const d = a ?? await oa(e);
|
|
819
817
|
if (this.isCompleted(d) && !this.repeatable)
|
|
820
818
|
return null;
|
|
821
819
|
const u = i ?? await pe(e), y = s ?? await Xc(e), U = l ?? await z(e);
|
|
@@ -828,21 +826,21 @@ class r {
|
|
|
828
826
|
return this.title && await ze(
|
|
829
827
|
e.user._id,
|
|
830
828
|
this.title.name
|
|
831
|
-
), this.badge && (this.crew && s ? await
|
|
829
|
+
), this.badge && (this.crew && s ? await ya(
|
|
832
830
|
s.crew._id,
|
|
833
831
|
this.badge,
|
|
834
832
|
this.rank.id
|
|
835
|
-
) : await
|
|
833
|
+
) : await Kt(
|
|
836
834
|
e.user._id,
|
|
837
835
|
this.badge,
|
|
838
836
|
this.rank.id
|
|
839
|
-
)), this.isFactionBadge && await
|
|
837
|
+
)), this.isFactionBadge && await ea(
|
|
840
838
|
e.user._id,
|
|
841
839
|
this.rank.id
|
|
842
|
-
), this.asset && await
|
|
840
|
+
), this.asset && await ta(
|
|
843
841
|
e.user._id,
|
|
844
842
|
this.asset
|
|
845
|
-
), this.chest && await
|
|
843
|
+
), this.chest && await qt(i.user._id, this.chest), this.getComputedRewards(a, e);
|
|
846
844
|
}
|
|
847
845
|
getComputedRewards = (e, a) => {
|
|
848
846
|
const s = this.daily && Pe(a) ? Ne(a) : 1;
|
|
@@ -852,25 +850,25 @@ class r {
|
|
|
852
850
|
};
|
|
853
851
|
};
|
|
854
852
|
async specificQuestCompletion(e, a) {
|
|
855
|
-
this.id === "daily_all" && (await
|
|
853
|
+
this.id === "daily_all" && (await ia(
|
|
856
854
|
e.user._id,
|
|
857
855
|
e.lastFullComplete
|
|
858
856
|
), a && await this.markCrewDailyAsCompleted(
|
|
859
857
|
a.crew._id,
|
|
860
858
|
e.user._id
|
|
861
|
-
)), this.id === "be_level_10" && await
|
|
859
|
+
)), this.id === "be_level_10" && await ua(e.user._id, !0), this.id !== "be_level_10" && this.id.startsWith("be_level_") && await pa(e.user._id, !0), this.id === "crew_all_members_daily" && a && await Wt(e.user._id);
|
|
862
860
|
}
|
|
863
861
|
isCompleted(e) {
|
|
864
|
-
return this.daily ?
|
|
862
|
+
return this.daily ? wt(e, this.id) : gt(e, this.id);
|
|
865
863
|
}
|
|
866
864
|
async markAsCompleted(e) {
|
|
867
|
-
this.daily ? await
|
|
865
|
+
this.daily ? await ra(e.user._id, this.id) : await na(e.user._id, this.id);
|
|
868
866
|
}
|
|
869
867
|
async markCrewAsCompleted(e) {
|
|
870
|
-
await
|
|
868
|
+
await wa(e, this.id);
|
|
871
869
|
}
|
|
872
870
|
async markCrewDailyAsCompleted(e, a) {
|
|
873
|
-
await
|
|
871
|
+
await ha(
|
|
874
872
|
e,
|
|
875
873
|
a.toHexString(),
|
|
876
874
|
this.id
|
|
@@ -987,7 +985,7 @@ class cn extends r {
|
|
|
987
985
|
title = null;
|
|
988
986
|
daily = !1;
|
|
989
987
|
}
|
|
990
|
-
const
|
|
988
|
+
const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
991
989
|
__proto__: null,
|
|
992
990
|
Almanax: cn,
|
|
993
991
|
DailyAnswer: ln,
|
|
@@ -995,9 +993,9 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
995
993
|
DailyReadEdito: rn,
|
|
996
994
|
DailySendMessage: nn
|
|
997
995
|
}, Symbol.toStringTag, { value: "Module" })), Vu = async (t, e, a, { berry: s, xp: i }) => {
|
|
998
|
-
const l = await
|
|
996
|
+
const l = await oa(e).then(
|
|
999
997
|
(h) => h.populate("user", "faction")
|
|
1000
|
-
), d = Ne(l), u =
|
|
998
|
+
), d = Ne(l), u = _t(
|
|
1001
999
|
l,
|
|
1002
1000
|
l.user.faction
|
|
1003
1001
|
), {
|
|
@@ -1006,13 +1004,13 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1006
1004
|
title: T,
|
|
1007
1005
|
rank: j,
|
|
1008
1006
|
name: W,
|
|
1009
|
-
description:
|
|
1007
|
+
description: xa,
|
|
1010
1008
|
daily: ne,
|
|
1011
|
-
secret:
|
|
1009
|
+
secret: Ma
|
|
1012
1010
|
} = t;
|
|
1013
1011
|
return a.Image().setImageName(`quest_success_${j.id}`).setDimensions(2080, 636).draw(), y ? a.Image().setImageName(
|
|
1014
1012
|
$e(y) ? `cropped_badge_${y.img}_${j.id}` : `cropped_badge_${y.img}`
|
|
1015
|
-
).setOrigin(X.CENTER).setScale(2).setPosition(370, 318).draw() : U && l.user.faction !== "citizen" ? a.Image().setImageName(`cropped_badge_${l.user.faction}_${j.id}`).setOrigin(X.CENTER).setScale(2).setPosition(370, 318).draw() : a.Image().setImageName(`badge_default_${j.id}`).setScale(2).setOrigin(X.CENTER).setPosition(370, 318).draw(), a.Text(ne ? "QUÊTE JOURNALIÈRE TERMINÉE !" : "SUCCÈS DÉBLOQUÉ !").setPosition(739, 100).setFont("text", 70).setColor(j.color).draw(), a.Text(W).setPosition(739, 325).setOrigin(X.BOTTOM_LEFT).setFont("poppins", W.length >= 35 ? 65 - (W.length - 35) : 65).draw(), a.Text(
|
|
1013
|
+
).setOrigin(X.CENTER).setScale(2).setPosition(370, 318).draw() : U && l.user.faction !== "citizen" ? a.Image().setImageName(`cropped_badge_${l.user.faction}_${j.id}`).setOrigin(X.CENTER).setScale(2).setPosition(370, 318).draw() : a.Image().setImageName(`badge_default_${j.id}`).setScale(2).setOrigin(X.CENTER).setPosition(370, 318).draw(), a.Text(ne ? "QUÊTE JOURNALIÈRE TERMINÉE !" : "SUCCÈS DÉBLOQUÉ !").setPosition(739, 100).setFont("text", 70).setColor(j.color).draw(), a.Text(W).setPosition(739, 325).setOrigin(X.BOTTOM_LEFT).setFont("poppins", W.length >= 35 ? 65 - (W.length - 35) : 65).draw(), a.Text(Ma ? "Succès caché" : xa).setPosition(739, 360).setFont("poppins_italic", 35).draw(), a.Text(
|
|
1016
1014
|
`Récompenses: ${re(s)}${ne && d > 1 ? ` (+${re(s * (d - 1))})` : ""} `
|
|
1017
1015
|
).setPosition(739, 520).setFont("poppins", 35).setOrigin(X.LEFT).draw(s !== 0).next((h, M) => F(h.Image(), M)).setImageName("quest_berry").setDimensions(50, 79).draw(s !== 0).next(
|
|
1018
1016
|
(h, M) => F(
|
|
@@ -1067,7 +1065,7 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1067
1065
|
b_pirate_LEGENDARY: "<:Pirateplatine:1175507949578358804>",
|
|
1068
1066
|
b_pirate_MYTHIC: "<:Pirateultime:1175507951709061150>"
|
|
1069
1067
|
}
|
|
1070
|
-
},
|
|
1068
|
+
}, gt = (t, e) => t.completed.includes(e), bt = (t) => {
|
|
1071
1069
|
for (const e of Object.values(Se)) {
|
|
1072
1070
|
const a = new e();
|
|
1073
1071
|
if (a.repeatable && t === a.id)
|
|
@@ -1081,26 +1079,26 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1081
1079
|
return a.name;
|
|
1082
1080
|
}
|
|
1083
1081
|
return null;
|
|
1084
|
-
},
|
|
1082
|
+
}, wt = (t, e) => {
|
|
1085
1083
|
const a = t.daily[e];
|
|
1086
1084
|
return a && A(a, /* @__PURE__ */ new Date());
|
|
1087
|
-
}, Pe = (t) => A(ke(), t.lastFullComplete), Ne = (t) => Pe(t) ? 1 + Math.min(2, t.streak / 10) : 1,
|
|
1085
|
+
}, Pe = (t) => A(ke(), t.lastFullComplete), Ne = (t) => Pe(t) ? 1 + Math.min(2, t.streak / 10) : 1, ht = (t) => t.completed.reduce(
|
|
1088
1086
|
(e, a) => e + (a.startsWith("be_level_") ? 1 : 0),
|
|
1089
1087
|
0
|
|
1090
|
-
),
|
|
1091
|
-
const a =
|
|
1092
|
-
return
|
|
1088
|
+
), _t = (t, e) => {
|
|
1089
|
+
const a = ht(t);
|
|
1090
|
+
return Ga.find(
|
|
1093
1091
|
(s) => s.strength === a && s.faction === e
|
|
1094
1092
|
);
|
|
1095
1093
|
}, Ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1096
1094
|
__proto__: null,
|
|
1097
|
-
getFactionTitle:
|
|
1098
|
-
getFactionTitleStrength:
|
|
1095
|
+
getFactionTitle: _t,
|
|
1096
|
+
getFactionTitleStrength: ht,
|
|
1099
1097
|
getQuestName: un,
|
|
1100
1098
|
getStreakMultiplier: Ne,
|
|
1101
|
-
isDailyQuestCompleted:
|
|
1102
|
-
isQuestCompleted:
|
|
1103
|
-
isRepetableQuestExist:
|
|
1099
|
+
isDailyQuestCompleted: wt,
|
|
1100
|
+
isQuestCompleted: gt,
|
|
1101
|
+
isRepetableQuestExist: bt,
|
|
1104
1102
|
isStreaking: Pe
|
|
1105
1103
|
}, Symbol.toStringTag, { value: "Module" })), ep = (t, e) => {
|
|
1106
1104
|
const a = t.badge, s = t.isFactionBadge;
|
|
@@ -1110,7 +1108,7 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1110
1108
|
if (s)
|
|
1111
1109
|
return $e(s) ? s.emojis[s.isProgressive.findIndex((i) => i === a)] : s.emojis;
|
|
1112
1110
|
}, ap = async (t, e) => {
|
|
1113
|
-
const a = Object.values(
|
|
1111
|
+
const a = Object.values(yt).find(
|
|
1114
1112
|
(s) => new s().id === t
|
|
1115
1113
|
);
|
|
1116
1114
|
if (a) {
|
|
@@ -1126,7 +1124,7 @@ const gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1126
1124
|
i && R("crewDaily", e, [[s, i]]);
|
|
1127
1125
|
}
|
|
1128
1126
|
}, np = async (t, e) => {
|
|
1129
|
-
if (!
|
|
1127
|
+
if (!bt(e)) return;
|
|
1130
1128
|
const a = Object.values(Se).find(
|
|
1131
1129
|
(s) => new s().id === e
|
|
1132
1130
|
);
|
|
@@ -1611,7 +1609,7 @@ class Qn extends r {
|
|
|
1611
1609
|
title = null;
|
|
1612
1610
|
badge = null;
|
|
1613
1611
|
isFactionBadge = !1;
|
|
1614
|
-
onCrewQuestUpdate = (e, a) =>
|
|
1612
|
+
onCrewQuestUpdate = (e, a) => ga(e, "daily_all") && !A(
|
|
1615
1613
|
e.daily?.[a.user._id.toHexString()]?.crew_all_members_daily ?? /* @__PURE__ */ new Date(0),
|
|
1616
1614
|
/* @__PURE__ */ new Date()
|
|
1617
1615
|
) && !A(a.lastAllMembersDaily, /* @__PURE__ */ new Date());
|
|
@@ -1696,7 +1694,7 @@ class Ln extends r {
|
|
|
1696
1694
|
daily = !1;
|
|
1697
1695
|
onCrewQuestUpdate = (e) => e.meta.maxVoiceMembers >= 15;
|
|
1698
1696
|
}
|
|
1699
|
-
const
|
|
1697
|
+
const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1700
1698
|
__proto__: null,
|
|
1701
1699
|
CrewAllMembersDaily: Qn,
|
|
1702
1700
|
CrewCarpenter1Month: An,
|
|
@@ -2046,7 +2044,7 @@ class dr extends r {
|
|
|
2046
2044
|
crew = !1;
|
|
2047
2045
|
onCrewUpdate = (e, a) => e.stats[a.toHexString()] && e.stats[a.toHexString()].xp >= 5e7;
|
|
2048
2046
|
}
|
|
2049
|
-
const
|
|
2047
|
+
const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2050
2048
|
__proto__: null,
|
|
2051
2049
|
CrewBeLevel10: Gn,
|
|
2052
2050
|
CrewBeLevel100: Wn,
|
|
@@ -2150,7 +2148,7 @@ class yr extends r {
|
|
|
2150
2148
|
crew = !1;
|
|
2151
2149
|
onUserInventoryUpdate = (e) => e.recipes.length >= 100;
|
|
2152
2150
|
}
|
|
2153
|
-
const
|
|
2151
|
+
const Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2154
2152
|
__proto__: null,
|
|
2155
2153
|
Have100Recipe: yr,
|
|
2156
2154
|
Have10Recipe: fr,
|
|
@@ -2910,7 +2908,7 @@ class oi extends r {
|
|
|
2910
2908
|
secret = !1;
|
|
2911
2909
|
onUserMetaUpdate = (e) => !!e.premium;
|
|
2912
2910
|
}
|
|
2913
|
-
const
|
|
2911
|
+
const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2914
2912
|
__proto__: null,
|
|
2915
2913
|
BeLevel10: Jr,
|
|
2916
2914
|
BeLevel120: ii,
|
|
@@ -3056,7 +3054,7 @@ class mi extends r {
|
|
|
3056
3054
|
crew = !1;
|
|
3057
3055
|
onUserOrnamentsUpdate = (e) => e.unlockedTitles.length >= 100;
|
|
3058
3056
|
}
|
|
3059
|
-
const
|
|
3057
|
+
const vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3060
3058
|
__proto__: null,
|
|
3061
3059
|
Have100Title: mi,
|
|
3062
3060
|
Have10Title: pi,
|
|
@@ -4870,7 +4868,7 @@ class ho extends r {
|
|
|
4870
4868
|
crew = !1;
|
|
4871
4869
|
onUserQuestMetaUpdate = (e) => e.items.alcohols.wines >= 1e3;
|
|
4872
4870
|
}
|
|
4873
|
-
const
|
|
4871
|
+
const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4874
4872
|
__proto__: null,
|
|
4875
4873
|
Bet10M: bi,
|
|
4876
4874
|
Bet666: yl,
|
|
@@ -5006,22 +5004,22 @@ class _o extends r {
|
|
|
5006
5004
|
return Object.keys(e.daily).filter((a) => a !== this.id).length >= 5;
|
|
5007
5005
|
};
|
|
5008
5006
|
}
|
|
5009
|
-
const
|
|
5007
|
+
const Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5010
5008
|
__proto__: null,
|
|
5011
5009
|
DailyAll: _o
|
|
5012
5010
|
}, Symbol.toStringTag, { value: "Module" })), xo = [
|
|
5011
|
+
...Object.values(Bt),
|
|
5013
5012
|
...Object.values(vt),
|
|
5013
|
+
...Object.values(Ut),
|
|
5014
5014
|
...Object.values(kt),
|
|
5015
|
-
...Object.values(Bt),
|
|
5016
5015
|
...Object.values(Ct),
|
|
5017
|
-
...Object.values($t),
|
|
5018
|
-
...Object.values(Ut),
|
|
5019
5016
|
...Object.values(Mt),
|
|
5020
|
-
...Object.values(
|
|
5017
|
+
...Object.values(xt),
|
|
5018
|
+
...Object.values(yt),
|
|
5021
5019
|
...Object.values(Se)
|
|
5022
5020
|
], Mo = async (t) => {
|
|
5023
5021
|
const e = [];
|
|
5024
|
-
for (const a of Object.values(
|
|
5022
|
+
for (const a of Object.values(Bt)) {
|
|
5025
5023
|
const s = new a();
|
|
5026
5024
|
if (s.onUserMetaUpdate?.(t)) {
|
|
5027
5025
|
const i = await s.complete(t.user._id, {
|
|
@@ -5033,7 +5031,7 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5033
5031
|
e.length > 0 && R("userMetaUpdate", t.user._id, e);
|
|
5034
5032
|
}, Uo = async (t) => {
|
|
5035
5033
|
const e = [];
|
|
5036
|
-
for (const a of Object.values(
|
|
5034
|
+
for (const a of Object.values(kt)) {
|
|
5037
5035
|
const s = new a();
|
|
5038
5036
|
if (s.onUserQuestMetaUpdate?.(t)) {
|
|
5039
5037
|
const i = await s.complete(t.user._id, {});
|
|
@@ -5041,24 +5039,24 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5041
5039
|
}
|
|
5042
5040
|
}
|
|
5043
5041
|
e.length > 0 && R("userQuestMetaUpdate", t.user._id, e);
|
|
5044
|
-
}, Bo = ["raidUnlock"],
|
|
5045
|
-
|
|
5042
|
+
}, Bo = ["raidUnlock"], $t = new Ha.EventEmitter(), le = (t, e, a) => {
|
|
5043
|
+
$t.emit(t, e, a);
|
|
5046
5044
|
}, rp = (t) => {
|
|
5047
5045
|
for (const e of Bo)
|
|
5048
|
-
|
|
5046
|
+
$t.on(e, (a, s) => {
|
|
5049
5047
|
t(e, a, s);
|
|
5050
5048
|
});
|
|
5051
5049
|
}, vo = async (t) => {
|
|
5052
|
-
const e = await
|
|
5050
|
+
const e = await da(t.user._id);
|
|
5053
5051
|
g(t.xp.amount) >= 30 && !J(e, "training") && (await Z(e.user._id, "training"), le("raidUnlock", t.user._id, "training")), (e.obtainedRewards.training?.filter((a) => a.startsWith("end_"))?.length ?? 0) >= 4 && !J(e, "resources") && (await Z(e.user._id, "resources"), le("raidUnlock", t.user._id, "resources"));
|
|
5054
5052
|
}, ko = async (t) => {
|
|
5055
|
-
const e = await
|
|
5056
|
-
Ce(t.equipmentList, (a) => a.id).map((a) =>
|
|
5053
|
+
const e = await da(t.user._id);
|
|
5054
|
+
Ce(t.equipmentList, (a) => a.id).map((a) => Ia(a)).filter((a) => a.panoply === "adventurer").length === 6 && !J(e, "pirate_cave") && (await Z(e.user._id, "pirate_cave"), le("raidUnlock", t.user._id, "pirate_cave")), (t.itemList.get("map_fragment") ?? 0) >= 5 && !J(e, "mysterious_island") && (await Z(e.user._id, "mysterious_island"), await Q(
|
|
5057
5055
|
t.user._id,
|
|
5058
5056
|
"map_fragment",
|
|
5059
5057
|
5
|
|
5060
5058
|
), le("raidUnlock", t.user._id, "mysterious_island"));
|
|
5061
|
-
},
|
|
5059
|
+
}, Ot = new p({
|
|
5062
5060
|
user: {
|
|
5063
5061
|
type: p.Types.ObjectId,
|
|
5064
5062
|
required: !0,
|
|
@@ -5135,10 +5133,10 @@ const $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5135
5133
|
reportedSomeone: { type: Boolean, default: !1 },
|
|
5136
5134
|
hasCelebrateBirthday: { type: Boolean, default: !1 }
|
|
5137
5135
|
});
|
|
5138
|
-
|
|
5136
|
+
Ot.post("findOneAndUpdate", async function(t) {
|
|
5139
5137
|
await Uo(t);
|
|
5140
5138
|
});
|
|
5141
|
-
const D = b?.UserQuestMeta || w("UserQuestMeta",
|
|
5139
|
+
const D = b?.UserQuestMeta || w("UserQuestMeta", Ot), f = async (t, e) => {
|
|
5142
5140
|
await D.findOneAndUpdate({ user: t }, e, {
|
|
5143
5141
|
upsert: !0,
|
|
5144
5142
|
returnDocument: "after"
|
|
@@ -5204,7 +5202,7 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5204
5202
|
}
|
|
5205
5203
|
}
|
|
5206
5204
|
]);
|
|
5207
|
-
},
|
|
5205
|
+
}, St = async (t, e) => {
|
|
5208
5206
|
await f(t, {
|
|
5209
5207
|
$inc: {
|
|
5210
5208
|
totalSpentInShop: e
|
|
@@ -5214,8 +5212,8 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5214
5212
|
const s = at(a);
|
|
5215
5213
|
await f(t, {
|
|
5216
5214
|
$inc: {
|
|
5217
|
-
"crafts.cookedMeal":
|
|
5218
|
-
"crafts.scrolls":
|
|
5215
|
+
"crafts.cookedMeal": Qa(s) ? e : 0,
|
|
5216
|
+
"crafts.scrolls": Ta(s) ? e : 0,
|
|
5219
5217
|
"crafts.total": e
|
|
5220
5218
|
}
|
|
5221
5219
|
});
|
|
@@ -5241,7 +5239,7 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5241
5239
|
await f(t, { $set: { tagEveryone: !0 } });
|
|
5242
5240
|
}, zo = async (t) => {
|
|
5243
5241
|
await f(t, { $set: { betMin: !0 } });
|
|
5244
|
-
},
|
|
5242
|
+
}, Rt = async (t) => {
|
|
5245
5243
|
await f(t, { $set: { loseEverything: !0 } });
|
|
5246
5244
|
}, Vo = async (t) => {
|
|
5247
5245
|
await f(t, { $set: { bet10M: !0 } });
|
|
@@ -5338,7 +5336,7 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5338
5336
|
hasCelebrateBirthday: jo,
|
|
5339
5337
|
hasGuessInOne: No,
|
|
5340
5338
|
hasLose10M: Xo,
|
|
5341
|
-
hasLoseEverything:
|
|
5339
|
+
hasLoseEverything: Rt,
|
|
5342
5340
|
hasReportedSomeone: To,
|
|
5343
5341
|
hasSevenQod: Oo,
|
|
5344
5342
|
hasTagEveryone: Yo,
|
|
@@ -5356,15 +5354,15 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5356
5354
|
updateLastGames: Ro,
|
|
5357
5355
|
updateRps: Do,
|
|
5358
5356
|
updateTotalBet: Ao,
|
|
5359
|
-
updateTotalSpentInShop:
|
|
5357
|
+
updateTotalSpentInShop: St,
|
|
5360
5358
|
winBlackjack: So,
|
|
5361
5359
|
winDoubleSix: qo,
|
|
5362
5360
|
workIncrement: Co
|
|
5363
|
-
}, Symbol.toStringTag, { value: "Module" })), rc = ["death"],
|
|
5364
|
-
|
|
5361
|
+
}, Symbol.toStringTag, { value: "Module" })), rc = ["death"], Et = new lt.EventEmitter(), ic = (t, e) => {
|
|
5362
|
+
Et.emit(t, e);
|
|
5365
5363
|
}, lp = (t) => {
|
|
5366
5364
|
for (const e of rc)
|
|
5367
|
-
|
|
5365
|
+
Et.on(e, (a) => {
|
|
5368
5366
|
t(e, a);
|
|
5369
5367
|
});
|
|
5370
5368
|
}, H = {
|
|
@@ -5372,7 +5370,7 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5372
5370
|
origin: String,
|
|
5373
5371
|
expireAt: { type: Date, default: null },
|
|
5374
5372
|
startAt: { type: Date, default: null }
|
|
5375
|
-
},
|
|
5373
|
+
}, Ft = new p({
|
|
5376
5374
|
user: {
|
|
5377
5375
|
type: p.Types.ObjectId,
|
|
5378
5376
|
required: !0,
|
|
@@ -5449,14 +5447,14 @@ const D = b?.UserQuestMeta || w("UserQuestMeta", St), f = async (t, e) => {
|
|
|
5449
5447
|
wisdom: { type: Number, default: 0 }
|
|
5450
5448
|
}
|
|
5451
5449
|
});
|
|
5452
|
-
|
|
5453
|
-
await vo(t), await Mo(t), t.berry === 0 && await
|
|
5450
|
+
Ft.post("findOneAndUpdate", async function(t) {
|
|
5451
|
+
await vo(t), await Mo(t), t.berry === 0 && await Rt(t.user._id), t.hp <= 0 && ic("death", t.user._id);
|
|
5454
5452
|
});
|
|
5455
|
-
const L = b?.UserMeta || w("UserMeta",
|
|
5453
|
+
const L = b?.UserMeta || w("UserMeta", Ft), At = async (t) => await L.create({
|
|
5456
5454
|
user: t
|
|
5457
5455
|
}), pe = async (t, e = {}) => {
|
|
5458
5456
|
const a = await L.findOne({ user: t }, e);
|
|
5459
|
-
return a || await
|
|
5457
|
+
return a || await At(t);
|
|
5460
5458
|
}, lc = (t, e) => L.findOneAndUpdate({ user: t }, e, {
|
|
5461
5459
|
returnDocument: "after",
|
|
5462
5460
|
upsert: !0
|
|
@@ -5465,7 +5463,7 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5465
5463
|
returnDocument: "after",
|
|
5466
5464
|
upsert: !0
|
|
5467
5465
|
});
|
|
5468
|
-
},
|
|
5466
|
+
}, Dt = async (t, e) => {
|
|
5469
5467
|
await _(t, [
|
|
5470
5468
|
{
|
|
5471
5469
|
$set: {
|
|
@@ -5504,7 +5502,7 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5504
5502
|
await je(t, s);
|
|
5505
5503
|
return;
|
|
5506
5504
|
}
|
|
5507
|
-
const a =
|
|
5505
|
+
const a = Pa(e);
|
|
5508
5506
|
await _(t, [
|
|
5509
5507
|
{
|
|
5510
5508
|
$set: {
|
|
@@ -5606,7 +5604,7 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5606
5604
|
(U) => (l.find((T) => U.id === T.id) || !s && i.id === U.id) && (s ? i.id !== U.id : !0)
|
|
5607
5605
|
).length, y = u === d.equipments.length ? d.fullBonus : u >= d.equipments.length / 2 ? d.halfBonus : void 0;
|
|
5608
5606
|
d.halfBonus && "target" in d.halfBonus && await Be(t, d.halfBonus), d.fullBonus && "target" in d.fullBonus && await Be(t, d.fullBonus), y && "target" in y && await je(t, y);
|
|
5609
|
-
},
|
|
5607
|
+
}, It = async (t, e, {
|
|
5610
5608
|
userMeta: a,
|
|
5611
5609
|
userInventory: s
|
|
5612
5610
|
}) => {
|
|
@@ -5699,11 +5697,11 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5699
5697
|
});
|
|
5700
5698
|
}, op = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5701
5699
|
__proto__: null,
|
|
5702
|
-
addBerry:
|
|
5700
|
+
addBerry: Dt,
|
|
5703
5701
|
addCharacteristics: fc,
|
|
5704
5702
|
addMinutesInVoiceToday: bc,
|
|
5705
5703
|
addScrollCharacteristic: mc,
|
|
5706
|
-
gainHp:
|
|
5704
|
+
gainHp: It,
|
|
5707
5705
|
incrementWorkUnluckyStreak: hc,
|
|
5708
5706
|
loseHp: pc,
|
|
5709
5707
|
removeBuff: Be,
|
|
@@ -5720,7 +5718,7 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5720
5718
|
updateScam: xc
|
|
5721
5719
|
}, Symbol.toStringTag, { value: "Module" })), Mc = async (t) => {
|
|
5722
5720
|
const e = [];
|
|
5723
|
-
for (const a of Object.values(
|
|
5721
|
+
for (const a of Object.values(Ut)) {
|
|
5724
5722
|
const s = new a();
|
|
5725
5723
|
if (s.onUserInventoryUpdate?.(t)) {
|
|
5726
5724
|
const i = await s.complete(t.user._id, {});
|
|
@@ -5728,7 +5726,7 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5728
5726
|
}
|
|
5729
5727
|
}
|
|
5730
5728
|
e.length > 0 && R("userInventoryUpdate", t.user._id, e);
|
|
5731
|
-
},
|
|
5729
|
+
}, Tt = new p(
|
|
5732
5730
|
{
|
|
5733
5731
|
user: {
|
|
5734
5732
|
type: p.Types.ObjectId,
|
|
@@ -5750,10 +5748,10 @@ const L = b?.UserMeta || w("UserMeta", At), Dt = async (t) => await L.create({
|
|
|
5750
5748
|
},
|
|
5751
5749
|
{ minimize: !1 }
|
|
5752
5750
|
);
|
|
5753
|
-
|
|
5751
|
+
Tt.post("findOneAndUpdate", async function(t) {
|
|
5754
5752
|
await ko(t), await Mc(t);
|
|
5755
5753
|
});
|
|
5756
|
-
const fe = b?.UserInventory || w("UserInventory",
|
|
5754
|
+
const fe = b?.UserInventory || w("UserInventory", Tt), E = async (t, e) => {
|
|
5757
5755
|
await fe.findOneAndUpdate({ user: t }, e, {
|
|
5758
5756
|
upsert: !0,
|
|
5759
5757
|
returnDocument: "after"
|
|
@@ -5779,7 +5777,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5779
5777
|
}
|
|
5780
5778
|
}
|
|
5781
5779
|
]);
|
|
5782
|
-
},
|
|
5780
|
+
}, Qt = async (t, e, a) => {
|
|
5783
5781
|
await E(t, {
|
|
5784
5782
|
$pull: {
|
|
5785
5783
|
equipmentList: {
|
|
@@ -5788,8 +5786,8 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5788
5786
|
}
|
|
5789
5787
|
}
|
|
5790
5788
|
});
|
|
5791
|
-
},
|
|
5792
|
-
a !== 0 && (K(e) ? await
|
|
5789
|
+
}, Pt = async (t, e, a, s) => {
|
|
5790
|
+
a !== 0 && (K(e) ? await Qt(t, e, s) : await Q(t, e, a));
|
|
5793
5791
|
}, Bc = async (t, e) => {
|
|
5794
5792
|
await E(t, { $set: { [`itemList.${e}`]: 0 } });
|
|
5795
5793
|
}, qe = async (t, e) => {
|
|
@@ -5806,9 +5804,9 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5806
5804
|
const a = await z(t);
|
|
5807
5805
|
if (!a.equipmentSave[e]) return;
|
|
5808
5806
|
Object.entries(a.equipmentSave[e]).forEach(([i, l]) => {
|
|
5809
|
-
st.find((d) => d === i) &&
|
|
5807
|
+
st.find((d) => d === i) && Nt(t, i, l);
|
|
5810
5808
|
});
|
|
5811
|
-
},
|
|
5809
|
+
}, Nt = async (t, e, a) => {
|
|
5812
5810
|
const s = await P(t);
|
|
5813
5811
|
await E(t, {
|
|
5814
5812
|
$set: {
|
|
@@ -5828,7 +5826,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5828
5826
|
const { itemId: l, size: d } = a;
|
|
5829
5827
|
K(l) ? await qe(t, [{ id: l, seed: i }]) : await O(t, l, d * s);
|
|
5830
5828
|
}, Oc = async (t, e, a, s, i) => {
|
|
5831
|
-
await
|
|
5829
|
+
await Pt(t, e.id, s, i);
|
|
5832
5830
|
for (const { entityId: l, quantity: d } of a)
|
|
5833
5831
|
K(l) || await O(t, l, s * d);
|
|
5834
5832
|
await Q(t, "tools", 1);
|
|
@@ -5836,10 +5834,10 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5836
5834
|
await Q(t, e, s * 4), await Q(t, "enchanted_stone", s), await O(t, a, s);
|
|
5837
5835
|
}, Rc = async (t, e) => {
|
|
5838
5836
|
await E(t, { $addToSet: { recipes: e } });
|
|
5839
|
-
},
|
|
5837
|
+
}, jt = async (t, e, a) => {
|
|
5840
5838
|
await O(t, e, a);
|
|
5841
|
-
},
|
|
5842
|
-
e.forEach(async (a) => await
|
|
5839
|
+
}, qt = async (t, e) => {
|
|
5840
|
+
e.forEach(async (a) => await jt(t, a.chest, a.size));
|
|
5843
5841
|
}, cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5844
5842
|
__proto__: null,
|
|
5845
5843
|
addEquipments: qe,
|
|
@@ -5849,23 +5847,23 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5849
5847
|
craftItem: $c,
|
|
5850
5848
|
dismantleEntity: Oc,
|
|
5851
5849
|
enchantItem: Sc,
|
|
5852
|
-
equip:
|
|
5853
|
-
giveChest:
|
|
5854
|
-
giveChests:
|
|
5850
|
+
equip: Nt,
|
|
5851
|
+
giveChest: jt,
|
|
5852
|
+
giveChests: qt,
|
|
5855
5853
|
removeAllItemInventory: Bc,
|
|
5856
|
-
removeEquipment:
|
|
5857
|
-
removeInventoryEntity:
|
|
5854
|
+
removeEquipment: Qt,
|
|
5855
|
+
removeInventoryEntity: Pt,
|
|
5858
5856
|
removeInventoryItem: Q,
|
|
5859
5857
|
saveEquipments: vc,
|
|
5860
5858
|
unequip: Cc,
|
|
5861
5859
|
unlockRecipe: Rc
|
|
5862
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5860
|
+
}, Symbol.toStringTag, { value: "Module" })), Lt = async (t) => await fe.create({
|
|
5863
5861
|
user: t
|
|
5864
5862
|
}), z = async (t, e = {}) => {
|
|
5865
5863
|
const a = await fe.findOne({ user: t }, e);
|
|
5866
|
-
return a || await
|
|
5864
|
+
return a || await Lt(t);
|
|
5867
5865
|
}, Le = (t) => Object.fromEntries(
|
|
5868
|
-
|
|
5866
|
+
Na.map((e) => [
|
|
5869
5867
|
e,
|
|
5870
5868
|
m(t.characteristics[e]) + t.scrolls[e]
|
|
5871
5869
|
])
|
|
@@ -5882,7 +5880,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5882
5880
|
const e = g(t.xp.amount);
|
|
5883
5881
|
return e <= 10 ? 5e3 : e > 10 && e <= 20 ? 1e4 : e > 20 && e <= 30 ? 2e4 : e > 30 && e <= 40 ? 3e4 : e > 40 && e <= 50 ? 5e4 : e > 50 && e <= 60 ? 75e3 : e > 60 && e <= 70 ? 15e4 : e > 70 && e <= 80 ? 25e4 : e > 80 && e <= 90 ? 4e5 : e > 90 && e <= 100 ? 75e4 : e > 100 ? 14e6 : 0;
|
|
5884
5882
|
}, Dc = (t, e, a) => (e *= 1 + He(t), Math.ceil(e * a)), Ic = (t, e, a) => {
|
|
5885
|
-
const s = a ? 1 :
|
|
5883
|
+
const s = a ? 1 : Ht(t);
|
|
5886
5884
|
return e <= 0 ? e : Math.ceil(e * (s || 1));
|
|
5887
5885
|
}, Tc = (t) => t.buffs.cooldown.work.reduce(
|
|
5888
5886
|
(e, { expireAt: a, startAt: s, multiplier: i }) => e + (/* @__PURE__ */ new Date() >= (s ?? /* @__PURE__ */ new Date()) && (!a || !q(a)) ? i : 0),
|
|
@@ -5893,7 +5891,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5893
5891
|
), Pc = (t) => t.buffs.berry.work.reduce(
|
|
5894
5892
|
(e, { expireAt: a, startAt: s, multiplier: i }) => e + (/* @__PURE__ */ new Date() >= (s ?? /* @__PURE__ */ new Date()) && (!a || !q(a)) ? i : 0),
|
|
5895
5893
|
1
|
|
5896
|
-
),
|
|
5894
|
+
), Ht = (t) => t.buffs.berry.global.reduce(
|
|
5897
5895
|
(e, { expireAt: a, startAt: s, multiplier: i }) => e + (/* @__PURE__ */ new Date() >= (s ?? /* @__PURE__ */ new Date()) && (!a || !q(a)) ? i : 0),
|
|
5898
5896
|
1
|
|
5899
5897
|
), Nc = (t) => t.buffs.cooldown.casino.reduce(
|
|
@@ -5901,7 +5899,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5901
5899
|
1
|
|
5902
5900
|
), P = async (t, e, a) => {
|
|
5903
5901
|
const s = e ?? await pe(t, { buffs: 0, xp: 0 }), i = a ?? await z(t, { itemList: 0, equipmentList: 0 });
|
|
5904
|
-
return ((Le(s).vitality ?? 0) + Qe(i).vitality) *
|
|
5902
|
+
return ((Le(s).vitality ?? 0) + Qe(i).vitality) * ja + qa;
|
|
5905
5903
|
}, jc = async (t, e, a, s) => {
|
|
5906
5904
|
const i = a ?? await pe(t, { buffs: 0, xp: 0 }), l = s ?? await z(t, { itemList: 0, equipmentList: 0 }), d = Me(
|
|
5907
5905
|
Le(i),
|
|
@@ -5957,7 +5955,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
5957
5955
|
}, dp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5958
5956
|
__proto__: null,
|
|
5959
5957
|
calcBerry: Ic,
|
|
5960
|
-
calcBerryGlobalBuff:
|
|
5958
|
+
calcBerryGlobalBuff: Ht,
|
|
5961
5959
|
calcBerryWorkBuff: Pc,
|
|
5962
5960
|
calcCooldownCasinoBuff: Nc,
|
|
5963
5961
|
calcCooldownWorkBuff: Tc,
|
|
@@ -6031,7 +6029,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
6031
6029
|
"raid/classic",
|
|
6032
6030
|
-1 * e * 3600 * 1e3
|
|
6033
6031
|
);
|
|
6034
|
-
},
|
|
6032
|
+
}, Gt = async (t, e, a, s) => {
|
|
6035
6033
|
await ye(t, {
|
|
6036
6034
|
$set: { [`raid.${e}`]: new Date(Date.now() + a) }
|
|
6037
6035
|
}), s.raid[e] && await Te(
|
|
@@ -6044,7 +6042,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
6044
6042
|
$set: {
|
|
6045
6043
|
lockUserCommand: new Date(Date.now() + 2 * 3600 * 1e3)
|
|
6046
6044
|
}
|
|
6047
|
-
}), await
|
|
6045
|
+
}), await It(t, 1, {});
|
|
6048
6046
|
}, Vc = async (t, e, a, s) => {
|
|
6049
6047
|
await ye(t, {
|
|
6050
6048
|
$set: {
|
|
@@ -6059,7 +6057,7 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
6059
6057
|
__proto__: null,
|
|
6060
6058
|
lockUserCommand: zc,
|
|
6061
6059
|
reduceRaidCooldown: Yc,
|
|
6062
|
-
startRaidCooldown:
|
|
6060
|
+
startRaidCooldown: Gt,
|
|
6063
6061
|
useCommand: Vc
|
|
6064
6062
|
}, Symbol.toStringTag, { value: "Module" })), pp = [
|
|
6065
6063
|
"work",
|
|
@@ -6068,12 +6066,12 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
6068
6066
|
"guess",
|
|
6069
6067
|
"qod",
|
|
6070
6068
|
"dice"
|
|
6071
|
-
],
|
|
6069
|
+
], Yt = async (t) => await me.create({
|
|
6072
6070
|
user: t
|
|
6073
6071
|
}), fp = async (t, e = {}) => {
|
|
6074
6072
|
const a = await me.findOne({ user: t }, e);
|
|
6075
|
-
return a || await
|
|
6076
|
-
},
|
|
6073
|
+
return a || await Yt(t);
|
|
6074
|
+
}, zt = new p(
|
|
6077
6075
|
{
|
|
6078
6076
|
user: {
|
|
6079
6077
|
type: p.Types.ObjectId,
|
|
@@ -6093,31 +6091,31 @@ const fe = b?.UserInventory || w("UserInventory", Qt), E = async (t, e) => {
|
|
|
6093
6091
|
},
|
|
6094
6092
|
{ minimize: !1 }
|
|
6095
6093
|
);
|
|
6096
|
-
|
|
6094
|
+
zt.virtual("inventory", {
|
|
6097
6095
|
ref: "Crew",
|
|
6098
6096
|
localField: "crew",
|
|
6099
6097
|
foreignField: "_id",
|
|
6100
6098
|
justOne: !0
|
|
6101
6099
|
});
|
|
6102
|
-
const V = b?.UserCrew || w("UserCrew",
|
|
6100
|
+
const V = b?.UserCrew || w("UserCrew", zt), Vt = async (t, e) => {
|
|
6103
6101
|
await V.updateOne({ user: t }, e, {
|
|
6104
6102
|
upsert: !0
|
|
6105
6103
|
});
|
|
6106
6104
|
}, Wc = async (t, e) => {
|
|
6107
|
-
await
|
|
6105
|
+
await Vt(t, {
|
|
6108
6106
|
$set: {
|
|
6109
6107
|
percent: e
|
|
6110
6108
|
}
|
|
6111
6109
|
});
|
|
6112
|
-
},
|
|
6113
|
-
await
|
|
6110
|
+
}, Wt = async (t) => {
|
|
6111
|
+
await Vt(t, {
|
|
6114
6112
|
$set: {
|
|
6115
6113
|
lastAllMembersDaily: /* @__PURE__ */ new Date()
|
|
6116
6114
|
}
|
|
6117
6115
|
});
|
|
6118
6116
|
}, mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6119
6117
|
__proto__: null,
|
|
6120
|
-
allMembersDailyComplete:
|
|
6118
|
+
allMembersDailyComplete: Wt,
|
|
6121
6119
|
updatePercent: Wc
|
|
6122
6120
|
}, Symbol.toStringTag, { value: "Module" })), Xc = (t) => V.findOne({ user: t }), yp = async (t, e, a, s) => await V.create({
|
|
6123
6121
|
user: t,
|
|
@@ -6212,14 +6210,14 @@ const V = b?.UserCrew || w("UserCrew", Vt), Wt = async (t, e) => {
|
|
|
6212
6210
|
resetGuessGame: ad,
|
|
6213
6211
|
setGuessGame: td,
|
|
6214
6212
|
updateGuessGame: sd
|
|
6215
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6213
|
+
}, Symbol.toStringTag, { value: "Module" })), Xt = async (t) => await ge.create({
|
|
6216
6214
|
user: t
|
|
6217
6215
|
}), _p = async (t, e) => {
|
|
6218
6216
|
const a = await ge.findOne({ user: t }, e);
|
|
6219
|
-
return a || await
|
|
6217
|
+
return a || await Xt(t);
|
|
6220
6218
|
}, nd = async (t) => {
|
|
6221
6219
|
const e = [];
|
|
6222
|
-
for (const a of Object.values(
|
|
6220
|
+
for (const a of Object.values(vt)) {
|
|
6223
6221
|
const s = new a();
|
|
6224
6222
|
if (s.onUserOrnamentsUpdate?.(t)) {
|
|
6225
6223
|
const i = await s.complete(t.user._id, {});
|
|
@@ -6227,7 +6225,7 @@ const V = b?.UserCrew || w("UserCrew", Vt), Wt = async (t, e) => {
|
|
|
6227
6225
|
}
|
|
6228
6226
|
}
|
|
6229
6227
|
e.length > 0 && R("userOrnamentsUpdate", t.user._id, e);
|
|
6230
|
-
},
|
|
6228
|
+
}, Jt = new p({
|
|
6231
6229
|
user: {
|
|
6232
6230
|
type: p.Types.ObjectId,
|
|
6233
6231
|
required: !0,
|
|
@@ -6244,10 +6242,10 @@ const V = b?.UserCrew || w("UserCrew", Vt), Wt = async (t, e) => {
|
|
|
6244
6242
|
unlockedBags: { type: [String], default: ["default"] },
|
|
6245
6243
|
selectedBag: { type: String, default: "default" }
|
|
6246
6244
|
});
|
|
6247
|
-
|
|
6245
|
+
Jt.post("findOneAndUpdate", async function(t) {
|
|
6248
6246
|
await nd(t);
|
|
6249
6247
|
});
|
|
6250
|
-
const be = b?.UserOrnaments || w("UserOrnaments",
|
|
6248
|
+
const be = b?.UserOrnaments || w("UserOrnaments", Jt), v = async (t, e) => {
|
|
6251
6249
|
await be.findOneAndUpdate({ user: t }, e, {
|
|
6252
6250
|
upsert: !0,
|
|
6253
6251
|
returnDocument: "after"
|
|
@@ -6260,7 +6258,7 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6260
6258
|
});
|
|
6261
6259
|
}, id = async (t, e) => {
|
|
6262
6260
|
await v(t, { $set: { selectedTitle: e } });
|
|
6263
|
-
},
|
|
6261
|
+
}, Zt = async (t, e) => {
|
|
6264
6262
|
await v(t, {
|
|
6265
6263
|
$addToSet: { unlockedBackgrounds: e }
|
|
6266
6264
|
});
|
|
@@ -6272,13 +6270,13 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6272
6270
|
await v(t, {
|
|
6273
6271
|
$set: { selectedBackground: e }
|
|
6274
6272
|
});
|
|
6275
|
-
},
|
|
6273
|
+
}, Kt = async (t, e, a) => {
|
|
6276
6274
|
e.isProgressive ? await v(t, {
|
|
6277
6275
|
$addToSet: { unlockedBadges: `${e.id}_${a}` }
|
|
6278
6276
|
}) : await v(t, {
|
|
6279
6277
|
$addToSet: { unlockedBadges: e.id }
|
|
6280
6278
|
});
|
|
6281
|
-
},
|
|
6279
|
+
}, ea = async (t, e) => {
|
|
6282
6280
|
await v(t, {
|
|
6283
6281
|
$addToSet: {
|
|
6284
6282
|
unlockedFactionBadges: {
|
|
@@ -6290,7 +6288,7 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6290
6288
|
}
|
|
6291
6289
|
}
|
|
6292
6290
|
});
|
|
6293
|
-
},
|
|
6291
|
+
}, ta = async (t, e) => {
|
|
6294
6292
|
await v(t, {
|
|
6295
6293
|
$addToSet: { unlockedProfileAssets: e }
|
|
6296
6294
|
});
|
|
@@ -6307,22 +6305,22 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6307
6305
|
selectBackground: od,
|
|
6308
6306
|
selectBag: dd,
|
|
6309
6307
|
selectTitle: id,
|
|
6310
|
-
unlockBackground:
|
|
6308
|
+
unlockBackground: Zt,
|
|
6311
6309
|
unlockBackgrounds: ld,
|
|
6312
|
-
unlockBadge:
|
|
6310
|
+
unlockBadge: Kt,
|
|
6313
6311
|
unlockBag: cd,
|
|
6314
|
-
unlockFactionBadge:
|
|
6315
|
-
unlockProfileAsset:
|
|
6312
|
+
unlockFactionBadge: ea,
|
|
6313
|
+
unlockProfileAsset: ta,
|
|
6316
6314
|
unlockTitle: ze,
|
|
6317
6315
|
unlockTitles: rd
|
|
6318
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6316
|
+
}, Symbol.toStringTag, { value: "Module" })), aa = async (t) => await be.create({
|
|
6319
6317
|
user: t
|
|
6320
6318
|
}), Mp = async (t, e) => {
|
|
6321
6319
|
const a = await be.findOne({ user: t }, e);
|
|
6322
|
-
return a || await
|
|
6320
|
+
return a || await aa(t);
|
|
6323
6321
|
}, ud = async (t) => {
|
|
6324
6322
|
const e = [];
|
|
6325
|
-
for (const a of Object.values(
|
|
6323
|
+
for (const a of Object.values(Ct)) {
|
|
6326
6324
|
const s = new a();
|
|
6327
6325
|
if (s.onUserQuestUpdate?.(t)) {
|
|
6328
6326
|
const i = await s.complete(t.user._id, {
|
|
@@ -6332,7 +6330,7 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6332
6330
|
}
|
|
6333
6331
|
}
|
|
6334
6332
|
e.length > 0 && R("userQuestUpdate", t.user._id, e);
|
|
6335
|
-
},
|
|
6333
|
+
}, sa = new p(
|
|
6336
6334
|
{
|
|
6337
6335
|
user: {
|
|
6338
6336
|
type: p.Types.ObjectId,
|
|
@@ -6347,21 +6345,21 @@ const be = b?.UserOrnaments || w("UserOrnaments", Zt), v = async (t, e) => {
|
|
|
6347
6345
|
},
|
|
6348
6346
|
{ minimize: !1 }
|
|
6349
6347
|
);
|
|
6350
|
-
|
|
6348
|
+
sa.post("findOneAndUpdate", async function(t) {
|
|
6351
6349
|
await ud(t);
|
|
6352
6350
|
});
|
|
6353
|
-
const we = b?.UserQuest || w("UserQuest",
|
|
6351
|
+
const we = b?.UserQuest || w("UserQuest", sa), oe = async (t, e) => {
|
|
6354
6352
|
await we.findOneAndUpdate({ user: t }, e, {
|
|
6355
6353
|
upsert: !0,
|
|
6356
6354
|
returnDocument: "after"
|
|
6357
6355
|
});
|
|
6358
|
-
},
|
|
6356
|
+
}, na = async (t, e) => {
|
|
6359
6357
|
await oe(t, { $addToSet: { completed: e } });
|
|
6360
|
-
},
|
|
6358
|
+
}, ra = async (t, e) => {
|
|
6361
6359
|
await oe(t, [
|
|
6362
6360
|
{ $addFields: { [`daily.${e}`]: /* @__PURE__ */ new Date() } }
|
|
6363
6361
|
]);
|
|
6364
|
-
},
|
|
6362
|
+
}, ia = async (t, e) => {
|
|
6365
6363
|
A(ke(), e) ? await oe(t, {
|
|
6366
6364
|
$inc: { streak: 1 },
|
|
6367
6365
|
$set: { lastFullComplete: /* @__PURE__ */ new Date() }
|
|
@@ -6370,14 +6368,14 @@ const we = b?.UserQuest || w("UserQuest", na), oe = async (t, e) => {
|
|
|
6370
6368
|
});
|
|
6371
6369
|
}, Up = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6372
6370
|
__proto__: null,
|
|
6373
|
-
completeDailyQuest:
|
|
6374
|
-
completeQuest:
|
|
6375
|
-
updateStreak:
|
|
6376
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6371
|
+
completeDailyQuest: ra,
|
|
6372
|
+
completeQuest: na,
|
|
6373
|
+
updateStreak: ia
|
|
6374
|
+
}, Symbol.toStringTag, { value: "Module" })), la = async (t) => await we.create({
|
|
6377
6375
|
user: t
|
|
6378
|
-
}),
|
|
6376
|
+
}), oa = async (t) => {
|
|
6379
6377
|
const e = await we.findOne({ user: t });
|
|
6380
|
-
return e || await
|
|
6378
|
+
return e || await la(t);
|
|
6381
6379
|
}, J = (t, e) => t.unlocked?.[e], pd = (t, e, a) => e in t.obtainedRewards ? t.obtainedRewards[e].includes(a) : !1, fd = (t, e) => t.obtainedRewards[e] ?? [], md = (t, e, a, s) => s === "include" ? a.every(
|
|
6382
6380
|
(i) => (t.obtainedConditions[e] ?? []).includes(i)
|
|
6383
6381
|
) : a.every(
|
|
@@ -6429,7 +6427,7 @@ const we = b?.UserQuest || w("UserQuest", na), oe = async (t, e) => {
|
|
|
6429
6427
|
rewards: {}
|
|
6430
6428
|
}
|
|
6431
6429
|
}
|
|
6432
|
-
}), await
|
|
6430
|
+
}), await Gt(t, s, i, l), d;
|
|
6433
6431
|
}, bd = async (t) => {
|
|
6434
6432
|
await N(t, {
|
|
6435
6433
|
$unset: {
|
|
@@ -6481,11 +6479,11 @@ const we = b?.UserQuest || w("UserQuest", na), oe = async (t, e) => {
|
|
|
6481
6479
|
startRaid: gd,
|
|
6482
6480
|
unlockRaid: Z,
|
|
6483
6481
|
updateCondition: Md
|
|
6484
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6482
|
+
}, Symbol.toStringTag, { value: "Module" })), ca = async (t) => await he.create({
|
|
6485
6483
|
user: t
|
|
6486
|
-
}),
|
|
6484
|
+
}), da = async (t) => {
|
|
6487
6485
|
const e = await he.findOne({ user: t });
|
|
6488
|
-
return e || await
|
|
6486
|
+
return e || await ca(t);
|
|
6489
6487
|
}, Ud = (t, e, a, s) => {
|
|
6490
6488
|
if (K(e))
|
|
6491
6489
|
return !1;
|
|
@@ -6554,7 +6552,7 @@ const we = b?.UserQuest || w("UserQuest", na), oe = async (t, e) => {
|
|
|
6554
6552
|
}, B = new p({
|
|
6555
6553
|
userId: { type: String, required: !0, unique: !0 },
|
|
6556
6554
|
birthday: { type: Date, default: null },
|
|
6557
|
-
faction: { type: String, default:
|
|
6555
|
+
faction: { type: String, default: La },
|
|
6558
6556
|
canChangeFaction: { type: Boolean, default: !1 },
|
|
6559
6557
|
canChooseFaction: { type: Boolean, default: !1 },
|
|
6560
6558
|
settings: {
|
|
@@ -6875,9 +6873,9 @@ const C = b?.User || w("User", B), $d = (t) => C.create({
|
|
|
6875
6873
|
getUserBirthday: Rd
|
|
6876
6874
|
}, Symbol.toStringTag, { value: "Module" })), I = async (t, e, a = !1) => {
|
|
6877
6875
|
await C.updateOne(t, e, { upsert: a });
|
|
6878
|
-
},
|
|
6876
|
+
}, ua = async (t, e) => {
|
|
6879
6877
|
await I({ _id: t }, { $set: { canChooseFaction: e } });
|
|
6880
|
-
},
|
|
6878
|
+
}, pa = async (t, e) => {
|
|
6881
6879
|
await I({ _id: t }, { $set: { canChangeFaction: e } });
|
|
6882
6880
|
}, Nd = async (t, e) => {
|
|
6883
6881
|
await I({ userId: t }, { $set: { birthday: e } });
|
|
@@ -6907,8 +6905,8 @@ const C = b?.User || w("User", B), $d = (t) => C.create({
|
|
|
6907
6905
|
await I({ _id: t }, { $set: { faction: e } });
|
|
6908
6906
|
}, Op = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6909
6907
|
__proto__: null,
|
|
6910
|
-
canChangeFaction:
|
|
6911
|
-
canChooseFaction:
|
|
6908
|
+
canChangeFaction: pa,
|
|
6909
|
+
canChooseFaction: ua,
|
|
6912
6910
|
removeBirthday: jd,
|
|
6913
6911
|
setBirthday: Nd,
|
|
6914
6912
|
updateFaction: Yd,
|
|
@@ -6929,29 +6927,29 @@ const C = b?.User || w("User", B), $d = (t) => C.create({
|
|
|
6929
6927
|
case "dailyReport":
|
|
6930
6928
|
return zd(e);
|
|
6931
6929
|
case "games":
|
|
6932
|
-
return
|
|
6930
|
+
return Xt(e);
|
|
6933
6931
|
case "inventory":
|
|
6934
|
-
return
|
|
6932
|
+
return Lt(e);
|
|
6935
6933
|
case "meta":
|
|
6936
|
-
return
|
|
6934
|
+
return At(e);
|
|
6937
6935
|
case "raid":
|
|
6938
|
-
return
|
|
6936
|
+
return ca(e);
|
|
6939
6937
|
case "ornaments":
|
|
6940
|
-
return
|
|
6938
|
+
return aa(e);
|
|
6941
6939
|
case "quest":
|
|
6942
|
-
return
|
|
6940
|
+
return la(e);
|
|
6943
6941
|
case "questMeta":
|
|
6944
6942
|
return Vd(e);
|
|
6945
6943
|
case "shop":
|
|
6946
6944
|
return Wd(e);
|
|
6947
6945
|
case "cooldown":
|
|
6948
|
-
return
|
|
6946
|
+
return Yt(e);
|
|
6949
6947
|
case "reminder":
|
|
6950
6948
|
return [];
|
|
6951
6949
|
case "crew":
|
|
6952
6950
|
return null;
|
|
6953
6951
|
case "encyclopedia":
|
|
6954
|
-
return
|
|
6952
|
+
return ft(e);
|
|
6955
6953
|
}
|
|
6956
6954
|
}, Xd = async (t, e, a) => {
|
|
6957
6955
|
if (Array.isArray(e)) {
|
|
@@ -6972,14 +6970,14 @@ const C = b?.User || w("User", B), $d = (t) => C.create({
|
|
|
6972
6970
|
t._id
|
|
6973
6971
|
)), s;
|
|
6974
6972
|
}
|
|
6975
|
-
},
|
|
6973
|
+
}, fa = new p({
|
|
6976
6974
|
warnedUserId: String,
|
|
6977
6975
|
authorId: String,
|
|
6978
6976
|
date: { type: Date, default: Date.now() },
|
|
6979
6977
|
reason: { type: String, default: null }
|
|
6980
6978
|
});
|
|
6981
|
-
|
|
6982
|
-
const ae = b?.Warns || w("Warns",
|
|
6979
|
+
fa.index({ warnedUserId: 1 });
|
|
6980
|
+
const ae = b?.Warns || w("Warns", fa), Jd = async (t) => await ae.find({ warnedUserId: t }), Zd = async (t) => await ae.countDocuments({ warnedUserId: t }), Rp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6983
6981
|
__proto__: null,
|
|
6984
6982
|
getUserWarnCount: Zd,
|
|
6985
6983
|
getUserWarns: Jd
|
|
@@ -6987,7 +6985,7 @@ const ae = b?.Warns || w("Warns", ma), Jd = async (t) => await ae.find({ warnedU
|
|
|
6987
6985
|
...t
|
|
6988
6986
|
}), Ap = async (t) => await ae.findByIdAndDelete(t), Kd = async (t) => {
|
|
6989
6987
|
const e = {};
|
|
6990
|
-
for (const a of Object.values(
|
|
6988
|
+
for (const a of Object.values(Mt)) {
|
|
6991
6989
|
const s = new a();
|
|
6992
6990
|
for (const i of t.members) {
|
|
6993
6991
|
const l = await We(i, { _id: 1 });
|
|
@@ -7043,8 +7041,8 @@ _e.post("findOneAndUpdate", async function(t) {
|
|
|
7043
7041
|
await Kd(t);
|
|
7044
7042
|
});
|
|
7045
7043
|
const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
7046
|
-
e * (t.disintegration / 100) * (
|
|
7047
|
-
),
|
|
7044
|
+
e * (t.disintegration / 100) * (ma(t) || 1)
|
|
7045
|
+
), ma = (t) => /* @__PURE__ */ new Date() >= (t.meta.buffs.xp.expireAt ?? /* @__PURE__ */ new Date(0)) ? !1 : t.meta.buffs.xp.boost, au = async (t) => (await se.aggregate([
|
|
7048
7046
|
{
|
|
7049
7047
|
$setWindowFields: {
|
|
7050
7048
|
sortBy: { "meta.xp": -1 },
|
|
@@ -7071,12 +7069,12 @@ const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
|
7071
7069
|
calcXp: tu,
|
|
7072
7070
|
getCrewRank: au,
|
|
7073
7071
|
getCrewRanking: su,
|
|
7074
|
-
hasXpBuff:
|
|
7072
|
+
hasXpBuff: ma
|
|
7075
7073
|
}, Symbol.toStringTag, { value: "Module" })), S = async (t, e) => {
|
|
7076
7074
|
await se.findOneAndUpdate({ _id: t }, e, {
|
|
7077
7075
|
returnDocument: "after"
|
|
7078
7076
|
});
|
|
7079
|
-
},
|
|
7077
|
+
}, ya = async (t, e, a) => {
|
|
7080
7078
|
e.isProgressive ? await S(t, {
|
|
7081
7079
|
$addToSet: { "ornament.unlockedBadges": `${e.id}_${a}` }
|
|
7082
7080
|
}) : await S(t, {
|
|
@@ -7170,7 +7168,7 @@ const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
|
7170
7168
|
increaseLimit: iu,
|
|
7171
7169
|
removeMember: du,
|
|
7172
7170
|
repair: ou,
|
|
7173
|
-
unlockBadge:
|
|
7171
|
+
unlockBadge: ya
|
|
7174
7172
|
}, Symbol.toStringTag, { value: "Module" })), Tp = async (t, e = {}) => {
|
|
7175
7173
|
const a = await se.findById(t, e);
|
|
7176
7174
|
return a || null;
|
|
@@ -7186,17 +7184,17 @@ const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
|
7186
7184
|
channelId: s,
|
|
7187
7185
|
faction: i,
|
|
7188
7186
|
members: [t]
|
|
7189
|
-
}),
|
|
7187
|
+
}), ga = (t, e) => {
|
|
7190
7188
|
for (const [, a] of Object.entries(t.daily ?? {}))
|
|
7191
7189
|
if (!a?.[e] || !A(a[e], /* @__PURE__ */ new Date()))
|
|
7192
7190
|
return !1;
|
|
7193
7191
|
return !0;
|
|
7194
7192
|
}, Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7195
7193
|
__proto__: null,
|
|
7196
|
-
isAllDailyCompleted:
|
|
7194
|
+
isAllDailyCompleted: ga
|
|
7197
7195
|
}, Symbol.toStringTag, { value: "Module" })), pu = async (t) => {
|
|
7198
7196
|
const e = {}, { crew: a } = await t.populate("crew");
|
|
7199
|
-
for (const s of Object.values(
|
|
7197
|
+
for (const s of Object.values(xt)) {
|
|
7200
7198
|
const i = new s();
|
|
7201
7199
|
for (const l of a.members) {
|
|
7202
7200
|
const d = await We(l, { _id: 1, crew: 1 }).then(
|
|
@@ -7214,7 +7212,7 @@ const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
|
7214
7212
|
Object.values(e).forEach(([s, i]) => {
|
|
7215
7213
|
R("crewQuestUpdate", s, i);
|
|
7216
7214
|
});
|
|
7217
|
-
},
|
|
7215
|
+
}, ba = new p(
|
|
7218
7216
|
{
|
|
7219
7217
|
crew: {
|
|
7220
7218
|
type: p.Types.ObjectId,
|
|
@@ -7235,19 +7233,19 @@ const se = b?.Crew || w("Crew", _e), tu = (t, e) => Math.ceil(
|
|
|
7235
7233
|
},
|
|
7236
7234
|
{ minimize: !1 }
|
|
7237
7235
|
);
|
|
7238
|
-
|
|
7236
|
+
ba.post("findOneAndUpdate", async function(t) {
|
|
7239
7237
|
await pu(t);
|
|
7240
7238
|
});
|
|
7241
|
-
const Xe = b?.CrewQuest || w("CrewQuest",
|
|
7239
|
+
const Xe = b?.CrewQuest || w("CrewQuest", ba), xe = async (t, e) => {
|
|
7242
7240
|
await Xe.findOneAndUpdate({ crew: t }, e, {
|
|
7243
7241
|
upsert: !0,
|
|
7244
7242
|
returnDocument: "after"
|
|
7245
7243
|
});
|
|
7246
|
-
},
|
|
7244
|
+
}, wa = async (t, e) => {
|
|
7247
7245
|
await xe(t, {
|
|
7248
7246
|
$addToSet: { completed: e }
|
|
7249
7247
|
});
|
|
7250
|
-
},
|
|
7248
|
+
}, ha = async (t, e, a) => {
|
|
7251
7249
|
await xe(t, [
|
|
7252
7250
|
{
|
|
7253
7251
|
$addFields: {
|
|
@@ -7270,19 +7268,19 @@ const Xe = b?.CrewQuest || w("CrewQuest", wa), xe = async (t, e) => {
|
|
|
7270
7268
|
});
|
|
7271
7269
|
}, Np = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7272
7270
|
__proto__: null,
|
|
7273
|
-
completeDailyQuest:
|
|
7274
|
-
completeQuest:
|
|
7271
|
+
completeDailyQuest: ha,
|
|
7272
|
+
completeQuest: wa,
|
|
7275
7273
|
setActualVoiceMembers: fu,
|
|
7276
7274
|
setMaxVoiceMembers: mu
|
|
7277
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7275
|
+
}, Symbol.toStringTag, { value: "Module" })), _a = async (t) => await Xe.create({
|
|
7278
7276
|
crew: t
|
|
7279
7277
|
}), jp = async (t) => {
|
|
7280
7278
|
const e = await Xe.findOne({ crew: t });
|
|
7281
|
-
return e || await
|
|
7279
|
+
return e || await _a(t);
|
|
7282
7280
|
}, Ke = (t, e) => {
|
|
7283
7281
|
switch (t) {
|
|
7284
7282
|
case "quest":
|
|
7285
|
-
return
|
|
7283
|
+
return _a(e);
|
|
7286
7284
|
}
|
|
7287
7285
|
}, qp = async (t, e, a) => {
|
|
7288
7286
|
if (Array.isArray(e)) {
|
|
@@ -7304,36 +7302,36 @@ const Xe = b?.CrewQuest || w("CrewQuest", wa), xe = async (t, e) => {
|
|
|
7304
7302
|
)), s;
|
|
7305
7303
|
}
|
|
7306
7304
|
}, Lp = (t) => {
|
|
7307
|
-
|
|
7305
|
+
Ua(t);
|
|
7308
7306
|
};
|
|
7309
|
-
class Hp extends
|
|
7307
|
+
class Hp extends Ba.ObjectId {
|
|
7310
7308
|
}
|
|
7311
7309
|
export {
|
|
7312
7310
|
xo as ALL_QUESTS,
|
|
7313
7311
|
Xu as BET_MAX_VALUE,
|
|
7314
7312
|
Wu as BET_MIN_VALUE,
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7313
|
+
ms as BackgroundShopItem,
|
|
7314
|
+
ys as BoostXpShopItem,
|
|
7315
|
+
hs as BottleShopItem,
|
|
7318
7316
|
pp as COOLDOWN_COMMANDS,
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7317
|
+
gs as ChestShopItem,
|
|
7318
|
+
xt as CrewQuestQuests,
|
|
7319
|
+
Mt as CrewQuests,
|
|
7322
7320
|
Ju as EDITO_READ,
|
|
7323
|
-
|
|
7321
|
+
ws as EquipmentShopItem,
|
|
7324
7322
|
Hp as ObjectId,
|
|
7325
|
-
|
|
7323
|
+
bs as ObjectShopItem,
|
|
7326
7324
|
Zu as QUEST_ASSET_IMAGES,
|
|
7327
7325
|
r as Quest,
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7326
|
+
_s as RepairShopItem,
|
|
7327
|
+
xs as StoreShopItem,
|
|
7328
|
+
Ms as TitleShopItem,
|
|
7329
|
+
yt as UserDailyQuests,
|
|
7330
|
+
Ut as UserInventoryQuests,
|
|
7331
|
+
Bt as UserMetaQuests,
|
|
7332
|
+
vt as UserOrnamentsQuests,
|
|
7333
|
+
kt as UserQuestMetaQuests,
|
|
7334
|
+
Ct as UserQuestQuests,
|
|
7337
7335
|
Se as UserRepetableQuests,
|
|
7338
7336
|
Cu as banExists,
|
|
7339
7337
|
Uu as banGetters,
|
|
@@ -7346,10 +7344,10 @@ export {
|
|
|
7346
7344
|
Bu as createBan,
|
|
7347
7345
|
Ou as createBet,
|
|
7348
7346
|
Qp as createCrew,
|
|
7349
|
-
|
|
7347
|
+
_a as createCrewQuest,
|
|
7350
7348
|
Ru as createInvitations,
|
|
7351
7349
|
qu as createReminder,
|
|
7352
|
-
|
|
7350
|
+
fs as createSettings,
|
|
7353
7351
|
yp as createUserCrew,
|
|
7354
7352
|
Fp as createWarn,
|
|
7355
7353
|
Dp as crewGetters,
|
|
@@ -7385,8 +7383,8 @@ export {
|
|
|
7385
7383
|
z as findUserInventory,
|
|
7386
7384
|
pe as findUserMeta,
|
|
7387
7385
|
Mp as findUserOrnaments,
|
|
7388
|
-
|
|
7389
|
-
|
|
7386
|
+
oa as findUserQuest,
|
|
7387
|
+
da as findUserRaid,
|
|
7390
7388
|
tp as getBadgeEmojisFromId,
|
|
7391
7389
|
ep as getQuestBadgeEmojis,
|
|
7392
7390
|
Ee as invitationsModel,
|
|
@@ -7405,7 +7403,7 @@ export {
|
|
|
7405
7403
|
Ae as shopModel,
|
|
7406
7404
|
Iu as shopUpdates,
|
|
7407
7405
|
ye as updateUserCooldown,
|
|
7408
|
-
|
|
7406
|
+
Vt as updateUserCrew,
|
|
7409
7407
|
Zc as updateUserDailyReport,
|
|
7410
7408
|
Ks as updateUserEncyclopedia,
|
|
7411
7409
|
Ye as updateUserGames,
|
|
@@ -7447,6 +7445,7 @@ export {
|
|
|
7447
7445
|
Bp as userRaidGetters,
|
|
7448
7446
|
he as userRaidModel,
|
|
7449
7447
|
vp as userRaidUpdates,
|
|
7448
|
+
B as userSchema,
|
|
7450
7449
|
kp as userShopGetters,
|
|
7451
7450
|
Ve as userShopModel,
|
|
7452
7451
|
Cp as userShopUpdates,
|