@opfr/services 0.27.1 → 0.27.2
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 +4 -4
- package/dist/index.umd.js +1 -1
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -7382,7 +7382,7 @@ const jg = async (t, a, s, { berry: n, xp: r }) => {
|
|
|
7382
7382
|
marine_ring: "<:marine_ring:1308766839823663184>",
|
|
7383
7383
|
marine_strap: "<:marine_strap:1308766838032957520>",
|
|
7384
7384
|
pirate_weapon: "<:pirate_weapon:1308766750497705984>",
|
|
7385
|
-
pirate_helmet: "<:
|
|
7385
|
+
pirate_helmet: "<:pirate_helmet:1308766752171102252>",
|
|
7386
7386
|
pirate_ring: "<:pirate_ring:1308766574081212506>",
|
|
7387
7387
|
pirate_belt: "<:pirate_belt:1308766575259553792>",
|
|
7388
7388
|
revolutionary_belt: "<:revolutionary_belt:1308766578967576576>",
|
|
@@ -8218,7 +8218,7 @@ const mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8218
8218
|
}, Nm = async (t) => {
|
|
8219
8219
|
var s, n;
|
|
8220
8220
|
const a = await Pr(t.user._id);
|
|
8221
|
-
R(t.xp.amount) >=
|
|
8221
|
+
R(t.xp.amount) >= 30 && !at(a, "training") && (await st(a.user._id, "training"), Dt("raidUnlock", t.user._id, "training")), (((n = (s = a.obtainedRewards.training) == null ? void 0 : s.filter((r) => r.startsWith("end_"))) == null ? void 0 : n.length) ?? 0) >= 4 && !at(a, "resources") && (await st(a.user._id, "resources"), Dt("raidUnlock", t.user._id, "resources"));
|
|
8222
8222
|
}, Pm = async (t) => {
|
|
8223
8223
|
const a = await Pr(t.user._id);
|
|
8224
8224
|
ya(t.equipmentList, (s) => s.id).map((s) => pi(s)).filter((s) => s.panoply === "adventurer").length === 6 && !at(a, "pirate_cave") && (await st(a.user._id, "pirate_cave"), Dt("raidUnlock", t.user._id, "pirate_cave")), (t.itemList.get("map_fragment") ?? 0) >= 5 && !at(a, "mysterious_island") && (await st(a.user._id, "mysterious_island"), await Be(
|
|
@@ -8350,10 +8350,10 @@ const Fe = ((Ts = $) == null ? void 0 : Ts.UserMeta) || T("UserMeta", ut), yr =
|
|
|
8350
8350
|
(a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && (!s || !Te(s)) ? r : 0),
|
|
8351
8351
|
1
|
|
8352
8352
|
), Ue = async (t, a, s) => {
|
|
8353
|
-
const n = a ?? await Lt(t, { buffs:
|
|
8353
|
+
const n = a ?? await Lt(t, { buffs: 0, xp: 0 }), r = s ?? await ts(t, { itemList: 0, equipmentList: 0 });
|
|
8354
8354
|
return ((Za(n).vitality ?? 0) + Va(r).vitality) * wi + bi;
|
|
8355
8355
|
}, zm = async (t, a, s, n) => {
|
|
8356
|
-
const r = s ?? await Lt(t, { buffs:
|
|
8356
|
+
const r = s ?? await Lt(t, { buffs: 0, xp: 0 }), i = n ?? await ts(t, { itemList: 0, equipmentList: 0 }), d = oa(
|
|
8357
8357
|
Za(r),
|
|
8358
8358
|
Va(i),
|
|
8359
8359
|
(c, m) => c + m
|