lol-constants 2.15.0 → 2.16.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.
@@ -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