enefel 1.2.9 → 2.0.1
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/avatars.d.ts +102 -0
- package/dist/avatarsDefault.d.ts +115 -0
- package/dist/badge.d.ts +22 -0
- package/dist/block.d.ts +11 -0
- package/dist/calcul.d.ts +3 -0
- package/dist/canUseSkills.d.ts +6 -0
- package/dist/card.d.ts +15 -0
- package/dist/career.d.ts +176 -0
- package/dist/color.d.ts +7 -0
- package/dist/date.d.ts +4 -0
- package/dist/dice.d.ts +5 -0
- package/dist/elo.d.ts +6 -0
- package/dist/game.d.ts +25 -0
- package/dist/iconMap.d.ts +0 -0
- package/dist/improvement.d.ts +19 -0
- package/dist/index.d.ts +246 -0
- package/dist/inducement.d.ts +8 -0
- package/dist/item.d.ts +23 -0
- package/dist/jest.config.d.ts +0 -0
- package/dist/league.d.ts +33 -0
- package/dist/meteo.d.ts +36 -0
- package/dist/moral.d.ts +3 -0
- package/dist/move.d.ts +7 -0
- package/dist/package.json +2 -3
- package/dist/pitch.d.ts +31 -0
- package/dist/player.d.ts +40 -0
- package/dist/position.d.ts +4 -0
- package/dist/race.d.ts +93 -0
- package/dist/random.d.ts +7 -0
- package/dist/right.d.ts +10 -0
- package/dist/skill.d.ts +151 -0
- package/dist/skillCoach.d.ts +17 -0
- package/dist/stadium.d.ts +121 -0
- package/dist/state.d.ts +30 -0
- package/dist/status.d.ts +20 -0
- package/dist/store.d.ts +95 -0
- package/dist/time.d.ts +18 -0
- package/dist/tsconfig.json +2 -1
- package/dist/types/models.d.ts +368 -0
- package/dist/validator.d.ts +24 -0
- package/dist/version.d.ts +2 -0
- package/package.json +2 -3
- package/tsconfig.json +2 -1
- package/.npmrc-example +0 -8
- package/dist/package-lock.json +0 -6658
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const AVATAR_LIST: {
|
|
2
|
+
beastman: {
|
|
3
|
+
file: string;
|
|
4
|
+
rarity: string;
|
|
5
|
+
}[];
|
|
6
|
+
"black-orc": {
|
|
7
|
+
file: string;
|
|
8
|
+
rarity: string;
|
|
9
|
+
}[];
|
|
10
|
+
bloater: {
|
|
11
|
+
file: string;
|
|
12
|
+
rarity: string;
|
|
13
|
+
}[];
|
|
14
|
+
bloodspawn: {
|
|
15
|
+
file: string;
|
|
16
|
+
rarity: string;
|
|
17
|
+
}[];
|
|
18
|
+
centaur: {
|
|
19
|
+
file: string;
|
|
20
|
+
rarity: string;
|
|
21
|
+
}[];
|
|
22
|
+
"chaos-dwarf": {
|
|
23
|
+
file: string;
|
|
24
|
+
rarity: string;
|
|
25
|
+
}[];
|
|
26
|
+
"chaos-warrior": {
|
|
27
|
+
file: string;
|
|
28
|
+
rarity: string;
|
|
29
|
+
}[];
|
|
30
|
+
dark_elf: {
|
|
31
|
+
file: string;
|
|
32
|
+
rarity: string;
|
|
33
|
+
}[];
|
|
34
|
+
dwarf: {
|
|
35
|
+
file: string;
|
|
36
|
+
rarity: string;
|
|
37
|
+
}[];
|
|
38
|
+
elf: {
|
|
39
|
+
file: string;
|
|
40
|
+
rarity: string;
|
|
41
|
+
}[];
|
|
42
|
+
gobelin: {
|
|
43
|
+
file: string;
|
|
44
|
+
rarity: string;
|
|
45
|
+
}[];
|
|
46
|
+
halfing: {
|
|
47
|
+
file: string;
|
|
48
|
+
rarity: string;
|
|
49
|
+
}[];
|
|
50
|
+
human: {
|
|
51
|
+
file: string;
|
|
52
|
+
rarity: string;
|
|
53
|
+
}[];
|
|
54
|
+
"human-woman": {
|
|
55
|
+
file: string;
|
|
56
|
+
rarity: string;
|
|
57
|
+
}[];
|
|
58
|
+
lezard: {
|
|
59
|
+
file: string;
|
|
60
|
+
rarity: string;
|
|
61
|
+
}[];
|
|
62
|
+
minotaur: {
|
|
63
|
+
file: string;
|
|
64
|
+
rarity: string;
|
|
65
|
+
}[];
|
|
66
|
+
mummie: {
|
|
67
|
+
file: string;
|
|
68
|
+
rarity: string;
|
|
69
|
+
}[];
|
|
70
|
+
ogre: {
|
|
71
|
+
file: string;
|
|
72
|
+
rarity: string;
|
|
73
|
+
}[];
|
|
74
|
+
orc: {
|
|
75
|
+
file: string;
|
|
76
|
+
rarity: string;
|
|
77
|
+
}[];
|
|
78
|
+
rat: {
|
|
79
|
+
file: string;
|
|
80
|
+
rarity: string;
|
|
81
|
+
}[];
|
|
82
|
+
treeman: {
|
|
83
|
+
file: string;
|
|
84
|
+
rarity: string;
|
|
85
|
+
}[];
|
|
86
|
+
troll: {
|
|
87
|
+
file: string;
|
|
88
|
+
rarity: string;
|
|
89
|
+
}[];
|
|
90
|
+
undead: {
|
|
91
|
+
file: string;
|
|
92
|
+
rarity: string;
|
|
93
|
+
}[];
|
|
94
|
+
werewolf: {
|
|
95
|
+
file: string;
|
|
96
|
+
rarity: string;
|
|
97
|
+
}[];
|
|
98
|
+
yhetee: {
|
|
99
|
+
file: string;
|
|
100
|
+
rarity: string;
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare const AVATAR_DEFAULT_LIST: {
|
|
2
|
+
beastman: {
|
|
3
|
+
file: string;
|
|
4
|
+
rarity: string;
|
|
5
|
+
}[];
|
|
6
|
+
"black-orc": {
|
|
7
|
+
file: string;
|
|
8
|
+
rarity: string;
|
|
9
|
+
}[];
|
|
10
|
+
bloater: {
|
|
11
|
+
file: string;
|
|
12
|
+
rarity: string;
|
|
13
|
+
}[];
|
|
14
|
+
bloodspawn: {
|
|
15
|
+
file: string;
|
|
16
|
+
rarity: string;
|
|
17
|
+
}[];
|
|
18
|
+
centaur: {
|
|
19
|
+
file: string;
|
|
20
|
+
rarity: string;
|
|
21
|
+
}[];
|
|
22
|
+
"chaos-dwarf": {
|
|
23
|
+
file: string;
|
|
24
|
+
rarity: string;
|
|
25
|
+
}[];
|
|
26
|
+
"chaos-warrior": {
|
|
27
|
+
file: string;
|
|
28
|
+
rarity: string;
|
|
29
|
+
}[];
|
|
30
|
+
dark_elf: {
|
|
31
|
+
file: string;
|
|
32
|
+
rarity: string;
|
|
33
|
+
}[];
|
|
34
|
+
dwarf: {
|
|
35
|
+
file: string;
|
|
36
|
+
rarity: string;
|
|
37
|
+
}[];
|
|
38
|
+
elf: {
|
|
39
|
+
file: string;
|
|
40
|
+
rarity: string;
|
|
41
|
+
}[];
|
|
42
|
+
gobelin: {
|
|
43
|
+
file: string;
|
|
44
|
+
rarity: string;
|
|
45
|
+
}[];
|
|
46
|
+
golem: {
|
|
47
|
+
file: string;
|
|
48
|
+
rarity: string;
|
|
49
|
+
}[];
|
|
50
|
+
halfing: {
|
|
51
|
+
file: string;
|
|
52
|
+
rarity: string;
|
|
53
|
+
}[];
|
|
54
|
+
human: {
|
|
55
|
+
file: string;
|
|
56
|
+
rarity: string;
|
|
57
|
+
}[];
|
|
58
|
+
"human-woman": {
|
|
59
|
+
file: string;
|
|
60
|
+
rarity: string;
|
|
61
|
+
}[];
|
|
62
|
+
lezard: {
|
|
63
|
+
file: string;
|
|
64
|
+
rarity: string;
|
|
65
|
+
}[];
|
|
66
|
+
minotaur: {
|
|
67
|
+
file: string;
|
|
68
|
+
rarity: string;
|
|
69
|
+
}[];
|
|
70
|
+
mummie: {
|
|
71
|
+
file: string;
|
|
72
|
+
rarity: string;
|
|
73
|
+
}[];
|
|
74
|
+
ogre: {
|
|
75
|
+
file: string;
|
|
76
|
+
rarity: string;
|
|
77
|
+
}[];
|
|
78
|
+
orc: {
|
|
79
|
+
file: string;
|
|
80
|
+
rarity: string;
|
|
81
|
+
}[];
|
|
82
|
+
rat: {
|
|
83
|
+
file: string;
|
|
84
|
+
rarity: string;
|
|
85
|
+
}[];
|
|
86
|
+
rat_ogre: {
|
|
87
|
+
file: string;
|
|
88
|
+
rarity: string;
|
|
89
|
+
}[];
|
|
90
|
+
slann: {
|
|
91
|
+
file: string;
|
|
92
|
+
rarity: string;
|
|
93
|
+
}[];
|
|
94
|
+
treeman: {
|
|
95
|
+
file: string;
|
|
96
|
+
rarity: string;
|
|
97
|
+
}[];
|
|
98
|
+
troll: {
|
|
99
|
+
file: string;
|
|
100
|
+
rarity: string;
|
|
101
|
+
}[];
|
|
102
|
+
undead: {
|
|
103
|
+
file: string;
|
|
104
|
+
rarity: string;
|
|
105
|
+
}[];
|
|
106
|
+
werewolf: {
|
|
107
|
+
file: string;
|
|
108
|
+
rarity: string;
|
|
109
|
+
}[];
|
|
110
|
+
yhetee: {
|
|
111
|
+
file: string;
|
|
112
|
+
rarity: string;
|
|
113
|
+
}[];
|
|
114
|
+
};
|
|
115
|
+
export { AVATAR_DEFAULT_LIST };
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { User, UserBadge } from "./types/models";
|
|
2
|
+
declare enum BADGE_NAMES {
|
|
3
|
+
BLOODTHIRSTY = "bloodthirsty",
|
|
4
|
+
DEAD_FULL_MOON = "dead-full-moon",
|
|
5
|
+
DEAD = "dead",
|
|
6
|
+
ELVEN_UNION = "elfen-union",
|
|
7
|
+
IMPERIAL = "imperial",
|
|
8
|
+
KILL = "kill",
|
|
9
|
+
NURGLE = "nurgle",
|
|
10
|
+
SNOTLING = "snotling",
|
|
11
|
+
WEAPON = "weapon",
|
|
12
|
+
VAMPIRE = "vampire",
|
|
13
|
+
SLANN = "slann"
|
|
14
|
+
}
|
|
15
|
+
type BadgesType = {
|
|
16
|
+
[key: string]: number[];
|
|
17
|
+
};
|
|
18
|
+
declare const badges: BadgesType;
|
|
19
|
+
declare function getBadgeMaxLevel(badge: UserBadge): number;
|
|
20
|
+
declare function getBadgeLevel(badge: UserBadge): number;
|
|
21
|
+
declare function hasBadge(badgeId: string, user: User, quantity?: number): boolean;
|
|
22
|
+
export { BADGE_NAMES, badges, getBadgeLevel, getBadgeMaxLevel, hasBadge };
|
package/dist/block.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlayerWithSkill } from "types/models";
|
|
2
|
+
declare function isFrenzyAvailable(player: PlayerWithSkill, defender: PlayerWithSkill): boolean;
|
|
3
|
+
declare const getOrderDice: (attacker: PlayerWithSkill, defender: PlayerWithSkill) => {
|
|
4
|
+
value: number;
|
|
5
|
+
isReroll: boolean;
|
|
6
|
+
}[];
|
|
7
|
+
declare const getOrderDiceAgainst: (attacker: PlayerWithSkill, defender: PlayerWithSkill) => {
|
|
8
|
+
value: number;
|
|
9
|
+
isReroll: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
export { getOrderDice, getOrderDiceAgainst, isFrenzyAvailable };
|
package/dist/calcul.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PlayerWithSkill } from "./types/models";
|
|
2
|
+
declare function canUseFend(playerFrom: PlayerWithSkill, playerTo: PlayerWithSkill, isBlitz: boolean): boolean;
|
|
3
|
+
declare function canUseStandFirm(playerFrom: PlayerWithSkill, playerTo: PlayerWithSkill, isBlitz: boolean): boolean;
|
|
4
|
+
declare function canUseStandWrestle(playerFrom: PlayerWithSkill, playerTo: PlayerWithSkill, isBlitz: boolean): boolean;
|
|
5
|
+
declare function canUsePileDriver(playerFrom: PlayerWithSkill, playerTo: PlayerWithSkill): boolean;
|
|
6
|
+
export { canUseFend, canUsePileDriver, canUseStandFirm, canUseStandWrestle };
|
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const CARD_TYPE: {
|
|
2
|
+
PLAYER: string;
|
|
3
|
+
TEAM: string;
|
|
4
|
+
};
|
|
5
|
+
declare const CARD_RARITY: {
|
|
6
|
+
COMMUN: string;
|
|
7
|
+
UNCOMMUN: string;
|
|
8
|
+
RARE: string;
|
|
9
|
+
};
|
|
10
|
+
declare const USER_CARD_RARITY: {
|
|
11
|
+
SHINY_NONE: string;
|
|
12
|
+
SHINY_RARE: string;
|
|
13
|
+
SHINY_UNIQUE: string;
|
|
14
|
+
};
|
|
15
|
+
export { CARD_RARITY, CARD_TYPE, USER_CARD_RARITY };
|
package/dist/career.d.ts
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { SKILL_NAMES } from "./skill";
|
|
2
|
+
export declare enum RACE {
|
|
3
|
+
AMAZON = "amazon-career",
|
|
4
|
+
CHAOS_DWARF = "chaos-dwarf-career",
|
|
5
|
+
CHAOS = "chaos-career",
|
|
6
|
+
DARK_ELFE = "dark-elfe-career",
|
|
7
|
+
DWARF = "dwarf-career",
|
|
8
|
+
ELVEN_UNION = "elven-union-career",
|
|
9
|
+
GOBELIN = "gobelin-career",
|
|
10
|
+
HALFLING = "halfling-career",
|
|
11
|
+
HUMAN = "human-career",
|
|
12
|
+
IMPERIAL = "imperial-career",
|
|
13
|
+
KHORNE = "khorne-career",
|
|
14
|
+
LIZARDMEN = "lizardmen-career",
|
|
15
|
+
NECROMANTIC = "necromantic-career",
|
|
16
|
+
NORSE = "norse-career",
|
|
17
|
+
NURGLE = "nurgle-career",
|
|
18
|
+
ORC = "orc-career",
|
|
19
|
+
RAT = "rat-career",
|
|
20
|
+
SILVAN = "silvan-career",
|
|
21
|
+
SNOTLING = "snotling-career",
|
|
22
|
+
UNDEAD = "undead-career",
|
|
23
|
+
VAMPIRE = "vampire-career",
|
|
24
|
+
SLANN = "slann-career"
|
|
25
|
+
}
|
|
26
|
+
declare enum AVATAR_RARITY {
|
|
27
|
+
COMMUN = "c",
|
|
28
|
+
RARE = "r",
|
|
29
|
+
UNIQUE = "u"
|
|
30
|
+
}
|
|
31
|
+
declare enum AVATAR {
|
|
32
|
+
BEASTMAN = "beastman",
|
|
33
|
+
BLACK_ORC = "black-orc",
|
|
34
|
+
BLOATER = "bloater",
|
|
35
|
+
BLOODSPAWN = "bloodspawn",
|
|
36
|
+
CENTAUR = "centaur",
|
|
37
|
+
CHAOS_DWARF = "chaos-dwarf",
|
|
38
|
+
CHAOS_WARRIOR = "chaos-warrior",
|
|
39
|
+
DARK_ELF = "dark_elf",
|
|
40
|
+
DWARF = "dwarf",
|
|
41
|
+
ELF = "elf",
|
|
42
|
+
GOBELIN = "gobelin",
|
|
43
|
+
GOLEM = "golem",
|
|
44
|
+
HALFING = "halfing",
|
|
45
|
+
HUMAN_WOMAN = "human-woman",
|
|
46
|
+
HUMAN = "human",
|
|
47
|
+
LIZARDMEN = "lezard",
|
|
48
|
+
MINOTAUR = "minotaur",
|
|
49
|
+
OGRE = "ogre",
|
|
50
|
+
ORC = "orc",
|
|
51
|
+
RAT_OGRE = "rat_ogre",
|
|
52
|
+
RAT = "rat",
|
|
53
|
+
ROTSPAWN = "rotspawn",
|
|
54
|
+
TREEMAN = "treeman",
|
|
55
|
+
TROLL = "troll",
|
|
56
|
+
UNDEAD = "undead",
|
|
57
|
+
WAGON = "wagon",
|
|
58
|
+
WEREWOLF = "werewolf",
|
|
59
|
+
YHETEE = "yhetee",
|
|
60
|
+
MUMMIE = "mummie",
|
|
61
|
+
SLANN = "slann"
|
|
62
|
+
}
|
|
63
|
+
declare enum CAREER_ID {
|
|
64
|
+
SLANN_LINEMAN = "slann-lineman",
|
|
65
|
+
SLANN_CATCHER = "slann-catcher",
|
|
66
|
+
SLANN_BLITZER = "slann-blitzer",
|
|
67
|
+
SLANN_KROXIGOR = "slann-kroxigor",
|
|
68
|
+
SNOTLING_LINEMAN = "snotling-lineman",
|
|
69
|
+
SNOTLING_RUNNER = "snotling-runner",
|
|
70
|
+
SNOTLING_WAGON = "snotling-wagon",
|
|
71
|
+
SNOTLING_TROLL = "snotling-troll",
|
|
72
|
+
NURGLE_ROTTER = "nurgle-rotter",
|
|
73
|
+
NURGLE_PESTIGOR = "nurgle-pestigor",
|
|
74
|
+
NURGLE_BLOATER = "nurgle-bloater",
|
|
75
|
+
NURGLE_ROTSPAWN = "nurgle-rotspawn",
|
|
76
|
+
NECROMANTIC_ZOMBIE = "necromantic-zombie",
|
|
77
|
+
NECROMANTIC_GHOUL = "necromantic-ghoul",
|
|
78
|
+
NECROMANTIC_WRAITH = "necromantic-wraith",
|
|
79
|
+
NECROMANTIC_WEREWOLF = "necromantic-werewolf",
|
|
80
|
+
NECROMANTIC_GOLEM = "necromantic-golem",
|
|
81
|
+
KHORNE_LINEMAN = "khorne-lineman",
|
|
82
|
+
KHORNE_KHORNGOR = "khorne-khorngor",
|
|
83
|
+
KHORNE_BLOODSEEKER = "khorne-bloodseeker",
|
|
84
|
+
KHORNE_BLOODSPAWN = "khorne-bloodspawn",
|
|
85
|
+
IMPERIAL_LINEMAN = "imperial-lineman",
|
|
86
|
+
IMPERIAL_THROWER = "imperial-thrower",
|
|
87
|
+
IMPERIAL_BLITZER = "imperial-blitzer",
|
|
88
|
+
IMPERIAL_BODYGUARD = "imperial-bodyguard",
|
|
89
|
+
IMPERIAL_OGRE = "imperial-ogre",
|
|
90
|
+
GOBELIN_LINEMAN = "gobelin-lineman",
|
|
91
|
+
GOBELIN_LOONEY = "gobelin-looney",
|
|
92
|
+
GOBELIN_POGOER = "gobelin-pogoer",
|
|
93
|
+
GOBELIN_TROLL = "gobelin-troll",
|
|
94
|
+
VAMPIRE_THRALL = "vampire-thrall",
|
|
95
|
+
VAMPIRE_VAMPIRE = "vampire-vampire",
|
|
96
|
+
ELVEN_UNION_LINEMAN = "elven-union-lineman",
|
|
97
|
+
ELVEN_UNION_THROWER = "elven-union-thrower",
|
|
98
|
+
ELVEN_UNION_CATCHER = "elven-union-catcher",
|
|
99
|
+
ELVEN_UNION_BLITZER = "elven-union-blitzer",
|
|
100
|
+
UNDEAD_SKELETON = "undead-skeleton",
|
|
101
|
+
UNDEAD_ZOMBIE = "undead-zombie",
|
|
102
|
+
UNDEAD_GHOUL = "undead-ghoul",
|
|
103
|
+
UNDEAD_WIGHT = "undead-wight",
|
|
104
|
+
UNDEAD_MUMMIES = "undead-mummies",
|
|
105
|
+
LIZARDMEN_SKINK = "lizardmen-skink",
|
|
106
|
+
LIZARDMEN_CHAMELEON = "lizardmen-chameleon",
|
|
107
|
+
LIZARDMEN_SAURUS = "lizardmen-saurus",
|
|
108
|
+
LIZARDMEN_KROXIGOR = "lizardmen-kroxigor",
|
|
109
|
+
NORSE_LINEMAN = "norse-lineman",
|
|
110
|
+
NORSE_THROWER = "norse-thrower",
|
|
111
|
+
NORSE_CATCHER = "norse-catcher",
|
|
112
|
+
NORSE_BERSERKER = "norse-berserker",
|
|
113
|
+
NORSE_ULFWERENERS = "norse-ulfwereners",
|
|
114
|
+
NORSE_YHETEE = "norse-yhetee",
|
|
115
|
+
AMAZON_LINEWOMEN = "amazon-linewomen",
|
|
116
|
+
AMAZON_THROWER = "amazon-thrower",
|
|
117
|
+
AMAZON_CATCHER = "amazon-catcher",
|
|
118
|
+
AMAZON_BLITZER = "amazon-blitzer",
|
|
119
|
+
HUMAN_LINEMAN = "human-lineman",
|
|
120
|
+
HUMAN_CATCHER = "human-catcher",
|
|
121
|
+
HUMAN_THROWER = "human-thrower",
|
|
122
|
+
HUMAN_BLITZER = "human-blitzer",
|
|
123
|
+
HUMAN_OGRE = "human-ogre",
|
|
124
|
+
ORC_LINEMAN = "orc-lineman",
|
|
125
|
+
ORC_THROWER = "orc-thrower",
|
|
126
|
+
ORC_BLITZER = "orc-blitzer",
|
|
127
|
+
ORC_BLACK_ORC = "orc-black-orc",
|
|
128
|
+
ORC_TROLL = "orc-troll",
|
|
129
|
+
DWARF_BLOCKER = "dwarf-blocker",
|
|
130
|
+
DWARF_RUNNER = "dwarf-runner",
|
|
131
|
+
DWARF_BLITZER = "dwarf-blitzer",
|
|
132
|
+
DWARF_TROLL_SLAYER = "dwarf-troll-slayer",
|
|
133
|
+
DWARF_DEATHROLLER = "deathroller",
|
|
134
|
+
RAT_LINEMAN = "rat-lineman",
|
|
135
|
+
RAT_THROWER = "rat-thrower",
|
|
136
|
+
RAT_RUNNER = "rat-runner",
|
|
137
|
+
RAT_BLITZER = "rat-blitzer",
|
|
138
|
+
RAT_OGRE = "rat-ogre",
|
|
139
|
+
SILVAN_LINEMAN = "silvan-lineman",
|
|
140
|
+
SILVAN_CATCHER = "silvan-catcher",
|
|
141
|
+
SILVAN_THROWER = "silvan-thrower",
|
|
142
|
+
SILVAN_WARDANCER = "silvan-wardancer",
|
|
143
|
+
CHAOS_BEASTMAN = "chaos-beastman",
|
|
144
|
+
CHAOS_WARRIOR = "chaos-warrior",
|
|
145
|
+
CHAOS_MINOTAUR = "chaos-minotaur",
|
|
146
|
+
DARK_ELFE_LINEMAN = "dark-elfe-lineman",
|
|
147
|
+
DARK_ELFE_RUNNER = "dark-elfe-runner",
|
|
148
|
+
DARK_ELFE_BLITZER = "dark-elfe-blitzer",
|
|
149
|
+
DARK_ELFE_WITCH = "dark-elfe-witch",
|
|
150
|
+
CHAOS_DWARF_HOBGOBELIN = "chaos-dwarf-hobgobelin",
|
|
151
|
+
CHAOS_DWARF_BLOCKER = "chaos-dwarf-blocker",
|
|
152
|
+
CHAOS_DWARF_BULL_CENTAUR = "chaos-dwarf-bull-centaur",
|
|
153
|
+
HALFLING_LINEMAN = "halfling-lineman",
|
|
154
|
+
HALFLING_HEFTY = "halfling-hefty",
|
|
155
|
+
HALFLING_CATCHER = "halfling-catcher",
|
|
156
|
+
HALFLING_TREEMAN = "halfling-treeman"
|
|
157
|
+
}
|
|
158
|
+
type Career = {
|
|
159
|
+
MA: number;
|
|
160
|
+
ST: number;
|
|
161
|
+
AG: number;
|
|
162
|
+
AV: number;
|
|
163
|
+
normal: string;
|
|
164
|
+
double: string;
|
|
165
|
+
normalCoach: string;
|
|
166
|
+
icons: string[];
|
|
167
|
+
skills: (SKILL_NAMES | [SKILL_NAMES, number])[];
|
|
168
|
+
avatars: AVATAR[];
|
|
169
|
+
badge: RACE;
|
|
170
|
+
range: number;
|
|
171
|
+
cost: number;
|
|
172
|
+
hasSprite?: boolean;
|
|
173
|
+
};
|
|
174
|
+
declare const CAREER: Record<CAREER_ID, Career>;
|
|
175
|
+
declare const getCareers: () => Record<CAREER_ID, Career>;
|
|
176
|
+
export { AVATAR, AVATAR_RARITY, CAREER, CAREER_ID, getCareers };
|
package/dist/color.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Game } from "types/models";
|
|
2
|
+
declare const colorShade: (col: string | null | undefined, amt: number) => string;
|
|
3
|
+
declare function isColorTooClose(a: string, b: string): boolean;
|
|
4
|
+
declare function invertColor(hexTripletColor: string): string;
|
|
5
|
+
declare const isColor: (strColor: string) => boolean;
|
|
6
|
+
declare const getGameColors: (game: Game) => (string | undefined)[];
|
|
7
|
+
export { colorShade, getGameColors, invertColor, isColor, isColorTooClose };
|
package/dist/date.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function isFullMoon(currentDate?: Date): boolean;
|
|
2
|
+
declare function isDateMoreThanDays(dateString: string, days?: number): boolean;
|
|
3
|
+
declare const calculateTimeRemaining: (targetDate: string) => number;
|
|
4
|
+
export { calculateTimeRemaining, isDateMoreThanDays, isFullMoon };
|
package/dist/dice.d.ts
ADDED
package/dist/elo.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const ELO_START = 1000;
|
|
2
|
+
declare const RESULT_WIN = 1;
|
|
3
|
+
declare const RESULT_LOST = -1;
|
|
4
|
+
declare const RESULT_DRAW = 0;
|
|
5
|
+
declare function getNewRating(myRating: number, opponentRating: number, myGameResult: number): number;
|
|
6
|
+
export { ELO_START, getNewRating, RESULT_DRAW, RESULT_LOST, RESULT_WIN };
|
package/dist/game.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Game } from "types/models";
|
|
2
|
+
declare const CLEAN_HISTORY_DAY = 30;
|
|
3
|
+
declare enum GAME_TYPE {
|
|
4
|
+
DIVISION = "division",
|
|
5
|
+
FRIENDLY = "friendly",
|
|
6
|
+
OPEN = "open",
|
|
7
|
+
PLAYOFF = "playoff"
|
|
8
|
+
}
|
|
9
|
+
declare enum GAME_STATUS {
|
|
10
|
+
WAITING = 0,
|
|
11
|
+
BEFORE = 1,
|
|
12
|
+
ONGOING = 2,
|
|
13
|
+
TD = 3,
|
|
14
|
+
END = 4,
|
|
15
|
+
FINISH = 5,// pop and po calculated
|
|
16
|
+
HALFTIME = 6
|
|
17
|
+
}
|
|
18
|
+
declare const isGameFinish: (game: Game) => boolean;
|
|
19
|
+
declare const hasGameCasualty: (game: Game) => boolean;
|
|
20
|
+
declare const getGameFanBonus: (game: Game) => 0 | 5;
|
|
21
|
+
declare const getGameFan: (game: Game) => number;
|
|
22
|
+
declare const getDateStartHalfTime: (game: Game) => Date;
|
|
23
|
+
declare const getDateEndHalfTime: (game: Game) => Date;
|
|
24
|
+
declare const isGameFirstHalfTime: (game: Game) => boolean;
|
|
25
|
+
export { CLEAN_HISTORY_DAY, GAME_STATUS, GAME_TYPE, getDateEndHalfTime, getDateStartHalfTime, getGameFan, getGameFanBonus, hasGameCasualty, isGameFinish, isGameFirstHalfTime, };
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Game } from "types/models";
|
|
2
|
+
declare enum SPP_TYPE {
|
|
3
|
+
BONUS = "BONUS",
|
|
4
|
+
INT = "INT",
|
|
5
|
+
KO = "KO",
|
|
6
|
+
REU = "REU",
|
|
7
|
+
SOR = "SOR",
|
|
8
|
+
TD = "TD",
|
|
9
|
+
FALL = "FALL",
|
|
10
|
+
ASSIST = "ASSIST"
|
|
11
|
+
}
|
|
12
|
+
declare const ranges: number[];
|
|
13
|
+
declare const coachRanges: number[];
|
|
14
|
+
declare const getSPP: (game: Game, type: SPP_TYPE) => number;
|
|
15
|
+
declare const getCurrentRange: (currentExp: number) => number;
|
|
16
|
+
declare const getNextRange: (currentExp: number) => number | "∞";
|
|
17
|
+
declare const getNextRangeCoach: (currentRange: number) => number | "∞";
|
|
18
|
+
declare const getAgingMinExperience: () => number;
|
|
19
|
+
export { coachRanges, getAgingMinExperience, getCurrentRange, getNextRange, getNextRangeCoach, getSPP, ranges, SPP_TYPE, };
|