lol-constants 2.15.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/core/index.d.ts +2 -0
- package/core/index.js +2 -0
- package/core/types/championJson.d.ts +85 -0
- package/core/types/championJson.js +2 -0
- package/core/types/interfaces.d.ts +22 -0
- package/core/types/interfaces.js +2 -0
- package/package.json +1 -1
package/core/index.d.ts
CHANGED
@@ -138,4 +138,6 @@ export * from './helpers/Spells/isSpellId';
|
|
138
138
|
export * from './helpers/Spells/isSpellKey';
|
139
139
|
export * from './helpers/Spells/isSpellKeyNum';
|
140
140
|
export * from './helpers/Spells/isSpellName';
|
141
|
+
export * from './types/championJson';
|
142
|
+
export * from './types/interfaces';
|
141
143
|
export * from './types/types';
|
package/core/index.js
CHANGED
@@ -165,4 +165,6 @@ __exportStar(require("./helpers/Spells/isSpellKey"), exports);
|
|
165
165
|
__exportStar(require("./helpers/Spells/isSpellKeyNum"), exports);
|
166
166
|
__exportStar(require("./helpers/Spells/isSpellName"), exports);
|
167
167
|
// # types
|
168
|
+
__exportStar(require("./types/championJson"), exports);
|
169
|
+
__exportStar(require("./types/interfaces"), exports);
|
168
170
|
__exportStar(require("./types/types"), exports);
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ChampionId } from '../constants/Champions/ChampionIds';
|
2
|
+
import { ChampionKey } from '../constants/Champions/ChampionKeys';
|
3
|
+
import { ChampionName } from '../constants/Champions/ChampionNames';
|
4
|
+
import { ChampionBaseStats } from './interfaces';
|
5
|
+
export interface ChampionJson {
|
6
|
+
type: string;
|
7
|
+
format: string;
|
8
|
+
version: string;
|
9
|
+
data: {
|
10
|
+
[championId: string]: ChampionJsonData;
|
11
|
+
};
|
12
|
+
}
|
13
|
+
export interface ChampionJsonData {
|
14
|
+
id: ChampionId;
|
15
|
+
key: ChampionKey;
|
16
|
+
name: ChampionName;
|
17
|
+
title: string;
|
18
|
+
image: ChampionJsonImage;
|
19
|
+
skins: ChampionJsonSkin[];
|
20
|
+
lore: string;
|
21
|
+
blurb: string;
|
22
|
+
allytips: string[];
|
23
|
+
enemytips: string[];
|
24
|
+
tags: string[];
|
25
|
+
partype: string;
|
26
|
+
info: ChampionJsonNewbieInfo;
|
27
|
+
stats: ChampionBaseStats;
|
28
|
+
spells: ChampionJsonSpell;
|
29
|
+
passive: ChampionJsonPassive;
|
30
|
+
recommended: unknown[];
|
31
|
+
}
|
32
|
+
export interface ChampionJsonImage {
|
33
|
+
full: string;
|
34
|
+
sprite: string;
|
35
|
+
group: string;
|
36
|
+
x: number;
|
37
|
+
y: number;
|
38
|
+
w: number;
|
39
|
+
h: number;
|
40
|
+
}
|
41
|
+
export interface ChampionJsonSkin {
|
42
|
+
id: string;
|
43
|
+
num: number;
|
44
|
+
name: string;
|
45
|
+
chromas: boolean;
|
46
|
+
}
|
47
|
+
export interface ChampionJsonNewbieInfo {
|
48
|
+
attack: number;
|
49
|
+
defense: number;
|
50
|
+
magic: number;
|
51
|
+
difficulty: number;
|
52
|
+
}
|
53
|
+
export interface ChampionJsonSpell {
|
54
|
+
id: string;
|
55
|
+
name: string;
|
56
|
+
description: string;
|
57
|
+
tooltip: string;
|
58
|
+
leveltip: ChampionJsonSpellLevelTip;
|
59
|
+
maxrank: number;
|
60
|
+
cooldown: number[];
|
61
|
+
cooldownBurn: string;
|
62
|
+
cost: number[];
|
63
|
+
costBurn: string;
|
64
|
+
datavalues: {
|
65
|
+
[key: string]: any;
|
66
|
+
};
|
67
|
+
effect: any[];
|
68
|
+
effectBurn: any[];
|
69
|
+
vars: any[];
|
70
|
+
costType: string;
|
71
|
+
maxammo: string;
|
72
|
+
range: number[];
|
73
|
+
rangeBurn: string;
|
74
|
+
image: ChampionJsonImage;
|
75
|
+
resource: string;
|
76
|
+
}
|
77
|
+
export interface ChampionJsonSpellLevelTip {
|
78
|
+
label: string[];
|
79
|
+
effect: string[];
|
80
|
+
}
|
81
|
+
export interface ChampionJsonPassive {
|
82
|
+
name: string;
|
83
|
+
description: string;
|
84
|
+
image: ChampionJsonImage;
|
85
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export interface ChampionBaseStats {
|
2
|
+
hp: number;
|
3
|
+
hpperlevel: number;
|
4
|
+
mp: number;
|
5
|
+
mpperlevel: number;
|
6
|
+
movespeed: number;
|
7
|
+
armor: number;
|
8
|
+
armorperlevel: number;
|
9
|
+
spellblock: number;
|
10
|
+
spellblockperlevel: number;
|
11
|
+
attackrange: number;
|
12
|
+
hpregen: number;
|
13
|
+
hpregenperlevel: number;
|
14
|
+
mpregen: number;
|
15
|
+
mpregenperlevel: number;
|
16
|
+
crit: number;
|
17
|
+
critperlevel: number;
|
18
|
+
attackdamage: number;
|
19
|
+
attackdamageperlevel: number;
|
20
|
+
attackspeedperlevel: number;
|
21
|
+
attackspeed: number;
|
22
|
+
}
|
package/package.json
CHANGED