@opfr/definitions 1.1.1 → 1.2.0
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/entities/equipments/index.d.ts +1 -0
- package/dist/entities/equipments/index.d.ts.map +1 -1
- package/dist/entities/equipments/index.js.map +1 -1
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +2 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/index.es.js +251 -85
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC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AAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,eAAe,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAExE,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/equipments/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,MAAM,KAAK,CAAC;AA+ClC,cAAc,aAAa,CAAC"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,M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;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,YAAY,CAAC;IAErB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;QAC9B,KAAK,EAAE,IAAI,EAAE,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACrB,CAAC;IAEF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AA6DA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AA6DA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as o } from "i18next";
|
|
2
|
-
import { emojis as
|
|
3
|
-
import { formatNumber as
|
|
4
|
-
const
|
|
2
|
+
import { emojis as s } from "@opfr/emojis";
|
|
3
|
+
import { formatNumber as a } from "@opfr/utils-lang";
|
|
4
|
+
const D = [
|
|
5
5
|
"ring",
|
|
6
6
|
"strap",
|
|
7
7
|
"boots",
|
|
@@ -19,7 +19,7 @@ const h = [
|
|
|
19
19
|
"collar",
|
|
20
20
|
"belt",
|
|
21
21
|
"weapon"
|
|
22
|
-
],
|
|
22
|
+
], G = {
|
|
23
23
|
collar: "collar",
|
|
24
24
|
boots: "boots",
|
|
25
25
|
ring_left: "ring",
|
|
@@ -29,7 +29,7 @@ const h = [
|
|
|
29
29
|
helmet: "helmet",
|
|
30
30
|
belt: "belt",
|
|
31
31
|
weapon: "weapon"
|
|
32
|
-
},
|
|
32
|
+
}, H = [
|
|
33
33
|
"OPEN_CHEST",
|
|
34
34
|
"APPLY_BUFF",
|
|
35
35
|
"ALCOHOL_DRINK",
|
|
@@ -45,7 +45,169 @@ const h = [
|
|
|
45
45
|
"RAID_REDUCE_COOLDOWN",
|
|
46
46
|
"CREW_XP_BUFF",
|
|
47
47
|
"CREW_REPAIR"
|
|
48
|
-
],
|
|
48
|
+
], v = ["single", "multiple", "all"], R = [
|
|
49
|
+
"aeronef",
|
|
50
|
+
"anchor",
|
|
51
|
+
"ancient_key",
|
|
52
|
+
"background",
|
|
53
|
+
"beer",
|
|
54
|
+
"boost_day",
|
|
55
|
+
"boost_week",
|
|
56
|
+
"bottle_xp_1",
|
|
57
|
+
"bottle_xp_2",
|
|
58
|
+
"bottle_xp_3",
|
|
59
|
+
"bottle_xp_4",
|
|
60
|
+
"bowl",
|
|
61
|
+
"bowl_cereal",
|
|
62
|
+
"bread",
|
|
63
|
+
"cereal",
|
|
64
|
+
"cheese",
|
|
65
|
+
"chest_1",
|
|
66
|
+
"chest_2",
|
|
67
|
+
"chest_3",
|
|
68
|
+
"chest_4",
|
|
69
|
+
"chest_blacksmith_1",
|
|
70
|
+
"chest_blacksmith_2",
|
|
71
|
+
"chest_blacksmith_3",
|
|
72
|
+
"chest_christmas",
|
|
73
|
+
"christmas_present",
|
|
74
|
+
"clover",
|
|
75
|
+
"compass",
|
|
76
|
+
"cotton",
|
|
77
|
+
"cursed_hawthorn",
|
|
78
|
+
"dragon_heart",
|
|
79
|
+
"ebony_poppy",
|
|
80
|
+
"edelweiss",
|
|
81
|
+
"egg",
|
|
82
|
+
"elemental_concentrate_earth",
|
|
83
|
+
"elemental_concentrate_fire",
|
|
84
|
+
"elemental_concentrate_life",
|
|
85
|
+
"elemental_concentrate_moon",
|
|
86
|
+
"elemental_concentrate_water",
|
|
87
|
+
"elemental_concentrate_wind",
|
|
88
|
+
"emerald",
|
|
89
|
+
"empty_chest",
|
|
90
|
+
"empty_scroll",
|
|
91
|
+
"enchant_cereal",
|
|
92
|
+
"enchant_clover",
|
|
93
|
+
"enchant_cotton",
|
|
94
|
+
"enchant_ebony_poppy",
|
|
95
|
+
"enchant_hemp",
|
|
96
|
+
"enchant_iron",
|
|
97
|
+
"enchant_leather",
|
|
98
|
+
"enchant_manganese",
|
|
99
|
+
"enchant_poppy",
|
|
100
|
+
"enchant_pure_water",
|
|
101
|
+
"enchant_rope",
|
|
102
|
+
"enchant_rose",
|
|
103
|
+
"enchant_sea_salt",
|
|
104
|
+
"enchant_tissue",
|
|
105
|
+
"enchant_wood",
|
|
106
|
+
"enchanted_emerald",
|
|
107
|
+
"enchanted_ruby",
|
|
108
|
+
"enchanted_sapphire",
|
|
109
|
+
"enchanted_stone",
|
|
110
|
+
"essence_earth",
|
|
111
|
+
"essence_fire",
|
|
112
|
+
"essence_life",
|
|
113
|
+
"essence_moon",
|
|
114
|
+
"essence_water",
|
|
115
|
+
"essence_wind",
|
|
116
|
+
"fairy_wing",
|
|
117
|
+
"flour",
|
|
118
|
+
"fruit",
|
|
119
|
+
"glass_bottle",
|
|
120
|
+
"glue",
|
|
121
|
+
"hammock",
|
|
122
|
+
"hemp",
|
|
123
|
+
"iron",
|
|
124
|
+
"iron_ore",
|
|
125
|
+
"leather",
|
|
126
|
+
"little_cookie_christmas",
|
|
127
|
+
"lock",
|
|
128
|
+
"mandrake",
|
|
129
|
+
"manganese",
|
|
130
|
+
"map_fragment",
|
|
131
|
+
"milk",
|
|
132
|
+
"mithril",
|
|
133
|
+
"mugwort",
|
|
134
|
+
"mysterious_egg_christmas",
|
|
135
|
+
"nail",
|
|
136
|
+
"obsidian",
|
|
137
|
+
"omelet",
|
|
138
|
+
"phoenix_feather",
|
|
139
|
+
"poppy",
|
|
140
|
+
"pure_water",
|
|
141
|
+
"repair_kit",
|
|
142
|
+
"rescue_boat",
|
|
143
|
+
"rhum",
|
|
144
|
+
"rope",
|
|
145
|
+
"rose",
|
|
146
|
+
"ruby",
|
|
147
|
+
"rudder",
|
|
148
|
+
"saffron",
|
|
149
|
+
"sailing_boat",
|
|
150
|
+
"salt_water",
|
|
151
|
+
"sapphire",
|
|
152
|
+
"scrap",
|
|
153
|
+
"scroll_agility",
|
|
154
|
+
"scroll_chance",
|
|
155
|
+
"scroll_intelligence",
|
|
156
|
+
"scroll_strength",
|
|
157
|
+
"scroll_vitality",
|
|
158
|
+
"scroll_wisdom",
|
|
159
|
+
"sea_salt",
|
|
160
|
+
"siren_tear",
|
|
161
|
+
"strange_gem",
|
|
162
|
+
"strange_stone",
|
|
163
|
+
"strawberry_cake",
|
|
164
|
+
"sugar",
|
|
165
|
+
"sugar_cane_christmas",
|
|
166
|
+
"tissue",
|
|
167
|
+
"title",
|
|
168
|
+
"tools",
|
|
169
|
+
"toy",
|
|
170
|
+
"wine",
|
|
171
|
+
"wood",
|
|
172
|
+
"wood_plank"
|
|
173
|
+
], M = [
|
|
174
|
+
"adventurer_belt",
|
|
175
|
+
"adventurer_boots",
|
|
176
|
+
"adventurer_collar",
|
|
177
|
+
"adventurer_helmet",
|
|
178
|
+
"adventurer_strap",
|
|
179
|
+
"adventurer_weapon",
|
|
180
|
+
"christmas_belt",
|
|
181
|
+
"christmas_boots",
|
|
182
|
+
"christmas_collar",
|
|
183
|
+
"christmas_gloves",
|
|
184
|
+
"christmas_helmet",
|
|
185
|
+
"christmas_strap",
|
|
186
|
+
"christmas_weapon",
|
|
187
|
+
"herbalist_belt",
|
|
188
|
+
"herbalist_boots",
|
|
189
|
+
"herbalist_helmet",
|
|
190
|
+
"herbalist_weapon",
|
|
191
|
+
"little_blacksmith_collar",
|
|
192
|
+
"little_blacksmith_ring",
|
|
193
|
+
"little_blacksmith_strap",
|
|
194
|
+
"little_blacksmith_weapon",
|
|
195
|
+
"marine_collar",
|
|
196
|
+
"marine_helmet",
|
|
197
|
+
"marine_ring",
|
|
198
|
+
"marine_strap",
|
|
199
|
+
"pirate_belt",
|
|
200
|
+
"pirate_helmet",
|
|
201
|
+
"pirate_ring",
|
|
202
|
+
"pirate_weapon",
|
|
203
|
+
"revolutionary_belt",
|
|
204
|
+
"revolutionary_boots",
|
|
205
|
+
"revolutionary_helmet",
|
|
206
|
+
"revolutionary_ring"
|
|
207
|
+
], y = [
|
|
208
|
+
...R,
|
|
209
|
+
...M
|
|
210
|
+
], S = {
|
|
49
211
|
pirate: {
|
|
50
212
|
name: "pirate",
|
|
51
213
|
color: "#8A1623",
|
|
@@ -66,15 +228,15 @@ const h = [
|
|
|
66
228
|
color: "#fff",
|
|
67
229
|
role: "1147953458507423874"
|
|
68
230
|
}
|
|
69
|
-
},
|
|
231
|
+
}, k = "citizen";
|
|
70
232
|
var e = /* @__PURE__ */ ((r) => (r.BASIC = "BASIC", r.COMMON = "COMMON", r.RARE = "RARE", r.EPIC = "EPIC", r.LEGENDARY = "LEGENDARY", r.MYTHIC = "MYTHIC", r))(e || {});
|
|
71
|
-
const
|
|
233
|
+
const x = [
|
|
72
234
|
e.COMMON,
|
|
73
235
|
e.RARE,
|
|
74
236
|
e.EPIC,
|
|
75
237
|
e.LEGENDARY,
|
|
76
238
|
e.MYTHIC
|
|
77
|
-
],
|
|
239
|
+
], B = {
|
|
78
240
|
BASIC: {
|
|
79
241
|
color: "#fff",
|
|
80
242
|
strength: 0,
|
|
@@ -131,7 +293,7 @@ const v = [
|
|
|
131
293
|
ns: "common"
|
|
132
294
|
})
|
|
133
295
|
}
|
|
134
|
-
},
|
|
296
|
+
}, j = "background_default", F = [
|
|
135
297
|
{
|
|
136
298
|
id: "berry",
|
|
137
299
|
path: {
|
|
@@ -486,7 +648,7 @@ const v = [
|
|
|
486
648
|
},
|
|
487
649
|
progressive: !0
|
|
488
650
|
}
|
|
489
|
-
],
|
|
651
|
+
], U = [
|
|
490
652
|
{
|
|
491
653
|
id: "black-jack",
|
|
492
654
|
path: {
|
|
@@ -530,7 +692,7 @@ const v = [
|
|
|
530
692
|
path: { default: "b_selfish.webp", cropped: "cropped_b_selfish.webp" },
|
|
531
693
|
progressive: !1
|
|
532
694
|
}
|
|
533
|
-
],
|
|
695
|
+
], w = {
|
|
534
696
|
exploration: {
|
|
535
697
|
id: "writeChat",
|
|
536
698
|
img: "exploration",
|
|
@@ -844,29 +1006,29 @@ const v = [
|
|
|
844
1006
|
],
|
|
845
1007
|
crew: !1
|
|
846
1008
|
}
|
|
847
|
-
},
|
|
1009
|
+
}, V = (r) => !!r.isProgressive, z = [
|
|
848
1010
|
"b_marine",
|
|
849
1011
|
"b_revolutionary",
|
|
850
1012
|
"b_pirate"
|
|
851
|
-
],
|
|
852
|
-
const [
|
|
853
|
-
return
|
|
854
|
-
}),
|
|
855
|
-
const [
|
|
856
|
-
return !
|
|
857
|
-
const [
|
|
858
|
-
return
|
|
1013
|
+
], X = (r, p) => r.filter((_) => {
|
|
1014
|
+
const [t] = _.split("_"), i = Object.values(w).find((c) => c.id === t);
|
|
1015
|
+
return i ? i.crew === p : !1;
|
|
1016
|
+
}), $ = (r) => r.filter((p, _, t) => {
|
|
1017
|
+
const [i, c] = p.split("_");
|
|
1018
|
+
return !t.find((l) => {
|
|
1019
|
+
const [C, m] = l.split("_");
|
|
1020
|
+
return i !== C ? !1 : c < m;
|
|
859
1021
|
});
|
|
860
|
-
}),
|
|
1022
|
+
}), K = ["idiot", "satan", "edito", "toy"], W = {
|
|
861
1023
|
satan: "satan",
|
|
862
1024
|
idiot: "idiot",
|
|
863
1025
|
edito: "edito",
|
|
864
1026
|
toy: "toy"
|
|
865
|
-
},
|
|
866
|
-
amount:
|
|
867
|
-
emoji:
|
|
1027
|
+
}, Q = ["default", "christmas"], A = (r) => Math.round(5e3 * Math.pow(200, 0.01 * r) / 10) * 10, b = (r) => r >= 1 ? b(r - 1) + A(r) : 0, I = (r, p = 0) => r < b(p + 1) ? p : I(r, p + 1), u = (r) => Math.round(1e5 * Math.pow(50, 0.01 * r) / 10) * 10, n = (r) => r >= 1 ? n(r - 1) + u(r) : 0, O = (r, p = 0) => r < n(p + 1) ? p : O(r, p + 1), J = ([r, p]) => p ? `${o("xp.user", { ns: "common", amount: a(r), emoji: s.xp })} ${o("xp.crew", { amount: a(p), emoji: s.xp, ns: "common" })}` : o("xp.user", {
|
|
1028
|
+
amount: a(r),
|
|
1029
|
+
emoji: s.xp,
|
|
868
1030
|
ns: "common"
|
|
869
|
-
}),
|
|
1031
|
+
}), q = {
|
|
870
1032
|
cooldown: {
|
|
871
1033
|
casino: [],
|
|
872
1034
|
work: []
|
|
@@ -881,45 +1043,45 @@ const v = [
|
|
|
881
1043
|
xp: {
|
|
882
1044
|
global: []
|
|
883
1045
|
}
|
|
884
|
-
},
|
|
1046
|
+
}, Z = (r) => r.expireAt && r.expireAt < /* @__PURE__ */ new Date(), ee = ({
|
|
885
1047
|
multiplier: r,
|
|
886
1048
|
origin: p,
|
|
887
1049
|
startIn: _,
|
|
888
|
-
endIn:
|
|
1050
|
+
endIn: t
|
|
889
1051
|
}) => ({
|
|
890
1052
|
multiplier: r,
|
|
891
1053
|
origin: p,
|
|
892
|
-
expireAt:
|
|
1054
|
+
expireAt: t ? new Date(Date.now() + ((_ ?? 0) + t) * 60 * 60 * 1e3) : null,
|
|
893
1055
|
startAt: _ ? new Date(Date.now() + _ * 60 * 60 * 1e3) : null
|
|
894
|
-
}),
|
|
1056
|
+
}), re = [
|
|
895
1057
|
"vitality",
|
|
896
1058
|
"strength",
|
|
897
1059
|
"agility",
|
|
898
1060
|
"intelligence",
|
|
899
1061
|
"chance",
|
|
900
1062
|
"wisdom"
|
|
901
|
-
],
|
|
1063
|
+
], h = 10, E = 1, N = [
|
|
902
1064
|
[200, 4],
|
|
903
1065
|
[100, 3],
|
|
904
1066
|
[50, 2],
|
|
905
|
-
[0,
|
|
906
|
-
],
|
|
1067
|
+
[0, E]
|
|
1068
|
+
], pe = 100, _e = 10, d = (r) => {
|
|
907
1069
|
for (const [p, _] of N)
|
|
908
1070
|
if (r >= p)
|
|
909
1071
|
return _;
|
|
910
|
-
return
|
|
911
|
-
},
|
|
1072
|
+
return E;
|
|
1073
|
+
}, oe = (r, p) => {
|
|
912
1074
|
let _ = 0;
|
|
913
1075
|
for (; p > 0; p--)
|
|
914
|
-
_ +=
|
|
1076
|
+
_ += d(r), r++;
|
|
915
1077
|
return _;
|
|
916
|
-
},
|
|
1078
|
+
}, te = (r) => {
|
|
917
1079
|
let p = 0;
|
|
918
|
-
for (; r > 0; r -=
|
|
1080
|
+
for (; r > 0; r -= d(p))
|
|
919
1081
|
p++;
|
|
920
1082
|
return p;
|
|
921
|
-
},
|
|
922
|
-
class
|
|
1083
|
+
}, ie = (r, p) => p * h - Object.values(r).reduce((_, t) => _ + t, 0), ce = ["category", "alpha", "quantity"], se = (r, p) => p === null ? null : r === p ? `-${r}` : p, ae = 10;
|
|
1084
|
+
class be {
|
|
923
1085
|
title = void 0;
|
|
924
1086
|
titleId;
|
|
925
1087
|
badge;
|
|
@@ -932,54 +1094,58 @@ class ce {
|
|
|
932
1094
|
repeatable;
|
|
933
1095
|
}
|
|
934
1096
|
var Y = /* @__PURE__ */ ((r) => (r.COMPLETED = "COMPLETED", r.IN_PROGRESS = "IN_PROGRESS", r))(Y || {});
|
|
935
|
-
const
|
|
1097
|
+
const ne = 0.1, Ee = 3, de = 100;
|
|
936
1098
|
export {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1099
|
+
Q as BAG_IDS,
|
|
1100
|
+
w as BadgeList,
|
|
1101
|
+
be as BaseQuest,
|
|
1102
|
+
re as CHARACTERISTICS,
|
|
1103
|
+
E as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
942
1104
|
N as CHARACTERISTIC_POINT_COSTS,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1105
|
+
h as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
1106
|
+
de as CREW_DEFAULT_DISINTEGRATION,
|
|
1107
|
+
Ee as CREW_DEFAULT_MEMBER_LIMIT,
|
|
1108
|
+
ne as CREW_DEFAULT_XP_PERCENT,
|
|
1109
|
+
j as DEFAULT_BACKGROUND_ID,
|
|
1110
|
+
q as DEFAULT_BUFF_TREE,
|
|
1111
|
+
k as DEFAULT_FACTION,
|
|
1112
|
+
pe as DEFAULT_MAX_HP,
|
|
1113
|
+
H as EFFECT_KEYS,
|
|
1114
|
+
y as ENTITY_IMAGE_IDS,
|
|
1115
|
+
G as EQUIPMENT_FROM_SLOT_TO_TYPE,
|
|
1116
|
+
M as EQUIPMENT_IMAGE_IDS,
|
|
953
1117
|
L as EQUIPMENT_SLOT,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
1118
|
+
D as EQUIPMENT_TYPE,
|
|
1119
|
+
S as FACTIONS,
|
|
1120
|
+
z as FactionBadgeList,
|
|
1121
|
+
_e as HP_PER_VITALITY,
|
|
1122
|
+
R as ITEM_IMAGE_IDS,
|
|
1123
|
+
K as PROFILE_ASSETS_ID,
|
|
1124
|
+
F as PROGRESSIVE_BADGES,
|
|
960
1125
|
Y as QuestStatus,
|
|
961
|
-
|
|
962
|
-
|
|
1126
|
+
B as RANKS,
|
|
1127
|
+
x as RANK_IDS_WITHOUT_BASIC,
|
|
963
1128
|
e as RankId,
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1129
|
+
ae as SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT,
|
|
1130
|
+
ce as SORT_VALUES,
|
|
1131
|
+
U as STRICT_BADGES,
|
|
1132
|
+
v as USAGE_MODES,
|
|
1133
|
+
u as crewXpToLevel,
|
|
1134
|
+
J as displayXp,
|
|
1135
|
+
X as filterCrewBadges,
|
|
1136
|
+
$ as filterRarity,
|
|
1137
|
+
ie as getAvailableCharacteristicPoints,
|
|
1138
|
+
d as getCharacteristicCost,
|
|
1139
|
+
oe as getComputedCharacteristicCost,
|
|
1140
|
+
te as getComputedCharacteristicValue,
|
|
1141
|
+
O as getCurrentCrewLevel,
|
|
1142
|
+
I as getCurrentLevel,
|
|
1143
|
+
se as getNewSortValue,
|
|
1144
|
+
Z as hasBuffExpired,
|
|
1145
|
+
W as profileAssets,
|
|
1146
|
+
V as progressiveBadgeTypeGuard,
|
|
1147
|
+
n as totalCrewXpToLevel,
|
|
1148
|
+
b as totalXpToLevel,
|
|
1149
|
+
ee as transformToDBBuff,
|
|
1150
|
+
A as xpToLevel
|
|
985
1151
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(p,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("i18next"),require("@opfr/emojis"),require("@opfr/utils-lang")):typeof define=="function"&&define.amd?define(["exports","i18next","@opfr/emojis","@opfr/utils-lang"],i):(p=typeof globalThis<"u"?globalThis:p||self,i(p.definitions={},p.i18next,p["@opfr/emojis"],p["@opfr/utils-lang"]))})(this,(function(p,i,b,t){"use strict";const N=["ring","strap","boots","helmet","collar","belt","weapon"],u=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],T={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},Y=["OPEN_CHEST","APPLY_BUFF","ALCOHOL_DRINK","HEAL_HP","GAIN_XP","GAIN_RANDOM_XP","BOOST","DRINK_BOTTLE","DROP","CLEAR_HANGOVER","UNLOCK_ASSET","ADD_SCROLL_CHARAC","RAID_REDUCE_COOLDOWN","CREW_XP_BUFF","CREW_REPAIR"],P={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},L="citizen";var e=(r=>(r.BASIC="BASIC",r.COMMON="COMMON",r.RARE="RARE",r.EPIC="EPIC",r.LEGENDARY="LEGENDARY",r.MYTHIC="MYTHIC",r))(e||{});const f=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],D={BASIC:{color:"#fff",strength:0,id:e.BASIC,name:(r,_=1)=>i.t(`ranks.${e.BASIC}.text`,{count:_,context:r,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(r,_=1)=>i.t(`ranks.${e.COMMON}.text`,{count:_,context:r,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(r,_=1)=>i.t(`ranks.${e.RARE}.text`,{count:_,context:r,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(r,_=1)=>i.t(`ranks.${e.EPIC}.text`,{count:_,context:r,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(r,_=1)=>i.t(`ranks.${e.LEGENDARY}.text`,{count:_,context:r,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(r,_=1)=>i.t(`ranks.${e.MYTHIC}.text`,{count:_,context:r,ns:"common"})}},h="background_default",g=[{id:"berry",path:{cropped:{RARE:"cropped_b_berry_RARE.webp",MYTHIC:"cropped_b_berry_MYTHIC.webp",LEGENDARY:"cropped_b_berry_LEGENDARY.webp",EPIC:"cropped_b_berry_EPIC.webp",COMMON:"cropped_b_berry_COMMON.webp"},default:{RARE:"b_berry_RARE.webp",MYTHIC:"b_berry_MYTHIC.webp",LEGENDARY:"b_berry_LEGENDARY.webp",EPIC:"b_berry_EPIC.webp",COMMON:"b_berry_COMMON.webp"}},progressive:!0},{id:"broship",path:{cropped:{RARE:"cropped_b_broship_RARE.webp",MYTHIC:"cropped_b_broship_MYTHIC.webp",LEGENDARY:"cropped_b_broship_LEGENDARY.webp",EPIC:"cropped_b_broship_EPIC.webp",COMMON:"cropped_b_broship_COMMON.webp"},default:{RARE:"b_broship_RARE.webp",MYTHIC:"b_broship_MYTHIC.webp",LEGENDARY:"b_broship_LEGENDARY.webp",EPIC:"b_broship_EPIC.webp",COMMON:"b_broship_COMMON.webp"}},progressive:!0},{id:"carpenter",path:{cropped:{RARE:"cropped_b_carpenter_RARE.webp",MYTHIC:"cropped_b_carpenter_MYTHIC.webp",LEGENDARY:"cropped_b_carpenter_LEGENDARY.webp",EPIC:"cropped_b_carpenter_EPIC.webp",COMMON:"cropped_b_carpenter_COMMON.webp"},default:{RARE:"b_carpenter_RARE.webp",MYTHIC:"b_carpenter_MYTHIC.webp",LEGENDARY:"b_carpenter_LEGENDARY.webp",EPIC:"b_carpenter_EPIC.webp",COMMON:"b_carpenter_COMMON.webp"}},progressive:!0},{id:"casino",path:{cropped:{MYTHIC:"cropped_b_casino_MYTHIC.webp",LEGENDARY:"cropped_b_casino_LEGENDARY.webp"},default:{MYTHIC:"b_casino_MYTHIC.webp",LEGENDARY:"b_casino_LEGENDARY.webp"}},progressive:!0},{id:"communism",path:{cropped:{RARE:"cropped_b_communism_RARE.webp",MYTHIC:"cropped_b_communism_MYTHIC.webp",LEGENDARY:"cropped_b_communism_LEGENDARY.webp",EPIC:"cropped_b_communism_EPIC.webp",COMMON:"cropped_b_communism_COMMON.webp"},default:{RARE:"b_communism_RARE.webp",MYTHIC:"b_communism_MYTHIC.webp",LEGENDARY:"b_communism_LEGENDARY.webp",EPIC:"b_communism_EPIC.webp",COMMON:"b_communism_COMMON.webp"}},progressive:!0},{id:"craft",path:{cropped:{RARE:"cropped_b_craft_RARE.webp",MYTHIC:"cropped_b_craft_MYTHIC.webp",LEGENDARY:"cropped_b_craft_LEGENDARY.webp",EPIC:"cropped_b_craft_EPIC.webp",COMMON:"cropped_b_craft_COMMON.webp"},default:{RARE:"b_craft_RARE.webp",MYTHIC:"b_craft_MYTHIC.webp",LEGENDARY:"b_craft_LEGENDARY.webp",EPIC:"b_craft_EPIC.webp",COMMON:"b_craft_COMMON.webp"}},progressive:!0},{id:"crewship",path:{cropped:{RARE:"cropped_b_crewship_RARE.webp",MYTHIC:"cropped_b_crewship_MYTHIC.webp",LEGENDARY:"cropped_b_crewship_LEGENDARY.webp",EPIC:"cropped_b_crewship_EPIC.webp",COMMON:"cropped_b_crewship_COMMON.webp"},default:{RARE:"b_crewship_RARE.webp",MYTHIC:"b_crewship_MYTHIC.webp",LEGENDARY:"b_crewship_LEGENDARY.webp",EPIC:"b_crewship_EPIC.webp",COMMON:"b_crewship_COMMON.webp"}},progressive:!0},{id:"default",path:{cropped:{RARE:"cropped_b_default_RARE.webp",MYTHIC:"cropped_b_default_MYTHIC.webp",LEGENDARY:"cropped_b_default_LEGENDARY.webp",EPIC:"cropped_b_default_EPIC.webp",COMMON:"cropped_b_default_COMMON.webp"},default:{RARE:"b_default_RARE.webp",MYTHIC:"b_default_MYTHIC.webp",LEGENDARY:"b_default_LEGENDARY.webp",EPIC:"b_default_EPIC.webp",COMMON:"b_default_COMMON.webp"}},progressive:!0},{id:"ecrire",path:{cropped:{RARE:"cropped_b_ecrire_RARE.webp",MYTHIC:"cropped_b_ecrire_MYTHIC.webp",LEGENDARY:"cropped_b_ecrire_LEGENDARY.webp",EPIC:"cropped_b_ecrire_EPIC.webp",COMMON:"cropped_b_ecrire_COMMON.webp"},default:{RARE:"b_ecrire_RARE.webp",MYTHIC:"b_ecrire_MYTHIC.webp",LEGENDARY:"b_ecrire_LEGENDARY.webp",EPIC:"b_ecrire_EPIC.webp",COMMON:"b_ecrire_COMMON.webp"}},progressive:!0},{id:"ermite",path:{cropped:{RARE:"cropped_b_ermite_RARE.webp",MYTHIC:"cropped_b_ermite_MYTHIC.webp",LEGENDARY:"cropped_b_ermite_LEGENDARY.webp",EPIC:"cropped_b_ermite_EPIC.webp",COMMON:"cropped_b_ermite_COMMON.webp"},default:{RARE:"b_ermite_RARE.webp",MYTHIC:"b_ermite_MYTHIC.webp",LEGENDARY:"b_ermite_LEGENDARY.webp",EPIC:"b_ermite_EPIC.webp",COMMON:"b_ermite_COMMON.webp"}},progressive:!0},{id:"exploration",path:{cropped:{RARE:"cropped_b_exploration_RARE.webp",MYTHIC:"cropped_b_exploration_MYTHIC.webp",LEGENDARY:"cropped_b_exploration_LEGENDARY.webp",EPIC:"cropped_b_exploration_EPIC.webp",COMMON:"cropped_b_exploration_COMMON.webp"},default:{RARE:"b_exploration_RARE.webp",MYTHIC:"b_exploration_MYTHIC.webp",LEGENDARY:"b_exploration_LEGENDARY.webp",EPIC:"b_exploration_EPIC.webp",COMMON:"b_exploration_COMMON.webp"}},progressive:!0},{id:"marine",path:{cropped:{RARE:"cropped_b_marine_RARE.webp",MYTHIC:"cropped_b_marine_MYTHIC.webp",LEGENDARY:"cropped_b_marine_LEGENDARY.webp",EPIC:"cropped_b_marine_EPIC.webp",COMMON:"cropped_b_marine_COMMON.webp"},default:{RARE:"b_marine_RARE.webp",MYTHIC:"b_marine_MYTHIC.webp",LEGENDARY:"b_marine_LEGENDARY.webp",EPIC:"b_marine_EPIC.webp",COMMON:"b_marine_COMMON.webp"}},progressive:!0},{id:"mode",path:{cropped:{RARE:"cropped_b_mode_RARE.webp",MYTHIC:"cropped_b_mode_MYTHIC.webp",LEGENDARY:"cropped_b_mode_LEGENDARY.webp",EPIC:"cropped_b_mode_EPIC.webp",COMMON:"cropped_b_mode_COMMON.webp"},default:{RARE:"b_mode_RARE.webp",MYTHIC:"b_mode_MYTHIC.webp",LEGENDARY:"b_mode_LEGENDARY.webp",EPIC:"b_mode_EPIC.webp",COMMON:"b_mode_COMMON.webp"}},progressive:!0},{id:"pirate",path:{cropped:{RARE:"cropped_b_pirate_RARE.webp",MYTHIC:"cropped_b_pirate_MYTHIC.webp",LEGENDARY:"cropped_b_pirate_LEGENDARY.webp",EPIC:"cropped_b_pirate_EPIC.webp",COMMON:"cropped_b_pirate_COMMON.webp"},default:{RARE:"b_pirate_RARE.webp",MYTHIC:"b_pirate_MYTHIC.webp",LEGENDARY:"b_pirate_LEGENDARY.webp",EPIC:"b_pirate_EPIC.webp",COMMON:"b_pirate_COMMON.webp"}},progressive:!0},{id:"recipe",path:{cropped:{RARE:"cropped_b_recipe_RARE.webp",MYTHIC:"cropped_b_recipe_MYTHIC.webp",LEGENDARY:"cropped_b_recipe_LEGENDARY.webp",EPIC:"cropped_b_recipe_EPIC.webp",COMMON:"cropped_b_recipe_COMMON.webp"},default:{RARE:"b_recipe_RARE.webp",MYTHIC:"b_recipe_MYTHIC.webp",LEGENDARY:"b_recipe_LEGENDARY.webp",EPIC:"b_recipe_EPIC.webp",COMMON:"b_recipe_COMMON.webp"}},progressive:!0},{id:"revolutionary",path:{cropped:{RARE:"cropped_b_revolutionary_RARE.webp",MYTHIC:"cropped_b_revolutionary_MYTHIC.webp",LEGENDARY:"cropped_b_revolutionary_LEGENDARY.webp",EPIC:"cropped_b_revolutionary_EPIC.webp",COMMON:"cropped_b_revolutionary_COMMON.webp"},default:{RARE:"b_revolutionary_RARE.webp",MYTHIC:"b_revolutionary_MYTHIC.webp",LEGENDARY:"b_revolutionary_LEGENDARY.webp",EPIC:"b_revolutionary_EPIC.webp",COMMON:"b_revolutionary_COMMON.webp"}},progressive:!0},{id:"sardine",path:{cropped:{RARE:"cropped_b_sardine_RARE.webp",MYTHIC:"cropped_b_sardine_MYTHIC.webp",LEGENDARY:"cropped_b_sardine_LEGENDARY.webp",EPIC:"cropped_b_sardine_EPIC.webp",COMMON:"cropped_b_sardine_COMMON.webp"},default:{RARE:"b_sardine_RARE.webp",MYTHIC:"b_sardine_MYTHIC.webp",LEGENDARY:"b_sardine_LEGENDARY.webp",EPIC:"b_sardine_EPIC.webp",COMMON:"b_sardine_COMMON.webp"}},progressive:!0},{id:"shipsecte",path:{cropped:{RARE:"cropped_b_shipsecte_RARE.webp",MYTHIC:"cropped_b_shipsecte_MYTHIC.webp",LEGENDARY:"cropped_b_shipsecte_LEGENDARY.webp",EPIC:"cropped_b_shipsecte_EPIC.webp",COMMON:"cropped_b_shipsecte_COMMON.webp"},default:{RARE:"b_shipsecte_RARE.webp",MYTHIC:"b_shipsecte_MYTHIC.webp",LEGENDARY:"b_shipsecte_LEGENDARY.webp",EPIC:"b_shipsecte_EPIC.webp",COMMON:"b_shipsecte_COMMON.webp"}},progressive:!0}],G=[{id:"black-jack",path:{default:"b_black-jack.webp",cropped:"cropped_b_black-jack.webp"},progressive:!1},{id:"calendar",path:{default:"b_calendar.webp",cropped:"cropped_b_calendar.webp"},progressive:!1},{id:"camarade",path:{default:"b_camarade.webp",cropped:"cropped_b_camarade.webp"},progressive:!1},{id:"chance",path:{default:"b_chance.webp",cropped:"cropped_b_chance.webp"},progressive:!1},{id:"doublesix",path:{default:"b_doublesix.webp",cropped:"cropped_b_doublesix.webp"},progressive:!1},{id:"noluck",path:{default:"b_noluck.webp",cropped:"cropped_b_noluck.webp"},progressive:!1},{id:"premium",path:{default:"b_premium.webp",cropped:"cropped_b_premium.webp"},progressive:!1},{id:"selfish",path:{default:"b_selfish.webp",cropped:"cropped_b_selfish.webp"},progressive:!1}],R={exploration:{id:"writeChat",img:"exploration",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[e.LEGENDARY,e.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},H=r=>!!r.isProgressive,S=["b_marine","b_revolutionary","b_pirate"],v=(r,_)=>r.filter(o=>{const[c]=o.split("_"),E=Object.values(R).find(n=>n.id===c);return E?E.crew===_:!1}),B=r=>r.filter((_,o,c)=>{const[E,n]=_.split("_");return!c.find(ie=>{const[oe,ce]=ie.split("_");return E!==oe?!1:n<ce})}),F=["idiot","satan","edito","toy"],y={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},k=["default","christmas"],M=r=>Math.round(5e3*Math.pow(200,.01*r)/10)*10,s=r=>r>=1?s(r-1)+M(r):0,A=(r,_=0)=>r<s(_+1)?_:A(r,_+1),m=r=>Math.round(1e5*Math.pow(50,.01*r)/10)*10,a=r=>r>=1?a(r-1)+m(r):0,l=(r,_=0)=>r<a(_+1)?_:l(r,_+1),j=([r,_])=>_?`${i.t("xp.user",{ns:"common",amount:t.formatNumber(r),emoji:b.emojis.xp})} ${i.t("xp.crew",{amount:t.formatNumber(_),emoji:b.emojis.xp,ns:"common"})}`:i.t("xp.user",{amount:t.formatNumber(r),emoji:b.emojis.xp,ns:"common"}),U={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},V=r=>r.expireAt&&r.expireAt<new Date,X=({multiplier:r,origin:_,startIn:o,endIn:c})=>({multiplier:r,origin:_,expireAt:c?new Date(Date.now()+((o??0)+c)*60*60*1e3):null,startAt:o?new Date(Date.now()+o*60*60*1e3):null}),z=["vitality","strength","agility","intelligence","chance","wisdom"],w=10,d=1,I=[[200,4],[100,3],[50,2],[0,d]],K=100,W=10,C=r=>{for(const[_,o]of I)if(r>=_)return o;return d},$=(r,_)=>{let o=0;for(;_>0;_--)o+=C(r),r++;return o},Q=r=>{let _=0;for(;r>0;r-=C(_))_++;return _},q=(r,_)=>_*w-Object.values(r).reduce((o,c)=>o+c,0),J=["category","alpha","quantity"],Z=(r,_)=>_===null?null:r===_?`-${r}`:_,x=10;class ee{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var O=(r=>(r.COMPLETED="COMPLETED",r.IN_PROGRESS="IN_PROGRESS",r))(O||{});const re=.1,pe=3,_e=100;p.BAG_IDS=k,p.BadgeList=R,p.BaseQuest=ee,p.CHARACTERISTICS=z,p.CHARACTERISTIC_DEFAULT_POINT_COST=d,p.CHARACTERISTIC_POINT_COSTS=I,p.CHARACTERISTIC_POINT_PER_LEVEL=w,p.CREW_DEFAULT_DISINTEGRATION=_e,p.CREW_DEFAULT_MEMBER_LIMIT=pe,p.CREW_DEFAULT_XP_PERCENT=re,p.DEFAULT_BACKGROUND_ID=h,p.DEFAULT_BUFF_TREE=U,p.DEFAULT_FACTION=L,p.DEFAULT_MAX_HP=K,p.EFFECT_KEYS=Y,p.EQUIPMENT_FROM_SLOT_TO_TYPE=T,p.EQUIPMENT_SLOT=u,p.EQUIPMENT_TYPE=N,p.FACTIONS=P,p.FactionBadgeList=S,p.HP_PER_VITALITY=W,p.PROFILE_ASSETS_ID=F,p.PROGRESSIVE_BADGES=g,p.QuestStatus=O,p.RANKS=D,p.RANK_IDS_WITHOUT_BASIC=f,p.RankId=e,p.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=x,p.SORT_VALUES=J,p.STRICT_BADGES=G,p.crewXpToLevel=m,p.displayXp=j,p.filterCrewBadges=v,p.filterRarity=B,p.getAvailableCharacteristicPoints=q,p.getCharacteristicCost=C,p.getComputedCharacteristicCost=$,p.getComputedCharacteristicValue=Q,p.getCurrentCrewLevel=l,p.getCurrentLevel=A,p.getNewSortValue=Z,p.hasBuffExpired=V,p.profileAssets=y,p.progressiveBadgeTypeGuard=H,p.totalCrewXpToLevel=a,p.totalXpToLevel=s,p.transformToDBBuff=X,p.xpToLevel=M,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(_,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("i18next"),require("@opfr/emojis"),require("@opfr/utils-lang")):typeof define=="function"&&define.amd?define(["exports","i18next","@opfr/emojis","@opfr/utils-lang"],o):(_=typeof globalThis<"u"?globalThis:_||self,o(_.definitions={},_.i18next,_["@opfr/emojis"],_["@opfr/utils-lang"]))})(this,(function(_,o,c,s){"use strict";const T=["ring","strap","boots","helmet","collar","belt","weapon"],h=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],Y={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},P=["OPEN_CHEST","APPLY_BUFF","ALCOHOL_DRINK","HEAL_HP","GAIN_XP","GAIN_RANDOM_XP","BOOST","DRINK_BOTTLE","DROP","CLEAR_HANGOVER","UNLOCK_ASSET","ADD_SCROLL_CHARAC","RAID_REDUCE_COOLDOWN","CREW_XP_BUFF","CREW_REPAIR"],f=["single","multiple","all"],C=["aeronef","anchor","ancient_key","background","beer","boost_day","boost_week","bottle_xp_1","bottle_xp_2","bottle_xp_3","bottle_xp_4","bowl","bowl_cereal","bread","cereal","cheese","chest_1","chest_2","chest_3","chest_4","chest_blacksmith_1","chest_blacksmith_2","chest_blacksmith_3","chest_christmas","christmas_present","clover","compass","cotton","cursed_hawthorn","dragon_heart","ebony_poppy","edelweiss","egg","elemental_concentrate_earth","elemental_concentrate_fire","elemental_concentrate_life","elemental_concentrate_moon","elemental_concentrate_water","elemental_concentrate_wind","emerald","empty_chest","empty_scroll","enchant_cereal","enchant_clover","enchant_cotton","enchant_ebony_poppy","enchant_hemp","enchant_iron","enchant_leather","enchant_manganese","enchant_poppy","enchant_pure_water","enchant_rope","enchant_rose","enchant_sea_salt","enchant_tissue","enchant_wood","enchanted_emerald","enchanted_ruby","enchanted_sapphire","enchanted_stone","essence_earth","essence_fire","essence_life","essence_moon","essence_water","essence_wind","fairy_wing","flour","fruit","glass_bottle","glue","hammock","hemp","iron","iron_ore","leather","little_cookie_christmas","lock","mandrake","manganese","map_fragment","milk","mithril","mugwort","mysterious_egg_christmas","nail","obsidian","omelet","phoenix_feather","poppy","pure_water","repair_kit","rescue_boat","rhum","rope","rose","ruby","rudder","saffron","sailing_boat","salt_water","sapphire","scrap","scroll_agility","scroll_chance","scroll_intelligence","scroll_strength","scroll_vitality","scroll_wisdom","sea_salt","siren_tear","strange_gem","strange_stone","strawberry_cake","sugar","sugar_cane_christmas","tissue","title","tools","toy","wine","wood","wood_plank"],R=["adventurer_belt","adventurer_boots","adventurer_collar","adventurer_helmet","adventurer_strap","adventurer_weapon","christmas_belt","christmas_boots","christmas_collar","christmas_gloves","christmas_helmet","christmas_strap","christmas_weapon","herbalist_belt","herbalist_boots","herbalist_helmet","herbalist_weapon","little_blacksmith_collar","little_blacksmith_ring","little_blacksmith_strap","little_blacksmith_weapon","marine_collar","marine_helmet","marine_ring","marine_strap","pirate_belt","pirate_helmet","pirate_ring","pirate_weapon","revolutionary_belt","revolutionary_boots","revolutionary_helmet","revolutionary_ring"],D=[...C,...R],g={pirate:{name:"pirate",color:"#8A1623",role:"1047815125282848849"},marine:{name:"marine",color:"#387cbc",role:"1047816059937361940"},revolutionary:{name:"revolutionary",color:"#335635",role:"1047815105846444152"},citizen:{name:"citizen",color:"#fff",role:"1147953458507423874"}},L="citizen";var e=(r=>(r.BASIC="BASIC",r.COMMON="COMMON",r.RARE="RARE",r.EPIC="EPIC",r.LEGENDARY="LEGENDARY",r.MYTHIC="MYTHIC",r))(e||{});const G=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],H={BASIC:{color:"#fff",strength:0,id:e.BASIC,name:(r,p=1)=>o.t(`ranks.${e.BASIC}.text`,{count:p,context:r,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(r,p=1)=>o.t(`ranks.${e.COMMON}.text`,{count:p,context:r,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(r,p=1)=>o.t(`ranks.${e.RARE}.text`,{count:p,context:r,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(r,p=1)=>o.t(`ranks.${e.EPIC}.text`,{count:p,context:r,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(r,p=1)=>o.t(`ranks.${e.LEGENDARY}.text`,{count:p,context:r,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(r,p=1)=>o.t(`ranks.${e.MYTHIC}.text`,{count:p,context:r,ns:"common"})}},v="background_default",S=[{id:"berry",path:{cropped:{RARE:"cropped_b_berry_RARE.webp",MYTHIC:"cropped_b_berry_MYTHIC.webp",LEGENDARY:"cropped_b_berry_LEGENDARY.webp",EPIC:"cropped_b_berry_EPIC.webp",COMMON:"cropped_b_berry_COMMON.webp"},default:{RARE:"b_berry_RARE.webp",MYTHIC:"b_berry_MYTHIC.webp",LEGENDARY:"b_berry_LEGENDARY.webp",EPIC:"b_berry_EPIC.webp",COMMON:"b_berry_COMMON.webp"}},progressive:!0},{id:"broship",path:{cropped:{RARE:"cropped_b_broship_RARE.webp",MYTHIC:"cropped_b_broship_MYTHIC.webp",LEGENDARY:"cropped_b_broship_LEGENDARY.webp",EPIC:"cropped_b_broship_EPIC.webp",COMMON:"cropped_b_broship_COMMON.webp"},default:{RARE:"b_broship_RARE.webp",MYTHIC:"b_broship_MYTHIC.webp",LEGENDARY:"b_broship_LEGENDARY.webp",EPIC:"b_broship_EPIC.webp",COMMON:"b_broship_COMMON.webp"}},progressive:!0},{id:"carpenter",path:{cropped:{RARE:"cropped_b_carpenter_RARE.webp",MYTHIC:"cropped_b_carpenter_MYTHIC.webp",LEGENDARY:"cropped_b_carpenter_LEGENDARY.webp",EPIC:"cropped_b_carpenter_EPIC.webp",COMMON:"cropped_b_carpenter_COMMON.webp"},default:{RARE:"b_carpenter_RARE.webp",MYTHIC:"b_carpenter_MYTHIC.webp",LEGENDARY:"b_carpenter_LEGENDARY.webp",EPIC:"b_carpenter_EPIC.webp",COMMON:"b_carpenter_COMMON.webp"}},progressive:!0},{id:"casino",path:{cropped:{MYTHIC:"cropped_b_casino_MYTHIC.webp",LEGENDARY:"cropped_b_casino_LEGENDARY.webp"},default:{MYTHIC:"b_casino_MYTHIC.webp",LEGENDARY:"b_casino_LEGENDARY.webp"}},progressive:!0},{id:"communism",path:{cropped:{RARE:"cropped_b_communism_RARE.webp",MYTHIC:"cropped_b_communism_MYTHIC.webp",LEGENDARY:"cropped_b_communism_LEGENDARY.webp",EPIC:"cropped_b_communism_EPIC.webp",COMMON:"cropped_b_communism_COMMON.webp"},default:{RARE:"b_communism_RARE.webp",MYTHIC:"b_communism_MYTHIC.webp",LEGENDARY:"b_communism_LEGENDARY.webp",EPIC:"b_communism_EPIC.webp",COMMON:"b_communism_COMMON.webp"}},progressive:!0},{id:"craft",path:{cropped:{RARE:"cropped_b_craft_RARE.webp",MYTHIC:"cropped_b_craft_MYTHIC.webp",LEGENDARY:"cropped_b_craft_LEGENDARY.webp",EPIC:"cropped_b_craft_EPIC.webp",COMMON:"cropped_b_craft_COMMON.webp"},default:{RARE:"b_craft_RARE.webp",MYTHIC:"b_craft_MYTHIC.webp",LEGENDARY:"b_craft_LEGENDARY.webp",EPIC:"b_craft_EPIC.webp",COMMON:"b_craft_COMMON.webp"}},progressive:!0},{id:"crewship",path:{cropped:{RARE:"cropped_b_crewship_RARE.webp",MYTHIC:"cropped_b_crewship_MYTHIC.webp",LEGENDARY:"cropped_b_crewship_LEGENDARY.webp",EPIC:"cropped_b_crewship_EPIC.webp",COMMON:"cropped_b_crewship_COMMON.webp"},default:{RARE:"b_crewship_RARE.webp",MYTHIC:"b_crewship_MYTHIC.webp",LEGENDARY:"b_crewship_LEGENDARY.webp",EPIC:"b_crewship_EPIC.webp",COMMON:"b_crewship_COMMON.webp"}},progressive:!0},{id:"default",path:{cropped:{RARE:"cropped_b_default_RARE.webp",MYTHIC:"cropped_b_default_MYTHIC.webp",LEGENDARY:"cropped_b_default_LEGENDARY.webp",EPIC:"cropped_b_default_EPIC.webp",COMMON:"cropped_b_default_COMMON.webp"},default:{RARE:"b_default_RARE.webp",MYTHIC:"b_default_MYTHIC.webp",LEGENDARY:"b_default_LEGENDARY.webp",EPIC:"b_default_EPIC.webp",COMMON:"b_default_COMMON.webp"}},progressive:!0},{id:"ecrire",path:{cropped:{RARE:"cropped_b_ecrire_RARE.webp",MYTHIC:"cropped_b_ecrire_MYTHIC.webp",LEGENDARY:"cropped_b_ecrire_LEGENDARY.webp",EPIC:"cropped_b_ecrire_EPIC.webp",COMMON:"cropped_b_ecrire_COMMON.webp"},default:{RARE:"b_ecrire_RARE.webp",MYTHIC:"b_ecrire_MYTHIC.webp",LEGENDARY:"b_ecrire_LEGENDARY.webp",EPIC:"b_ecrire_EPIC.webp",COMMON:"b_ecrire_COMMON.webp"}},progressive:!0},{id:"ermite",path:{cropped:{RARE:"cropped_b_ermite_RARE.webp",MYTHIC:"cropped_b_ermite_MYTHIC.webp",LEGENDARY:"cropped_b_ermite_LEGENDARY.webp",EPIC:"cropped_b_ermite_EPIC.webp",COMMON:"cropped_b_ermite_COMMON.webp"},default:{RARE:"b_ermite_RARE.webp",MYTHIC:"b_ermite_MYTHIC.webp",LEGENDARY:"b_ermite_LEGENDARY.webp",EPIC:"b_ermite_EPIC.webp",COMMON:"b_ermite_COMMON.webp"}},progressive:!0},{id:"exploration",path:{cropped:{RARE:"cropped_b_exploration_RARE.webp",MYTHIC:"cropped_b_exploration_MYTHIC.webp",LEGENDARY:"cropped_b_exploration_LEGENDARY.webp",EPIC:"cropped_b_exploration_EPIC.webp",COMMON:"cropped_b_exploration_COMMON.webp"},default:{RARE:"b_exploration_RARE.webp",MYTHIC:"b_exploration_MYTHIC.webp",LEGENDARY:"b_exploration_LEGENDARY.webp",EPIC:"b_exploration_EPIC.webp",COMMON:"b_exploration_COMMON.webp"}},progressive:!0},{id:"marine",path:{cropped:{RARE:"cropped_b_marine_RARE.webp",MYTHIC:"cropped_b_marine_MYTHIC.webp",LEGENDARY:"cropped_b_marine_LEGENDARY.webp",EPIC:"cropped_b_marine_EPIC.webp",COMMON:"cropped_b_marine_COMMON.webp"},default:{RARE:"b_marine_RARE.webp",MYTHIC:"b_marine_MYTHIC.webp",LEGENDARY:"b_marine_LEGENDARY.webp",EPIC:"b_marine_EPIC.webp",COMMON:"b_marine_COMMON.webp"}},progressive:!0},{id:"mode",path:{cropped:{RARE:"cropped_b_mode_RARE.webp",MYTHIC:"cropped_b_mode_MYTHIC.webp",LEGENDARY:"cropped_b_mode_LEGENDARY.webp",EPIC:"cropped_b_mode_EPIC.webp",COMMON:"cropped_b_mode_COMMON.webp"},default:{RARE:"b_mode_RARE.webp",MYTHIC:"b_mode_MYTHIC.webp",LEGENDARY:"b_mode_LEGENDARY.webp",EPIC:"b_mode_EPIC.webp",COMMON:"b_mode_COMMON.webp"}},progressive:!0},{id:"pirate",path:{cropped:{RARE:"cropped_b_pirate_RARE.webp",MYTHIC:"cropped_b_pirate_MYTHIC.webp",LEGENDARY:"cropped_b_pirate_LEGENDARY.webp",EPIC:"cropped_b_pirate_EPIC.webp",COMMON:"cropped_b_pirate_COMMON.webp"},default:{RARE:"b_pirate_RARE.webp",MYTHIC:"b_pirate_MYTHIC.webp",LEGENDARY:"b_pirate_LEGENDARY.webp",EPIC:"b_pirate_EPIC.webp",COMMON:"b_pirate_COMMON.webp"}},progressive:!0},{id:"recipe",path:{cropped:{RARE:"cropped_b_recipe_RARE.webp",MYTHIC:"cropped_b_recipe_MYTHIC.webp",LEGENDARY:"cropped_b_recipe_LEGENDARY.webp",EPIC:"cropped_b_recipe_EPIC.webp",COMMON:"cropped_b_recipe_COMMON.webp"},default:{RARE:"b_recipe_RARE.webp",MYTHIC:"b_recipe_MYTHIC.webp",LEGENDARY:"b_recipe_LEGENDARY.webp",EPIC:"b_recipe_EPIC.webp",COMMON:"b_recipe_COMMON.webp"}},progressive:!0},{id:"revolutionary",path:{cropped:{RARE:"cropped_b_revolutionary_RARE.webp",MYTHIC:"cropped_b_revolutionary_MYTHIC.webp",LEGENDARY:"cropped_b_revolutionary_LEGENDARY.webp",EPIC:"cropped_b_revolutionary_EPIC.webp",COMMON:"cropped_b_revolutionary_COMMON.webp"},default:{RARE:"b_revolutionary_RARE.webp",MYTHIC:"b_revolutionary_MYTHIC.webp",LEGENDARY:"b_revolutionary_LEGENDARY.webp",EPIC:"b_revolutionary_EPIC.webp",COMMON:"b_revolutionary_COMMON.webp"}},progressive:!0},{id:"sardine",path:{cropped:{RARE:"cropped_b_sardine_RARE.webp",MYTHIC:"cropped_b_sardine_MYTHIC.webp",LEGENDARY:"cropped_b_sardine_LEGENDARY.webp",EPIC:"cropped_b_sardine_EPIC.webp",COMMON:"cropped_b_sardine_COMMON.webp"},default:{RARE:"b_sardine_RARE.webp",MYTHIC:"b_sardine_MYTHIC.webp",LEGENDARY:"b_sardine_LEGENDARY.webp",EPIC:"b_sardine_EPIC.webp",COMMON:"b_sardine_COMMON.webp"}},progressive:!0},{id:"shipsecte",path:{cropped:{RARE:"cropped_b_shipsecte_RARE.webp",MYTHIC:"cropped_b_shipsecte_MYTHIC.webp",LEGENDARY:"cropped_b_shipsecte_LEGENDARY.webp",EPIC:"cropped_b_shipsecte_EPIC.webp",COMMON:"cropped_b_shipsecte_COMMON.webp"},default:{RARE:"b_shipsecte_RARE.webp",MYTHIC:"b_shipsecte_MYTHIC.webp",LEGENDARY:"b_shipsecte_LEGENDARY.webp",EPIC:"b_shipsecte_EPIC.webp",COMMON:"b_shipsecte_COMMON.webp"}},progressive:!0}],y=[{id:"black-jack",path:{default:"b_black-jack.webp",cropped:"cropped_b_black-jack.webp"},progressive:!1},{id:"calendar",path:{default:"b_calendar.webp",cropped:"cropped_b_calendar.webp"},progressive:!1},{id:"camarade",path:{default:"b_camarade.webp",cropped:"cropped_b_camarade.webp"},progressive:!1},{id:"chance",path:{default:"b_chance.webp",cropped:"cropped_b_chance.webp"},progressive:!1},{id:"doublesix",path:{default:"b_doublesix.webp",cropped:"cropped_b_doublesix.webp"},progressive:!1},{id:"noluck",path:{default:"b_noluck.webp",cropped:"cropped_b_noluck.webp"},progressive:!1},{id:"premium",path:{default:"b_premium.webp",cropped:"cropped_b_premium.webp"},progressive:!1},{id:"selfish",path:{default:"b_selfish.webp",cropped:"cropped_b_selfish.webp"},progressive:!1}],m={exploration:{id:"writeChat",img:"exploration",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[e.LEGENDARY,e.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},k=r=>!!r.isProgressive,B=["b_marine","b_revolutionary","b_pirate"],F=(r,p)=>r.filter(i=>{const[t]=i.split("_"),a=Object.values(m).find(l=>l.id===t);return a?a.crew===p:!1}),U=r=>r.filter((p,i,t)=>{const[a,l]=p.split("_");return!t.find(ce=>{const[se,be]=ce.split("_");return a!==se?!1:l<be})}),j=["idiot","satan","edito","toy"],V={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},X=["default","christmas"],M=r=>Math.round(5e3*Math.pow(200,.01*r)/10)*10,b=r=>r>=1?b(r-1)+M(r):0,A=(r,p=0)=>r<b(p+1)?p:A(r,p+1),w=r=>Math.round(1e5*Math.pow(50,.01*r)/10)*10,E=r=>r>=1?E(r-1)+w(r):0,I=(r,p=0)=>r<E(p+1)?p:I(r,p+1),z=([r,p])=>p?`${o.t("xp.user",{ns:"common",amount:s.formatNumber(r),emoji:c.emojis.xp})} ${o.t("xp.crew",{amount:s.formatNumber(p),emoji:c.emojis.xp,ns:"common"})}`:o.t("xp.user",{amount:s.formatNumber(r),emoji:c.emojis.xp,ns:"common"}),K={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Q=r=>r.expireAt&&r.expireAt<new Date,W=({multiplier:r,origin:p,startIn:i,endIn:t})=>({multiplier:r,origin:p,expireAt:t?new Date(Date.now()+((i??0)+t)*60*60*1e3):null,startAt:i?new Date(Date.now()+i*60*60*1e3):null}),$=["vitality","strength","agility","intelligence","chance","wisdom"],u=10,n=1,O=[[200,4],[100,3],[50,2],[0,n]],q=100,J=10,d=r=>{for(const[p,i]of O)if(r>=p)return i;return n},Z=(r,p)=>{let i=0;for(;p>0;p--)i+=d(r),r++;return i},x=r=>{let p=0;for(;r>0;r-=d(p))p++;return p},ee=(r,p)=>p*u-Object.values(r).reduce((i,t)=>i+t,0),re=["category","alpha","quantity"],_e=(r,p)=>p===null?null:r===p?`-${r}`:p,pe=10;class oe{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var N=(r=>(r.COMPLETED="COMPLETED",r.IN_PROGRESS="IN_PROGRESS",r))(N||{});const ie=.1,te=3,ae=100;_.BAG_IDS=X,_.BadgeList=m,_.BaseQuest=oe,_.CHARACTERISTICS=$,_.CHARACTERISTIC_DEFAULT_POINT_COST=n,_.CHARACTERISTIC_POINT_COSTS=O,_.CHARACTERISTIC_POINT_PER_LEVEL=u,_.CREW_DEFAULT_DISINTEGRATION=ae,_.CREW_DEFAULT_MEMBER_LIMIT=te,_.CREW_DEFAULT_XP_PERCENT=ie,_.DEFAULT_BACKGROUND_ID=v,_.DEFAULT_BUFF_TREE=K,_.DEFAULT_FACTION=L,_.DEFAULT_MAX_HP=q,_.EFFECT_KEYS=P,_.ENTITY_IMAGE_IDS=D,_.EQUIPMENT_FROM_SLOT_TO_TYPE=Y,_.EQUIPMENT_IMAGE_IDS=R,_.EQUIPMENT_SLOT=h,_.EQUIPMENT_TYPE=T,_.FACTIONS=g,_.FactionBadgeList=B,_.HP_PER_VITALITY=J,_.ITEM_IMAGE_IDS=C,_.PROFILE_ASSETS_ID=j,_.PROGRESSIVE_BADGES=S,_.QuestStatus=N,_.RANKS=H,_.RANK_IDS_WITHOUT_BASIC=G,_.RankId=e,_.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=pe,_.SORT_VALUES=re,_.STRICT_BADGES=y,_.USAGE_MODES=f,_.crewXpToLevel=w,_.displayXp=z,_.filterCrewBadges=F,_.filterRarity=U,_.getAvailableCharacteristicPoints=ee,_.getCharacteristicCost=d,_.getComputedCharacteristicCost=Z,_.getComputedCharacteristicValue=x,_.getCurrentCrewLevel=I,_.getCurrentLevel=A,_.getNewSortValue=_e,_.hasBuffExpired=Q,_.profileAssets=V,_.progressiveBadgeTypeGuard=k,_.totalCrewXpToLevel=E,_.totalXpToLevel=b,_.transformToDBBuff=W,_.xpToLevel=M,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opfr/definitions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OPFR definitions",
|
|
6
6
|
"author": "Matthieu VEIGA",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"node_modules",
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5d49d967a17c70a6b770f8693a8fa22c06f16420"
|
|
48
48
|
}
|