@opfr/definitions 1.4.0 → 1.6.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/games/constants.d.ts +2 -0
- package/dist/games/constants.d.ts.map +1 -0
- package/dist/games/constants.js +8 -0
- package/dist/games/constants.js.map +1 -0
- package/dist/games/index.d.ts +1 -0
- package/dist/games/index.d.ts.map +1 -1
- package/dist/games/index.js +1 -1
- package/dist/games/index.js.map +1 -1
- package/dist/games/types.d.ts +2 -1
- package/dist/games/types.d.ts.map +1 -1
- package/dist/index.es.js +32 -25
- package/dist/index.umd.js +1 -1
- package/dist/ornaments/utils.d.ts +2 -1
- package/dist/ornaments/utils.d.ts.map +1 -1
- package/dist/ornaments/utils.js +2 -2
- package/dist/ornaments/utils.js.map +1 -1
- package/dist/raids/types.d.ts +6 -8
- package/dist/raids/types.d.ts.map +1 -1
- package/locales/common/fr.json +6 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/games/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,uEAMb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/games/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM;IACN,KAAK;IACL,cAAc;IACd,WAAW;IACX,cAAc;CACN,CAAC"}
|
package/dist/games/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/games/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/games/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/dist/games/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './constants';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/games/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/games/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/games/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC"}
|
package/dist/games/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { GAME_TYPES } from './constants';
|
|
1
2
|
export type GameState = -1 | 0 | 1;
|
|
2
|
-
export type GameType =
|
|
3
|
+
export type GameType = (typeof GAME_TYPES)[number];
|
|
3
4
|
export type DiceType = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
5
|
export type RPS = 'rock' | 'paper' | 'scissor';
|
|
5
6
|
export type CardSuite = 'spades' | 'diamonds' | 'clubs' | 'hearts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/games/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/games/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AACnE,MAAM,MAAM,SAAS,GACjB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAER,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -184,7 +184,7 @@ const R = [
|
|
|
184
184
|
"wine",
|
|
185
185
|
"wood",
|
|
186
186
|
"wood_plank"
|
|
187
|
-
],
|
|
187
|
+
], u = [
|
|
188
188
|
"adventurer_belt",
|
|
189
189
|
"adventurer_boots",
|
|
190
190
|
"adventurer_collar",
|
|
@@ -220,7 +220,7 @@ const R = [
|
|
|
220
220
|
"revolutionary_ring"
|
|
221
221
|
], j = [
|
|
222
222
|
...I,
|
|
223
|
-
...
|
|
223
|
+
...u
|
|
224
224
|
], F = {
|
|
225
225
|
pirate: {
|
|
226
226
|
name: "pirate",
|
|
@@ -706,7 +706,7 @@ const V = [
|
|
|
706
706
|
path: { default: "b_selfish.webp", cropped: "cropped_b_selfish.webp" },
|
|
707
707
|
progressive: !1
|
|
708
708
|
}
|
|
709
|
-
],
|
|
709
|
+
], O = {
|
|
710
710
|
exploration: {
|
|
711
711
|
id: "writeChat",
|
|
712
712
|
img: "exploration",
|
|
@@ -1020,14 +1020,14 @@ const V = [
|
|
|
1020
1020
|
],
|
|
1021
1021
|
crew: !1
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1023
|
+
}, Q = (r) => !!r.isProgressive, W = [
|
|
1024
1024
|
"b_marine",
|
|
1025
1025
|
"b_revolutionary",
|
|
1026
1026
|
"b_pirate"
|
|
1027
|
-
],
|
|
1028
|
-
const [t] = _.split("_"), i = Object.values(
|
|
1029
|
-
return i ? i
|
|
1030
|
-
}),
|
|
1027
|
+
], J = (r, p) => r.filter((_) => {
|
|
1028
|
+
const [t] = _.split("_"), i = Object.values(O).find((c) => c.id === t);
|
|
1029
|
+
return i ? p(i) : !1;
|
|
1030
|
+
}), q = (r) => r.filter((p, _, t) => {
|
|
1031
1031
|
const [i, c] = p.split("_");
|
|
1032
1032
|
return !t.find((l) => {
|
|
1033
1033
|
const [C, m] = l.split("_");
|
|
@@ -1094,8 +1094,14 @@ const V = [
|
|
|
1094
1094
|
for (; r > 0; r -= d(p))
|
|
1095
1095
|
p++;
|
|
1096
1096
|
return p;
|
|
1097
|
-
}, ne = (r, p) => p * P - Object.values(r).reduce((_, t) => _ + t, 0), Ee = ["category", "alpha", "quantity"], de = (r, p) => p === null ? null : r === p ? `-${r}` : p, le =
|
|
1098
|
-
|
|
1097
|
+
}, ne = (r, p) => p * P - Object.values(r).reduce((_, t) => _ + t, 0), Ee = ["category", "alpha", "quantity"], de = (r, p) => p === null ? null : r === p ? `-${r}` : p, le = [
|
|
1098
|
+
"dice",
|
|
1099
|
+
"rps",
|
|
1100
|
+
"doubleOrQuit",
|
|
1101
|
+
"blackJack",
|
|
1102
|
+
"priceIsRight"
|
|
1103
|
+
], Ce = 10;
|
|
1104
|
+
class me {
|
|
1099
1105
|
title = void 0;
|
|
1100
1106
|
titleId;
|
|
1101
1107
|
badge;
|
|
@@ -1108,36 +1114,37 @@ class Ce {
|
|
|
1108
1114
|
repeatable;
|
|
1109
1115
|
}
|
|
1110
1116
|
var D = /* @__PURE__ */ ((r) => (r.COMPLETED = "COMPLETED", r.IN_PROGRESS = "IN_PROGRESS", r))(D || {});
|
|
1111
|
-
const
|
|
1117
|
+
const Re = 10, Me = 1e7, we = 100, Ae = 0.1, Ie = 3, ue = 100;
|
|
1112
1118
|
export {
|
|
1113
1119
|
re as BAG_IDS,
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1120
|
+
Me as BET_MAX_VALUE,
|
|
1121
|
+
Re as BET_MIN_VALUE,
|
|
1122
|
+
O as BadgeList,
|
|
1123
|
+
me as BaseQuest,
|
|
1118
1124
|
ie as CHARACTERISTICS,
|
|
1119
1125
|
E as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
1120
1126
|
g as CHARACTERISTIC_POINT_COSTS,
|
|
1121
1127
|
P as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1128
|
+
ue as CREW_DEFAULT_DISINTEGRATION,
|
|
1129
|
+
Ie as CREW_DEFAULT_MEMBER_LIMIT,
|
|
1130
|
+
Ae as CREW_DEFAULT_XP_PERCENT,
|
|
1125
1131
|
X as DEFAULT_BACKGROUND_ID,
|
|
1126
1132
|
_e as DEFAULT_BUFF_TREE,
|
|
1127
1133
|
U as DEFAULT_FACTION,
|
|
1128
1134
|
ce as DEFAULT_MAX_HP,
|
|
1129
|
-
|
|
1135
|
+
we as EDITO_READ,
|
|
1130
1136
|
y as EFFECT_KEYS,
|
|
1131
1137
|
B as ENTITY_CATEGORY,
|
|
1132
1138
|
j as ENTITY_IMAGE_IDS,
|
|
1133
1139
|
x as ENTITY_TYPES,
|
|
1134
1140
|
A as EQUIPMENT_CATEGORY,
|
|
1135
1141
|
S as EQUIPMENT_FROM_SLOT_TO_TYPE,
|
|
1136
|
-
|
|
1142
|
+
u as EQUIPMENT_IMAGE_IDS,
|
|
1137
1143
|
v as EQUIPMENT_SLOT,
|
|
1138
1144
|
w as EQUIPMENT_TYPE,
|
|
1139
1145
|
F as FACTIONS,
|
|
1140
|
-
|
|
1146
|
+
W as FactionBadgeList,
|
|
1147
|
+
le as GAME_TYPES,
|
|
1141
1148
|
se as HP_PER_VITALITY,
|
|
1142
1149
|
M as ITEM_CATEGORY,
|
|
1143
1150
|
I as ITEM_IMAGE_IDS,
|
|
@@ -1148,14 +1155,14 @@ export {
|
|
|
1148
1155
|
z as RANKS,
|
|
1149
1156
|
V as RANK_IDS_WITHOUT_BASIC,
|
|
1150
1157
|
e as RankId,
|
|
1151
|
-
|
|
1158
|
+
Ce as SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT,
|
|
1152
1159
|
Ee as SORT_VALUES,
|
|
1153
1160
|
K as STRICT_BADGES,
|
|
1154
1161
|
k as USAGE_MODES,
|
|
1155
1162
|
Y as crewXpToLevel,
|
|
1156
1163
|
pe as displayXp,
|
|
1157
|
-
|
|
1158
|
-
|
|
1164
|
+
J as filterBadgesBy,
|
|
1165
|
+
q as filterRarity,
|
|
1159
1166
|
ne as getAvailableCharacteristicPoints,
|
|
1160
1167
|
d as getCharacteristicCost,
|
|
1161
1168
|
ae as getComputedCharacteristicCost,
|
|
@@ -1165,7 +1172,7 @@ export {
|
|
|
1165
1172
|
de as getNewSortValue,
|
|
1166
1173
|
oe as hasBuffExpired,
|
|
1167
1174
|
ee as profileAssets,
|
|
1168
|
-
|
|
1175
|
+
Q as progressiveBadgeTypeGuard,
|
|
1169
1176
|
n as totalCrewXpToLevel,
|
|
1170
1177
|
b as totalXpToLevel,
|
|
1171
1178
|
te as transformToDBBuff,
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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,a,s){"use strict";const C=["boost","bottle","repair","chest","scroll","object","store","cookedMeal","enchant","alcohol"],R=["item","resource","enchant"],m=["ring","strap","boots","helmet","collar","belt","weapon"],f=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],D={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},M=["equipment"],g=["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"],L=["single","multiple","all"],G=[...C,...m],H=[...R,...M],A=["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"],I=["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"],S=[...A,...I],v={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"}},y="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 B=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],k={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"})}},F="background_default",U=[{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}],j=[{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}],w={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}},V=r=>!!r.isProgressive,X=["b_marine","b_revolutionary","b_pirate"],Q=(r,p)=>r.filter(i=>{const[t]=i.split("_"),c=Object.values(w).find(l=>l.id===t);return c?c.crew===p:!1}),z=r=>r.filter((p,i,t)=>{const[c,l]=p.split("_");return!t.find(Re=>{const[me,Me]=Re.split("_");return c!==me?!1:l<Me})}),K=["idiot","satan","edito","toy"],W={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},$=["default","christmas"],T=r=>Math.round(5e3*Math.pow(200,.01*r)/10)*10,E=r=>r>=1?E(r-1)+T(r):0,u=(r,p=0)=>r<E(p+1)?p:u(r,p+1),O=r=>Math.round(1e5*Math.pow(50,.01*r)/10)*10,b=r=>r>=1?b(r-1)+O(r):0,N=(r,p=0)=>r<b(p+1)?p:N(r,p+1),q=([r,p])=>p?`${o.t("xp.user",{ns:"common",amount:s.formatNumber(r),emoji:a.emojis.xp})} ${o.t("xp.crew",{amount:s.formatNumber(p),emoji:a.emojis.xp,ns:"common"})}`:o.t("xp.user",{amount:s.formatNumber(r),emoji:a.emojis.xp,ns:"common"}),J={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Z=r=>r.expireAt&&r.expireAt<new Date,x=({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}),ee=["vitality","strength","agility","intelligence","chance","wisdom"],h=10,n=1,Y=[[200,4],[100,3],[50,2],[0,n]],re=100,_e=10,d=r=>{for(const[p,i]of Y)if(r>=p)return i;return n},pe=(r,p)=>{let i=0;for(;p>0;p--)i+=d(r),r++;return i},oe=r=>{let p=0;for(;r>0;r-=d(p))p++;return p},ie=(r,p)=>p*h-Object.values(r).reduce((i,t)=>i+t,0),te=["category","alpha","quantity"],ce=(r,p)=>p===null?null:r===p?`-${r}`:p,ae=10;class se{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var P=(r=>(r.COMPLETED="COMPLETED",r.IN_PROGRESS="IN_PROGRESS",r))(P||{});const Ee=10,be=1e7,ne=100,de=.1,le=3,Ce=100;_.BAG_IDS=$,_.BET_MAX_VALUE=be,_.BET_MIN_VALUE=Ee,_.BadgeList=w,_.BaseQuest=se,_.CHARACTERISTICS=ee,_.CHARACTERISTIC_DEFAULT_POINT_COST=n,_.CHARACTERISTIC_POINT_COSTS=Y,_.CHARACTERISTIC_POINT_PER_LEVEL=h,_.CREW_DEFAULT_DISINTEGRATION=Ce,_.CREW_DEFAULT_MEMBER_LIMIT=le,_.CREW_DEFAULT_XP_PERCENT=de,_.DEFAULT_BACKGROUND_ID=F,_.DEFAULT_BUFF_TREE=J,_.DEFAULT_FACTION=y,_.DEFAULT_MAX_HP=re,_.EDITO_READ=ne,_.EFFECT_KEYS=g,_.ENTITY_CATEGORY=H,_.ENTITY_IMAGE_IDS=S,_.ENTITY_TYPES=G,_.EQUIPMENT_CATEGORY=M,_.EQUIPMENT_FROM_SLOT_TO_TYPE=D,_.EQUIPMENT_IMAGE_IDS=I,_.EQUIPMENT_SLOT=f,_.EQUIPMENT_TYPE=m,_.FACTIONS=v,_.FactionBadgeList=X,_.HP_PER_VITALITY=_e,_.ITEM_CATEGORY=R,_.ITEM_IMAGE_IDS=A,_.ITEM_TYPE=C,_.PROFILE_ASSETS_ID=K,_.PROGRESSIVE_BADGES=U,_.QuestStatus=P,_.RANKS=k,_.RANK_IDS_WITHOUT_BASIC=B,_.RankId=e,_.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=ae,_.SORT_VALUES=te,_.STRICT_BADGES=j,_.USAGE_MODES=L,_.crewXpToLevel=O,_.displayXp=q,_.filterCrewBadges=Q,_.filterRarity=z,_.getAvailableCharacteristicPoints=ie,_.getCharacteristicCost=d,_.getComputedCharacteristicCost=pe,_.getComputedCharacteristicValue=oe,_.getCurrentCrewLevel=N,_.getCurrentLevel=u,_.getNewSortValue=ce,_.hasBuffExpired=Z,_.profileAssets=W,_.progressiveBadgeTypeGuard=V,_.totalCrewXpToLevel=b,_.totalXpToLevel=E,_.transformToDBBuff=x,_.xpToLevel=T,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(r,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):(r=typeof globalThis<"u"?globalThis:r||self,o(r.definitions={},r.i18next,r["@opfr/emojis"],r["@opfr/utils-lang"]))})(this,(function(r,o,a,s){"use strict";const C=["boost","bottle","repair","chest","scroll","object","store","cookedMeal","enchant","alcohol"],R=["item","resource","enchant"],m=["ring","strap","boots","helmet","collar","belt","weapon"],f=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],D={collar:"collar",boots:"boots",ring_left:"ring",ring_right:"ring",strap_left:"strap",strap_right:"strap",helmet:"helmet",belt:"belt",weapon:"weapon"},M=["equipment"],g=["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"],L=["single","multiple","all"],G=[...C,...m],H=[...R,...M],A=["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"],I=["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"],S=[...A,...I],v={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"}},y="citizen";var e=(_=>(_.BASIC="BASIC",_.COMMON="COMMON",_.RARE="RARE",_.EPIC="EPIC",_.LEGENDARY="LEGENDARY",_.MYTHIC="MYTHIC",_))(e||{});const B=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],k={BASIC:{color:"#fff",strength:0,id:e.BASIC,name:(_,p=1)=>o.t(`ranks.${e.BASIC}.text`,{count:p,context:_,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(_,p=1)=>o.t(`ranks.${e.COMMON}.text`,{count:p,context:_,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(_,p=1)=>o.t(`ranks.${e.RARE}.text`,{count:p,context:_,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(_,p=1)=>o.t(`ranks.${e.EPIC}.text`,{count:p,context:_,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(_,p=1)=>o.t(`ranks.${e.LEGENDARY}.text`,{count:p,context:_,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(_,p=1)=>o.t(`ranks.${e.MYTHIC}.text`,{count:p,context:_,ns:"common"})}},F="background_default",U=[{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}],j=[{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}],w={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}},V=_=>!!_.isProgressive,X=["b_marine","b_revolutionary","b_pirate"],Q=(_,p)=>_.filter(i=>{const[t]=i.split("_"),c=Object.values(w).find(l=>l.id===t);return c?p(c):!1}),z=_=>_.filter((p,i,t)=>{const[c,l]=p.split("_");return!t.find(me=>{const[Me,Ae]=me.split("_");return c!==Me?!1:l<Ae})}),K=["idiot","satan","edito","toy"],W={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},$=["default","christmas"],T=_=>Math.round(5e3*Math.pow(200,.01*_)/10)*10,E=_=>_>=1?E(_-1)+T(_):0,u=(_,p=0)=>_<E(p+1)?p:u(_,p+1),O=_=>Math.round(1e5*Math.pow(50,.01*_)/10)*10,b=_=>_>=1?b(_-1)+O(_):0,N=(_,p=0)=>_<b(p+1)?p:N(_,p+1),q=([_,p])=>p?`${o.t("xp.user",{ns:"common",amount:s.formatNumber(_),emoji:a.emojis.xp})} ${o.t("xp.crew",{amount:s.formatNumber(p),emoji:a.emojis.xp,ns:"common"})}`:o.t("xp.user",{amount:s.formatNumber(_),emoji:a.emojis.xp,ns:"common"}),J={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Z=_=>_.expireAt&&_.expireAt<new Date,x=({multiplier:_,origin:p,startIn:i,endIn:t})=>({multiplier:_,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}),ee=["vitality","strength","agility","intelligence","chance","wisdom"],h=10,n=1,Y=[[200,4],[100,3],[50,2],[0,n]],re=100,_e=10,d=_=>{for(const[p,i]of Y)if(_>=p)return i;return n},pe=(_,p)=>{let i=0;for(;p>0;p--)i+=d(_),_++;return i},oe=_=>{let p=0;for(;_>0;_-=d(p))p++;return p},ie=(_,p)=>p*h-Object.values(_).reduce((i,t)=>i+t,0),te=["category","alpha","quantity"],ce=(_,p)=>p===null?null:_===p?`-${_}`:p,ae=["dice","rps","doubleOrQuit","blackJack","priceIsRight"],se=10;class Ee{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var P=(_=>(_.COMPLETED="COMPLETED",_.IN_PROGRESS="IN_PROGRESS",_))(P||{});const be=10,ne=1e7,de=100,le=.1,Ce=3,Re=100;r.BAG_IDS=$,r.BET_MAX_VALUE=ne,r.BET_MIN_VALUE=be,r.BadgeList=w,r.BaseQuest=Ee,r.CHARACTERISTICS=ee,r.CHARACTERISTIC_DEFAULT_POINT_COST=n,r.CHARACTERISTIC_POINT_COSTS=Y,r.CHARACTERISTIC_POINT_PER_LEVEL=h,r.CREW_DEFAULT_DISINTEGRATION=Re,r.CREW_DEFAULT_MEMBER_LIMIT=Ce,r.CREW_DEFAULT_XP_PERCENT=le,r.DEFAULT_BACKGROUND_ID=F,r.DEFAULT_BUFF_TREE=J,r.DEFAULT_FACTION=y,r.DEFAULT_MAX_HP=re,r.EDITO_READ=de,r.EFFECT_KEYS=g,r.ENTITY_CATEGORY=H,r.ENTITY_IMAGE_IDS=S,r.ENTITY_TYPES=G,r.EQUIPMENT_CATEGORY=M,r.EQUIPMENT_FROM_SLOT_TO_TYPE=D,r.EQUIPMENT_IMAGE_IDS=I,r.EQUIPMENT_SLOT=f,r.EQUIPMENT_TYPE=m,r.FACTIONS=v,r.FactionBadgeList=X,r.GAME_TYPES=ae,r.HP_PER_VITALITY=_e,r.ITEM_CATEGORY=R,r.ITEM_IMAGE_IDS=A,r.ITEM_TYPE=C,r.PROFILE_ASSETS_ID=K,r.PROGRESSIVE_BADGES=U,r.QuestStatus=P,r.RANKS=k,r.RANK_IDS_WITHOUT_BASIC=B,r.RankId=e,r.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=se,r.SORT_VALUES=te,r.STRICT_BADGES=j,r.USAGE_MODES=L,r.crewXpToLevel=O,r.displayXp=q,r.filterBadgesBy=Q,r.filterRarity=z,r.getAvailableCharacteristicPoints=ie,r.getCharacteristicCost=d,r.getComputedCharacteristicCost=pe,r.getComputedCharacteristicValue=oe,r.getCurrentCrewLevel=N,r.getCurrentLevel=u,r.getNewSortValue=ce,r.hasBuffExpired=Z,r.profileAssets=W,r.progressiveBadgeTypeGuard=V,r.totalCrewXpToLevel=b,r.totalXpToLevel=E,r.transformToDBBuff=x,r.xpToLevel=T,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type Badge } from './badges';
|
|
2
|
+
export declare const filterBadgesBy: (badges: string[], predicate: (badge: Badge) => boolean) => string[];
|
|
2
3
|
export declare const filterRarity: (badges: string[]) => string[];
|
|
3
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/ornaments/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/ornaments/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EAAE,EAChB,WAAW,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,KACnC,MAAM,EASR,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,EAAE,KAAG,MAAM,EAcrD,CAAC"}
|
package/dist/ornaments/utils.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BadgeList } from './badges';
|
|
2
|
-
export const
|
|
2
|
+
export const filterBadgesBy = (badges, predicate) => {
|
|
3
3
|
return badges.filter(badgeId => {
|
|
4
4
|
const [id] = badgeId.split('_');
|
|
5
5
|
const badge = Object.values(BadgeList).find(badge => badge.id === id);
|
|
6
6
|
if (!badge)
|
|
7
7
|
return false;
|
|
8
|
-
return badge
|
|
8
|
+
return predicate(badge);
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
export const filterRarity = (badges) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ornaments/utils.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ornaments/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,SAAS,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAgB,EAChB,SAAoC,EAC1B,EAAE;IACZ,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;QAC7B,MAAM,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;QACpD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAEtE,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QAEzB,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAgB,EAAY,EAAE;IACzD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;QAC/C,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;QAE1D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YAC1B,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;YAEtD,IAAI,EAAE,KAAK,GAAG;gBAAE,OAAO,KAAK,CAAC;YAE7B,OAAO,IAAI,GAAG,KAAK,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,GAAG,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/raids/types.d.ts
CHANGED
|
@@ -15,19 +15,17 @@ export type RaidPenalties = Partial<{
|
|
|
15
15
|
} & {
|
|
16
16
|
[key: string]: number | unknown;
|
|
17
17
|
}>;
|
|
18
|
+
export type RaidConditionRequirements = {
|
|
19
|
+
conditions: string[];
|
|
20
|
+
mode: 'include' | 'exclude';
|
|
21
|
+
};
|
|
18
22
|
export type RaidRequirements = Partial<CharacteristicsRecord> | {
|
|
19
23
|
sum: number;
|
|
20
24
|
characteristics: Characteristic[];
|
|
21
|
-
} | {
|
|
22
|
-
conditions: string[];
|
|
23
|
-
mode: 'include' | 'exclude';
|
|
24
|
-
} | {
|
|
25
|
+
} | RaidConditionRequirements | {
|
|
25
26
|
warns: number;
|
|
26
27
|
};
|
|
27
|
-
export type RaidItemRequirements = Partial<Record<string, number>> |
|
|
28
|
-
conditions: string[];
|
|
29
|
-
mode: 'include' | 'exclude';
|
|
30
|
-
};
|
|
28
|
+
export type RaidItemRequirements = Partial<Record<string, number>> | RaidConditionRequirements;
|
|
31
29
|
export type RaidStepId = {
|
|
32
30
|
UserChoice: `uc_${string}`;
|
|
33
31
|
Event: `ev_${string}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/raids/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,MAAM,WAAW,GAAG,OAAO,CAC/B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG;KACnC,CAAC,IAAI,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM;CACrC,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CACF,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC;KAAG,CAAC,IAAI,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,GAAG,MAAM;CAAE,GAAG;IAAE,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,GAAG;IAC1E,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACjC,CACF,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/raids/types.ts"],"names":[],"mappings":"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"}
|
package/locales/common/fr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opfr/definitions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OPFR definitions",
|
|
6
6
|
"author": "Matthieu VEIGA",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"i18next": "^23"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@opfr/emojis": "^1.0
|
|
21
|
-
"@opfr/utils-lang": "^1.0
|
|
20
|
+
"@opfr/emojis": "^1.1.0",
|
|
21
|
+
"@opfr/utils-lang": "^1.1.0",
|
|
22
22
|
"i18next": "23.16.8"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/index.umd.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"node_modules",
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "30203cb24881b699113496fffa3126378ed52f67"
|
|
48
48
|
}
|