lol-constants 2.14.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const Abilities: {
|
2
|
+
readonly P: "P";
|
3
|
+
readonly Q: "Q";
|
4
|
+
readonly W: "W";
|
5
|
+
readonly E: "E";
|
6
|
+
readonly R: "R";
|
7
|
+
};
|
8
|
+
export type Ability = typeof Abilities[keyof typeof Abilities];
|
9
|
+
export declare function isAbility(value: any): value is Ability;
|
10
|
+
export declare const ActiveAbilities: {
|
11
|
+
readonly Q: "Q";
|
12
|
+
readonly W: "W";
|
13
|
+
readonly E: "E";
|
14
|
+
readonly R: "R";
|
15
|
+
};
|
16
|
+
export type ActiveAbility = typeof ActiveAbilities[keyof typeof ActiveAbilities];
|
17
|
+
export declare function isActiveAbility(value: any): value is ActiveAbility;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isActiveAbility = exports.ActiveAbilities = exports.isAbility = exports.Abilities = void 0;
|
4
|
+
exports.Abilities = {
|
5
|
+
'P': 'P',
|
6
|
+
'Q': 'Q',
|
7
|
+
'W': 'W',
|
8
|
+
'E': 'E',
|
9
|
+
'R': 'R',
|
10
|
+
};
|
11
|
+
function isAbility(value) {
|
12
|
+
return typeof value == 'string' && value in exports.Abilities;
|
13
|
+
}
|
14
|
+
exports.isAbility = isAbility;
|
15
|
+
exports.ActiveAbilities = {
|
16
|
+
'Q': 'Q',
|
17
|
+
'W': 'W',
|
18
|
+
'E': 'E',
|
19
|
+
'R': 'R',
|
20
|
+
};
|
21
|
+
function isActiveAbility(value) {
|
22
|
+
return typeof value == 'string' && value in exports.ActiveAbilities;
|
23
|
+
}
|
24
|
+
exports.isActiveAbility = isActiveAbility;
|
@@ -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