@opfr/definitions 1.7.0 → 1.8.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +233 -92
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/locales/fr/story.json +118 -0
- package/dist/story/constants.d.ts +7 -0
- package/dist/story/constants.d.ts.map +1 -0
- package/dist/story/constants.js +12 -0
- package/dist/story/constants.js.map +1 -0
- package/dist/story/index.d.ts +5 -0
- package/dist/story/index.d.ts.map +1 -0
- package/dist/story/index.js +4 -0
- package/dist/story/index.js.map +1 -0
- package/dist/story/stories/chapter-1/chapter.d.ts +3 -0
- package/dist/story/stories/chapter-1/chapter.d.ts.map +1 -0
- package/dist/story/stories/chapter-1/chapter.js +7 -0
- package/dist/story/stories/chapter-1/chapter.js.map +1 -0
- package/dist/story/stories/chapter-1/scenes.d.ts +3 -0
- package/dist/story/stories/chapter-1/scenes.d.ts.map +1 -0
- package/dist/story/stories/chapter-1/scenes.js +17 -0
- package/dist/story/stories/chapter-1/scenes.js.map +1 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneOne.d.ts +3 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneOne.d.ts.map +1 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneOne.js +32 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneOne.js.map +1 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneTwo.d.ts +3 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneTwo.d.ts.map +1 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneTwo.js +50 -0
- package/dist/story/stories/chapter-1/steps/stepsSceneTwo.js.map +1 -0
- package/dist/story/stories/common.d.ts +3 -0
- package/dist/story/stories/common.d.ts.map +1 -0
- package/dist/story/stories/common.js +35 -0
- package/dist/story/stories/common.js.map +1 -0
- package/dist/story/types/actions.d.ts +19 -0
- package/dist/story/types/actions.d.ts.map +1 -0
- package/dist/story/types/actions.js +2 -0
- package/dist/story/types/actions.js.map +1 -0
- package/dist/story/types/chapters.d.ts +9 -0
- package/dist/story/types/chapters.d.ts.map +1 -0
- package/dist/story/types/chapters.js +2 -0
- package/dist/story/types/chapters.js.map +1 -0
- package/dist/story/types/common.d.ts +19 -0
- package/dist/story/types/common.d.ts.map +1 -0
- package/dist/story/types/common.js +2 -0
- package/dist/story/types/common.js.map +1 -0
- package/dist/story/types/index.d.ts +6 -0
- package/dist/story/types/index.d.ts.map +1 -0
- package/dist/story/types/index.js +2 -0
- package/dist/story/types/index.js.map +1 -0
- package/dist/story/types/scenes.d.ts +9 -0
- package/dist/story/types/scenes.d.ts.map +1 -0
- package/dist/story/types/scenes.js +2 -0
- package/dist/story/types/scenes.js.map +1 -0
- package/dist/story/types/steps/actionStep.d.ts +18 -0
- package/dist/story/types/steps/actionStep.d.ts.map +1 -0
- package/dist/story/types/steps/actionStep.js +2 -0
- package/dist/story/types/steps/actionStep.js.map +1 -0
- package/dist/story/types/steps/index.d.ts +8 -0
- package/dist/story/types/steps/index.d.ts.map +1 -0
- package/dist/story/types/steps/index.js +4 -0
- package/dist/story/types/steps/index.js.map +1 -0
- package/dist/story/types/steps/infoStep.d.ts +19 -0
- package/dist/story/types/steps/infoStep.d.ts.map +1 -0
- package/dist/story/types/steps/infoStep.js +2 -0
- package/dist/story/types/steps/infoStep.js.map +1 -0
- package/dist/story/types/steps/messageStep.d.ts +8 -0
- package/dist/story/types/steps/messageStep.d.ts.map +1 -0
- package/dist/story/types/steps/messageStep.js +2 -0
- package/dist/story/types/steps/messageStep.js.map +1 -0
- package/package.json +6 -10
- package/public/locales/fr/common.json +64 -0
- package/public/locales/fr/equipment.json +120 -0
- package/public/locales/fr/item.json +446 -0
- package/public/locales/fr/story.json +118 -0
- /package/{locales/common/fr.json → dist/locales/fr/common.json} +0 -0
- /package/{locales/equipments/fr.json → dist/locales/fr/equipment.json} +0 -0
- /package/{locales/items/fr.json → dist/locales/fr/item.json} +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as i } from "i18next";
|
|
2
|
-
import { emojis as
|
|
3
|
-
import { formatNumber as
|
|
4
|
-
const
|
|
2
|
+
import { emojis as R } from "@opfr/emojis";
|
|
3
|
+
import { formatNumber as C } from "@opfr/utils-lang";
|
|
4
|
+
const h = ["consumable", "resource", "chest"], M = ["item"], L = [
|
|
5
5
|
"alchemy",
|
|
6
6
|
"cooking",
|
|
7
7
|
"forge",
|
|
8
8
|
"carpentry",
|
|
9
9
|
"weaving"
|
|
10
|
-
], m = ["equipment"],
|
|
10
|
+
], m = ["equipment"], G = [
|
|
11
11
|
"hat",
|
|
12
12
|
"necklace",
|
|
13
13
|
"ring",
|
|
14
14
|
"outfit",
|
|
15
15
|
"boot",
|
|
16
16
|
"weapon"
|
|
17
|
-
],
|
|
17
|
+
], H = [
|
|
18
18
|
"hat",
|
|
19
19
|
"necklace",
|
|
20
20
|
"ring_left",
|
|
@@ -22,7 +22,7 @@ const D = ["consumable", "resource", "chest"], M = ["item"], h = [
|
|
|
22
22
|
"outfit",
|
|
23
23
|
"boot",
|
|
24
24
|
"weapon"
|
|
25
|
-
],
|
|
25
|
+
], v = {
|
|
26
26
|
hat: "hat",
|
|
27
27
|
necklace: "necklace",
|
|
28
28
|
ring_left: "ring",
|
|
@@ -30,7 +30,7 @@ const D = ["consumable", "resource", "chest"], M = ["item"], h = [
|
|
|
30
30
|
outfit: "outfit",
|
|
31
31
|
boot: "boot",
|
|
32
32
|
weapon: "weapon"
|
|
33
|
-
},
|
|
33
|
+
}, y = [
|
|
34
34
|
"OPEN_CHEST",
|
|
35
35
|
"APPLY_BUFF",
|
|
36
36
|
"ALCOHOL_DRINK",
|
|
@@ -48,7 +48,7 @@ const D = ["consumable", "resource", "chest"], M = ["item"], h = [
|
|
|
48
48
|
"CREW_REPAIR",
|
|
49
49
|
"REGAIN_ENERGY",
|
|
50
50
|
"RESET_CHARAC"
|
|
51
|
-
],
|
|
51
|
+
], S = ["single", "multiple", "all"], k = [...M, ...m], x = {
|
|
52
52
|
pirate: {
|
|
53
53
|
name: "pirate",
|
|
54
54
|
color: "#8A1623",
|
|
@@ -69,15 +69,15 @@ const D = ["consumable", "resource", "chest"], M = ["item"], h = [
|
|
|
69
69
|
color: "#fff",
|
|
70
70
|
role: "1147953458507423874"
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, B = "citizen";
|
|
73
73
|
var e = /* @__PURE__ */ ((r) => (r.COMMON = "COMMON", r.RARE = "RARE", r.EPIC = "EPIC", r.LEGENDARY = "LEGENDARY", r.MYTHIC = "MYTHIC", r))(e || {});
|
|
74
|
-
const
|
|
74
|
+
const j = [
|
|
75
75
|
e.COMMON,
|
|
76
76
|
e.RARE,
|
|
77
77
|
e.EPIC,
|
|
78
78
|
e.LEGENDARY,
|
|
79
79
|
e.MYTHIC
|
|
80
|
-
],
|
|
80
|
+
], F = {
|
|
81
81
|
COMMON: {
|
|
82
82
|
color: "#813D31",
|
|
83
83
|
strength: 1,
|
|
@@ -128,7 +128,7 @@ const y = [
|
|
|
128
128
|
ns: "common"
|
|
129
129
|
})
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, U = "background_default", V = [
|
|
132
132
|
{
|
|
133
133
|
id: "berry",
|
|
134
134
|
path: {
|
|
@@ -483,7 +483,7 @@ const y = [
|
|
|
483
483
|
},
|
|
484
484
|
progressive: !0
|
|
485
485
|
}
|
|
486
|
-
],
|
|
486
|
+
], z = [
|
|
487
487
|
{
|
|
488
488
|
id: "black-jack",
|
|
489
489
|
path: {
|
|
@@ -841,29 +841,29 @@ const y = [
|
|
|
841
841
|
],
|
|
842
842
|
crew: !1
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, K = (r) => !!r.isProgressive, X = [
|
|
845
845
|
"b_marine",
|
|
846
846
|
"b_revolutionary",
|
|
847
847
|
"b_pirate"
|
|
848
|
-
],
|
|
849
|
-
const [
|
|
850
|
-
return
|
|
851
|
-
}),
|
|
852
|
-
const [
|
|
853
|
-
return !
|
|
854
|
-
const [
|
|
855
|
-
return
|
|
848
|
+
], $ = (r, p) => r.filter((o) => {
|
|
849
|
+
const [_] = o.split("_"), s = Object.values(w).find((t) => t.id === _);
|
|
850
|
+
return s ? p(s) : !1;
|
|
851
|
+
}), Q = (r) => r.filter((p, o, _) => {
|
|
852
|
+
const [s, t] = p.split("_");
|
|
853
|
+
return !_.find((E) => {
|
|
854
|
+
const [n, d] = E.split("_");
|
|
855
|
+
return s !== n ? !1 : t < d;
|
|
856
856
|
});
|
|
857
|
-
}),
|
|
857
|
+
}), J = ["idiot", "satan", "edito", "toy"], W = {
|
|
858
858
|
satan: "satan",
|
|
859
859
|
idiot: "idiot",
|
|
860
860
|
edito: "edito",
|
|
861
861
|
toy: "toy"
|
|
862
|
-
},
|
|
863
|
-
amount:
|
|
864
|
-
emoji:
|
|
862
|
+
}, q = ["default", "christmas"], I = (r) => Math.round(5e3 * Math.pow(200, 0.01 * r) / 10) * 10, c = (r) => r >= 1 ? c(r - 1) + I(r) : 0, l = (r, p = 0) => r < c(p + 1) ? p : l(r, p + 1), Z = (r) => i("xp.user", {
|
|
863
|
+
amount: C(r),
|
|
864
|
+
emoji: R.xp,
|
|
865
865
|
ns: "common"
|
|
866
|
-
}),
|
|
866
|
+
}), ee = {
|
|
867
867
|
cooldown: {
|
|
868
868
|
casino: [],
|
|
869
869
|
work: []
|
|
@@ -878,51 +878,51 @@ const y = [
|
|
|
878
878
|
xp: {
|
|
879
879
|
global: []
|
|
880
880
|
}
|
|
881
|
-
},
|
|
881
|
+
}, re = (r) => r.expireAt && r.expireAt < /* @__PURE__ */ new Date(), pe = ({
|
|
882
882
|
multiplier: r,
|
|
883
883
|
origin: p,
|
|
884
|
-
startIn:
|
|
885
|
-
endIn:
|
|
884
|
+
startIn: o,
|
|
885
|
+
endIn: _
|
|
886
886
|
}) => ({
|
|
887
887
|
multiplier: r,
|
|
888
888
|
origin: p,
|
|
889
|
-
expireAt:
|
|
890
|
-
startAt:
|
|
891
|
-
}),
|
|
889
|
+
expireAt: _ ? new Date(Date.now() + ((o ?? 0) + _) * 60 * 60 * 1e3) : null,
|
|
890
|
+
startAt: o ? new Date(Date.now() + o * 60 * 60 * 1e3) : null
|
|
891
|
+
}), oe = [
|
|
892
892
|
"vitality",
|
|
893
893
|
"strength",
|
|
894
894
|
"agility",
|
|
895
895
|
"intelligence",
|
|
896
896
|
"chance",
|
|
897
897
|
"wisdom"
|
|
898
|
-
],
|
|
898
|
+
], A = 10, a = 1, O = [
|
|
899
899
|
[200, 4],
|
|
900
900
|
[100, 3],
|
|
901
901
|
[50, 2],
|
|
902
|
-
[0,
|
|
903
|
-
],
|
|
904
|
-
for (const [p,
|
|
902
|
+
[0, a]
|
|
903
|
+
], _e = 100, ie = 10, b = (r) => {
|
|
904
|
+
for (const [p, o] of O)
|
|
905
905
|
if (r >= p)
|
|
906
|
-
return
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
let
|
|
906
|
+
return o;
|
|
907
|
+
return a;
|
|
908
|
+
}, se = (r, p) => {
|
|
909
|
+
let o = 0;
|
|
910
910
|
for (; p > 0; p--)
|
|
911
|
-
|
|
912
|
-
return
|
|
913
|
-
},
|
|
911
|
+
o += b(r), r++;
|
|
912
|
+
return o;
|
|
913
|
+
}, te = (r) => {
|
|
914
914
|
let p = 0;
|
|
915
|
-
for (; r > 0; r -=
|
|
915
|
+
for (; r > 0; r -= b(p))
|
|
916
916
|
p++;
|
|
917
917
|
return p;
|
|
918
|
-
},
|
|
918
|
+
}, ce = (r, p) => p * A - Object.values(r).reduce((o, _) => o + _, 0), ae = ["category", "alpha", "quantity"], be = (r, p) => p === null ? null : r === p ? `-${r}` : p, Ee = [
|
|
919
919
|
"dice",
|
|
920
920
|
"rps",
|
|
921
921
|
"doubleOrQuit",
|
|
922
922
|
"blackJack",
|
|
923
923
|
"priceIsRight"
|
|
924
|
-
],
|
|
925
|
-
class
|
|
924
|
+
], ne = 10;
|
|
925
|
+
class de {
|
|
926
926
|
title = void 0;
|
|
927
927
|
titleId;
|
|
928
928
|
badge;
|
|
@@ -935,58 +935,199 @@ class te {
|
|
|
935
935
|
repeatable;
|
|
936
936
|
}
|
|
937
937
|
var N = /* @__PURE__ */ ((r) => (r.COMPLETED = "COMPLETED", r.IN_PROGRESS = "IN_PROGRESS", r))(N || {});
|
|
938
|
-
const
|
|
938
|
+
const Re = 10, Ce = 1e7, Me = 100, me = ["npc", "narrator", "system"], we = ["message", "action", "info"], Ie = ["embed"], le = ["button", "command"], Ae = [
|
|
939
|
+
"success",
|
|
940
|
+
"danger",
|
|
941
|
+
"primary",
|
|
942
|
+
"secondary"
|
|
943
|
+
], Oe = ["username"], Ne = [
|
|
944
|
+
{
|
|
945
|
+
speakerId: "narrator",
|
|
946
|
+
type: "narrator"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
speakerId: "system",
|
|
950
|
+
type: "system"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
speakerId: "goro",
|
|
954
|
+
type: "npc"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
speakerId: "lena",
|
|
958
|
+
type: "npc"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
speakerId: "walto",
|
|
962
|
+
type: "npc"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
speakerId: "bruto",
|
|
966
|
+
type: "npc"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
speakerId: "toto",
|
|
970
|
+
type: "npc"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
speakerId: "pip",
|
|
974
|
+
type: "npc"
|
|
975
|
+
}
|
|
976
|
+
], Y = {
|
|
977
|
+
awaken: {
|
|
978
|
+
stepId: "awaken",
|
|
979
|
+
type: "message",
|
|
980
|
+
messages: [
|
|
981
|
+
{ speakerId: "narrator", order: 1 },
|
|
982
|
+
{ speakerId: "system", order: 2 },
|
|
983
|
+
{ speakerId: "goro", order: 3 }
|
|
984
|
+
],
|
|
985
|
+
next: "profile"
|
|
986
|
+
},
|
|
987
|
+
profile: {
|
|
988
|
+
stepId: "profile",
|
|
989
|
+
type: "action",
|
|
990
|
+
actionType: "command",
|
|
991
|
+
messages: [{ speakerId: "system" }],
|
|
992
|
+
payload: [
|
|
993
|
+
{
|
|
994
|
+
actionId: "doProfile",
|
|
995
|
+
type: "command",
|
|
996
|
+
commandId: "profile",
|
|
997
|
+
next: "goroProfileResponse"
|
|
998
|
+
}
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
goroProfileResponse: {
|
|
1002
|
+
stepId: "goroProfileResponse",
|
|
1003
|
+
type: "message",
|
|
1004
|
+
messages: [{ speakerId: "goro", args: ["username"] }]
|
|
1005
|
+
}
|
|
1006
|
+
}, u = {
|
|
1007
|
+
goroExplain: {
|
|
1008
|
+
stepId: "goroExplain",
|
|
1009
|
+
type: "message",
|
|
1010
|
+
messages: [{ speakerId: "goro" }],
|
|
1011
|
+
next: "answerToGoro"
|
|
1012
|
+
},
|
|
1013
|
+
answerToGoro: {
|
|
1014
|
+
stepId: "answerToGoro",
|
|
1015
|
+
type: "action",
|
|
1016
|
+
actionType: "button",
|
|
1017
|
+
messages: [{ speakerId: "goro" }],
|
|
1018
|
+
payload: [
|
|
1019
|
+
{
|
|
1020
|
+
actionId: "answerA",
|
|
1021
|
+
type: "button",
|
|
1022
|
+
variant: "primary",
|
|
1023
|
+
next: "goroResponseA"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
actionId: "answerB",
|
|
1027
|
+
type: "button",
|
|
1028
|
+
variant: "primary",
|
|
1029
|
+
next: "goroResponseB"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
actionId: "answerC",
|
|
1033
|
+
type: "button",
|
|
1034
|
+
variant: "primary",
|
|
1035
|
+
next: "goroResponseC"
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
goroResponseA: {
|
|
1040
|
+
stepId: "goroResponseA",
|
|
1041
|
+
type: "message",
|
|
1042
|
+
messages: [{ speakerId: "goro" }]
|
|
1043
|
+
},
|
|
1044
|
+
goroResponseB: {
|
|
1045
|
+
stepId: "goroResponseB",
|
|
1046
|
+
type: "message",
|
|
1047
|
+
messages: [{ speakerId: "goro" }]
|
|
1048
|
+
},
|
|
1049
|
+
goroResponseC: {
|
|
1050
|
+
stepId: "goroResponseC",
|
|
1051
|
+
type: "message",
|
|
1052
|
+
messages: [{ speakerId: "goro" }]
|
|
1053
|
+
}
|
|
1054
|
+
}, T = {
|
|
1055
|
+
awaken: {
|
|
1056
|
+
sceneId: "awaken",
|
|
1057
|
+
steps: Y,
|
|
1058
|
+
entryStepId: "awaken",
|
|
1059
|
+
next: "tensionPort"
|
|
1060
|
+
},
|
|
1061
|
+
tensionPort: {
|
|
1062
|
+
sceneId: "tensionPort",
|
|
1063
|
+
steps: u,
|
|
1064
|
+
entryStepId: "goroExplain",
|
|
1065
|
+
next: ""
|
|
1066
|
+
}
|
|
1067
|
+
}, Ye = {
|
|
1068
|
+
chapterId: "departure",
|
|
1069
|
+
scenes: T,
|
|
1070
|
+
entrySceneId: "awaken"
|
|
1071
|
+
};
|
|
939
1072
|
export {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1073
|
+
q as BAG_IDS,
|
|
1074
|
+
Ce as BET_MAX_VALUE,
|
|
1075
|
+
Re as BET_MIN_VALUE,
|
|
943
1076
|
w as BadgeList,
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1077
|
+
de as BaseQuest,
|
|
1078
|
+
oe as CHARACTERISTICS,
|
|
1079
|
+
a as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
947
1080
|
O as CHARACTERISTIC_POINT_COSTS,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1081
|
+
A as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
1082
|
+
U as DEFAULT_BACKGROUND_ID,
|
|
1083
|
+
ee as DEFAULT_BUFF_TREE,
|
|
1084
|
+
B as DEFAULT_FACTION,
|
|
1085
|
+
_e as DEFAULT_MAX_HP,
|
|
1086
|
+
Me as EDITO_READ,
|
|
1087
|
+
y as EFFECT_KEYS,
|
|
1088
|
+
k as ENTITY_TYPES,
|
|
1089
|
+
G as EQUIPMENT_CATEGORY,
|
|
1090
|
+
v as EQUIPMENT_FROM_SLOT_TO_TYPE,
|
|
1091
|
+
H as EQUIPMENT_SLOT,
|
|
959
1092
|
m as EQUIPMENT_TYPE,
|
|
960
|
-
|
|
961
|
-
|
|
1093
|
+
x as FACTIONS,
|
|
1094
|
+
X as FactionBadgeList,
|
|
962
1095
|
Ee as GAME_TYPES,
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1096
|
+
ie as HP_PER_VITALITY,
|
|
1097
|
+
h as ITEM_CATEGORY,
|
|
1098
|
+
L as ITEM_SUBTYPE,
|
|
966
1099
|
M as ITEM_TYPE,
|
|
967
|
-
|
|
968
|
-
|
|
1100
|
+
J as PROFILE_ASSETS_ID,
|
|
1101
|
+
V as PROGRESSIVE_BADGES,
|
|
969
1102
|
N as QuestStatus,
|
|
970
|
-
|
|
971
|
-
|
|
1103
|
+
F as RANKS,
|
|
1104
|
+
j as RANK_IDS_WITHOUT_BASIC,
|
|
972
1105
|
e as RankId,
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1106
|
+
ne as SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT,
|
|
1107
|
+
ae as SORT_VALUES,
|
|
1108
|
+
le as STORY_ACTION_TYPES,
|
|
1109
|
+
Ae as STORY_BUTTON_ACTION_VARIANT,
|
|
1110
|
+
Ie as STORY_INFO_STEP_TYPES,
|
|
1111
|
+
Oe as STORY_MESSAGE_ARGS,
|
|
1112
|
+
me as STORY_SPEAKER_TYPES,
|
|
1113
|
+
we as STORY_STEP_TYPES,
|
|
1114
|
+
z as STRICT_BADGES,
|
|
1115
|
+
S as USAGE_MODES,
|
|
1116
|
+
Ye as chapterOne,
|
|
1117
|
+
Z as displayXp,
|
|
1118
|
+
$ as filterBadgesBy,
|
|
1119
|
+
Q as filterRarity,
|
|
1120
|
+
ce as getAvailableCharacteristicPoints,
|
|
1121
|
+
b as getCharacteristicCost,
|
|
1122
|
+
se as getComputedCharacteristicCost,
|
|
1123
|
+
te as getComputedCharacteristicValue,
|
|
984
1124
|
l as getCurrentLevel,
|
|
985
1125
|
be as getNewSortValue,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1126
|
+
re as hasBuffExpired,
|
|
1127
|
+
W as profileAssets,
|
|
1128
|
+
K as progressiveBadgeTypeGuard,
|
|
1129
|
+
Ne as speakers,
|
|
1130
|
+
c as totalXpToLevel,
|
|
1131
|
+
pe as transformToDBBuff,
|
|
1132
|
+
I as xpToLevel
|
|
992
1133
|
};
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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,m,w){"use strict";const O=["consumable","resource","chest"],d=["item"],N=["alchemy","cooking","forge","carpentry","weaving"],n=["equipment"],T=["hat","necklace","ring","outfit","boot","weapon"],u=["hat","necklace","ring_left","ring_right","outfit","boot","weapon"],Y={hat:"hat",necklace:"necklace",ring_left:"ring",ring_right:"ring",outfit:"outfit",boot:"boot",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","REGAIN_ENERGY","RESET_CHARAC"],f=["single","multiple","all"],D=[...d,...n],L={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"}},h="citizen";var e=(p=>(p.COMMON="COMMON",p.RARE="RARE",p.EPIC="EPIC",p.LEGENDARY="LEGENDARY",p.MYTHIC="MYTHIC",p))(e||{});const g=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],G={COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(p,_=1)=>o.t(`ranks.${e.COMMON}.text`,{count:_,context:p,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(p,_=1)=>o.t(`ranks.${e.RARE}.text`,{count:_,context:p,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(p,_=1)=>o.t(`ranks.${e.EPIC}.text`,{count:_,context:p,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(p,_=1)=>o.t(`ranks.${e.LEGENDARY}.text`,{count:_,context:p,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(p,_=1)=>o.t(`ranks.${e.MYTHIC}.text`,{count:_,context:p,ns:"common"})}},H="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}],v=[{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}],C={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}},B=p=>!!p.isProgressive,y=["b_marine","b_revolutionary","b_pirate"],k=(p,_)=>p.filter(i=>{const[E]=i.split("_"),c=Object.values(C).find(s=>s.id===E);return c?_(c):!1}),F=p=>p.filter((_,i,E)=>{const[c,s]=_.split("_");return!E.find(be=>{const[te,ae]=be.split("_");return c!==te?!1:s<ae})}),U=["idiot","satan","edito","toy"],j={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},V=["default","christmas"],R=p=>Math.round(5e3*Math.pow(200,.01*p)/10)*10,b=p=>p>=1?b(p-1)+R(p):0,M=(p,_=0)=>p<b(_+1)?_:M(p,_+1),z=p=>o.t("xp.user",{amount:w.formatNumber(p),emoji:m.emojis.xp,ns:"common"}),K={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Q=p=>p.expireAt&&p.expireAt<new Date,X=({multiplier:p,origin:_,startIn:i,endIn:E})=>({multiplier:p,origin:_,expireAt:E?new Date(Date.now()+((i??0)+E)*60*60*1e3):null,startAt:i?new Date(Date.now()+i*60*60*1e3):null}),$=["vitality","strength","agility","intelligence","chance","wisdom"],A=10,t=1,l=[[200,4],[100,3],[50,2],[0,t]],q=100,W=10,a=p=>{for(const[_,i]of l)if(p>=_)return i;return t},J=(p,_)=>{let i=0;for(;_>0;_--)i+=a(p),p++;return i},Z=p=>{let _=0;for(;p>0;p-=a(_))_++;return _},x=(p,_)=>_*A-Object.values(p).reduce((i,E)=>i+E,0),ee=["category","alpha","quantity"],re=(p,_)=>_===null?null:p===_?`-${p}`:_,pe=["dice","rps","doubleOrQuit","blackJack","priceIsRight"],_e=10;class ie{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var I=(p=>(p.COMPLETED="COMPLETED",p.IN_PROGRESS="IN_PROGRESS",p))(I||{});const oe=10,Ee=1e7,ce=100;r.BAG_IDS=V,r.BET_MAX_VALUE=Ee,r.BET_MIN_VALUE=oe,r.BadgeList=C,r.BaseQuest=ie,r.CHARACTERISTICS=$,r.CHARACTERISTIC_DEFAULT_POINT_COST=t,r.CHARACTERISTIC_POINT_COSTS=l,r.CHARACTERISTIC_POINT_PER_LEVEL=A,r.DEFAULT_BACKGROUND_ID=H,r.DEFAULT_BUFF_TREE=K,r.DEFAULT_FACTION=h,r.DEFAULT_MAX_HP=q,r.EDITO_READ=ce,r.EFFECT_KEYS=P,r.ENTITY_TYPES=D,r.EQUIPMENT_CATEGORY=T,r.EQUIPMENT_FROM_SLOT_TO_TYPE=Y,r.EQUIPMENT_SLOT=u,r.EQUIPMENT_TYPE=n,r.FACTIONS=L,r.FactionBadgeList=y,r.GAME_TYPES=pe,r.HP_PER_VITALITY=W,r.ITEM_CATEGORY=O,r.ITEM_SUBTYPE=N,r.ITEM_TYPE=d,r.PROFILE_ASSETS_ID=U,r.PROGRESSIVE_BADGES=S,r.QuestStatus=I,r.RANKS=G,r.RANK_IDS_WITHOUT_BASIC=g,r.RankId=e,r.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=_e,r.SORT_VALUES=ee,r.STRICT_BADGES=v,r.USAGE_MODES=f,r.displayXp=z,r.filterBadgesBy=k,r.filterRarity=F,r.getAvailableCharacteristicPoints=x,r.getCharacteristicCost=a,r.getComputedCharacteristicCost=J,r.getComputedCharacteristicValue=Z,r.getCurrentLevel=M,r.getNewSortValue=re,r.hasBuffExpired=Q,r.profileAssets=j,r.progressiveBadgeTypeGuard=B,r.totalXpToLevel=b,r.transformToDBBuff=X,r.xpToLevel=R,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(r,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):(r=typeof globalThis<"u"?globalThis:r||self,i(r.definitions={},r.i18next,r["@opfr/emojis"],r["@opfr/utils-lang"]))})(this,(function(r,i,l,T){"use strict";const w=["consumable","resource","chest"],n=["item"],O=["alchemy","cooking","forge","carpentry","weaving"],d=["equipment"],N=["hat","necklace","ring","outfit","boot","weapon"],Y=["hat","necklace","ring_left","ring_right","outfit","boot","weapon"],u={hat:"hat",necklace:"necklace",ring_left:"ring",ring_right:"ring",outfit:"outfit",boot:"boot",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","REGAIN_ENERGY","RESET_CHARAC"],g=["single","multiple","all"],f=[...n,...d],D={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=(p=>(p.COMMON="COMMON",p.RARE="RARE",p.EPIC="EPIC",p.LEGENDARY="LEGENDARY",p.MYTHIC="MYTHIC",p))(e||{});const h=[e.COMMON,e.RARE,e.EPIC,e.LEGENDARY,e.MYTHIC],G={COMMON:{color:"#813D31",strength:1,id:e.COMMON,name:(p,_=1)=>i.t(`ranks.${e.COMMON}.text`,{count:_,context:p,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:e.RARE,name:(p,_=1)=>i.t(`ranks.${e.RARE}.text`,{count:_,context:p,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:e.EPIC,name:(p,_=1)=>i.t(`ranks.${e.EPIC}.text`,{count:_,context:p,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:e.LEGENDARY,name:(p,_=1)=>i.t(`ranks.${e.LEGENDARY}.text`,{count:_,context:p,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:e.MYTHIC,name:(p,_=1)=>i.t(`ranks.${e.MYTHIC}.text`,{count:_,context:p,ns:"common"})}},S="background_default",H=[{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}],v=[{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}},y=p=>!!p.isProgressive,k=["b_marine","b_revolutionary","b_pirate"],B=(p,_)=>p.filter(o=>{const[s]=o.split("_"),t=Object.values(R).find(b=>b.id===s);return t?_(t):!1}),F=p=>p.filter((_,o,s)=>{const[t,b]=_.split("_");return!s.find(Me=>{const[Ae,Ie]=Me.split("_");return t!==Ae?!1:b<Ie})}),U=["idiot","satan","edito","toy"],j={satan:"satan",idiot:"idiot",edito:"edito",toy:"toy"},V=["default","christmas"],C=p=>Math.round(5e3*Math.pow(200,.01*p)/10)*10,c=p=>p>=1?c(p-1)+C(p):0,M=(p,_=0)=>p<c(_+1)?_:M(p,_+1),K=p=>i.t("xp.user",{amount:T.formatNumber(p),emoji:l.emojis.xp,ns:"common"}),z={cooldown:{casino:[],work:[]},berry:{work:[],global:[]},drop:{work:[]},xp:{global:[]}},Q=p=>p.expireAt&&p.expireAt<new Date,X=({multiplier:p,origin:_,startIn:o,endIn:s})=>({multiplier:p,origin:_,expireAt:s?new Date(Date.now()+((o??0)+s)*60*60*1e3):null,startAt:o?new Date(Date.now()+o*60*60*1e3):null}),$=["vitality","strength","agility","intelligence","chance","wisdom"],A=10,a=1,I=[[200,4],[100,3],[50,2],[0,a]],q=100,W=10,E=p=>{for(const[_,o]of I)if(p>=_)return o;return a},J=(p,_)=>{let o=0;for(;_>0;_--)o+=E(p),p++;return o},Z=p=>{let _=0;for(;p>0;p-=E(_))_++;return _},x=(p,_)=>_*A-Object.values(p).reduce((o,s)=>o+s,0),ee=["category","alpha","quantity"],re=(p,_)=>_===null?null:p===_?`-${p}`:_,pe=["dice","rps","doubleOrQuit","blackJack","priceIsRight"],_e=10;class oe{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var m=(p=>(p.COMPLETED="COMPLETED",p.IN_PROGRESS="IN_PROGRESS",p))(m||{});const ie=10,se=1e7,te=100,ce=["npc","narrator","system"],ae=["message","action","info"],Ee=["embed"],be=["button","command"],ne=["success","danger","primary","secondary"],de=["username"],Re=[{speakerId:"narrator",type:"narrator"},{speakerId:"system",type:"system"},{speakerId:"goro",type:"npc"},{speakerId:"lena",type:"npc"},{speakerId:"walto",type:"npc"},{speakerId:"bruto",type:"npc"},{speakerId:"toto",type:"npc"},{speakerId:"pip",type:"npc"}],Ce={chapterId:"departure",scenes:{awaken:{sceneId:"awaken",steps:{awaken:{stepId:"awaken",type:"message",messages:[{speakerId:"narrator",order:1},{speakerId:"system",order:2},{speakerId:"goro",order:3}],next:"profile"},profile:{stepId:"profile",type:"action",actionType:"command",messages:[{speakerId:"system"}],payload:[{actionId:"doProfile",type:"command",commandId:"profile",next:"goroProfileResponse"}]},goroProfileResponse:{stepId:"goroProfileResponse",type:"message",messages:[{speakerId:"goro",args:["username"]}]}},entryStepId:"awaken",next:"tensionPort"},tensionPort:{sceneId:"tensionPort",steps:{goroExplain:{stepId:"goroExplain",type:"message",messages:[{speakerId:"goro"}],next:"answerToGoro"},answerToGoro:{stepId:"answerToGoro",type:"action",actionType:"button",messages:[{speakerId:"goro"}],payload:[{actionId:"answerA",type:"button",variant:"primary",next:"goroResponseA"},{actionId:"answerB",type:"button",variant:"primary",next:"goroResponseB"},{actionId:"answerC",type:"button",variant:"primary",next:"goroResponseC"}]},goroResponseA:{stepId:"goroResponseA",type:"message",messages:[{speakerId:"goro"}]},goroResponseB:{stepId:"goroResponseB",type:"message",messages:[{speakerId:"goro"}]},goroResponseC:{stepId:"goroResponseC",type:"message",messages:[{speakerId:"goro"}]}},entryStepId:"goroExplain",next:""}},entrySceneId:"awaken"};r.BAG_IDS=V,r.BET_MAX_VALUE=se,r.BET_MIN_VALUE=ie,r.BadgeList=R,r.BaseQuest=oe,r.CHARACTERISTICS=$,r.CHARACTERISTIC_DEFAULT_POINT_COST=a,r.CHARACTERISTIC_POINT_COSTS=I,r.CHARACTERISTIC_POINT_PER_LEVEL=A,r.DEFAULT_BACKGROUND_ID=S,r.DEFAULT_BUFF_TREE=z,r.DEFAULT_FACTION=L,r.DEFAULT_MAX_HP=q,r.EDITO_READ=te,r.EFFECT_KEYS=P,r.ENTITY_TYPES=f,r.EQUIPMENT_CATEGORY=N,r.EQUIPMENT_FROM_SLOT_TO_TYPE=u,r.EQUIPMENT_SLOT=Y,r.EQUIPMENT_TYPE=d,r.FACTIONS=D,r.FactionBadgeList=k,r.GAME_TYPES=pe,r.HP_PER_VITALITY=W,r.ITEM_CATEGORY=w,r.ITEM_SUBTYPE=O,r.ITEM_TYPE=n,r.PROFILE_ASSETS_ID=U,r.PROGRESSIVE_BADGES=H,r.QuestStatus=m,r.RANKS=G,r.RANK_IDS_WITHOUT_BASIC=h,r.RankId=e,r.SHOP_DEFAULT_AVAILABLE_ENTITY_AMOUNT=_e,r.SORT_VALUES=ee,r.STORY_ACTION_TYPES=be,r.STORY_BUTTON_ACTION_VARIANT=ne,r.STORY_INFO_STEP_TYPES=Ee,r.STORY_MESSAGE_ARGS=de,r.STORY_SPEAKER_TYPES=ce,r.STORY_STEP_TYPES=ae,r.STRICT_BADGES=v,r.USAGE_MODES=g,r.chapterOne=Ce,r.displayXp=K,r.filterBadgesBy=B,r.filterRarity=F,r.getAvailableCharacteristicPoints=x,r.getCharacteristicCost=E,r.getComputedCharacteristicCost=J,r.getComputedCharacteristicValue=Z,r.getCurrentLevel=M,r.getNewSortValue=re,r.hasBuffExpired=Q,r.profileAssets=j,r.progressiveBadgeTypeGuard=y,r.speakers=Re,r.totalXpToLevel=c,r.transformToDBBuff=X,r.xpToLevel=C,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|