lol-constants 0.2.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -614,6 +614,53 @@ export declare const champion: {
614
614
  attackspeed: number;
615
615
  };
616
616
  };
617
+ Belveth: {
618
+ version: string;
619
+ id: string;
620
+ key: string;
621
+ name: string;
622
+ title: string;
623
+ blurb: string;
624
+ info: {
625
+ attack: number;
626
+ defense: number;
627
+ magic: number;
628
+ difficulty: number;
629
+ };
630
+ image: {
631
+ full: string;
632
+ sprite: string;
633
+ group: string;
634
+ x: number;
635
+ y: number;
636
+ w: number;
637
+ h: number;
638
+ };
639
+ tags: string[];
640
+ partype: string;
641
+ stats: {
642
+ hp: number;
643
+ hpperlevel: number;
644
+ mp: number;
645
+ mpperlevel: number;
646
+ movespeed: number;
647
+ armor: number;
648
+ armorperlevel: number;
649
+ spellblock: number;
650
+ spellblockperlevel: number;
651
+ attackrange: number;
652
+ hpregen: number;
653
+ hpregenperlevel: number;
654
+ mpregen: number;
655
+ mpregenperlevel: number;
656
+ crit: number;
657
+ critperlevel: number;
658
+ attackdamage: number;
659
+ attackdamageperlevel: number;
660
+ attackspeedperlevel: number;
661
+ attackspeed: number;
662
+ };
663
+ };
617
664
  Blitzcrank: {
618
665
  version: string;
619
666
  id: string;
@@ -22821,6 +22868,53 @@ export declare const championByKey: {
22821
22868
  attackspeed: number;
22822
22869
  };
22823
22870
  };
22871
+ "200": {
22872
+ version: string;
22873
+ id: string;
22874
+ key: string;
22875
+ name: string;
22876
+ title: string;
22877
+ blurb: string;
22878
+ info: {
22879
+ attack: number;
22880
+ defense: number;
22881
+ magic: number;
22882
+ difficulty: number;
22883
+ };
22884
+ image: {
22885
+ full: string;
22886
+ sprite: string;
22887
+ group: string;
22888
+ x: number;
22889
+ y: number;
22890
+ w: number;
22891
+ h: number;
22892
+ };
22893
+ tags: string[];
22894
+ partype: string;
22895
+ stats: {
22896
+ hp: number;
22897
+ hpperlevel: number;
22898
+ mp: number;
22899
+ mpperlevel: number;
22900
+ movespeed: number;
22901
+ armor: number;
22902
+ armorperlevel: number;
22903
+ spellblock: number;
22904
+ spellblockperlevel: number;
22905
+ attackrange: number;
22906
+ hpregen: number;
22907
+ hpregenperlevel: number;
22908
+ mpregen: number;
22909
+ mpregenperlevel: number;
22910
+ crit: number;
22911
+ critperlevel: number;
22912
+ attackdamage: number;
22913
+ attackdamageperlevel: number;
22914
+ attackspeedperlevel: number;
22915
+ attackspeed: number;
22916
+ };
22917
+ };
22824
22918
  "201": {
22825
22919
  version: string;
22826
22920
  id: string;
@@ -25270,6 +25364,53 @@ export declare const championByName: {
25270
25364
  attackspeed: number;
25271
25365
  };
25272
25366
  };
25367
+ "Bel'Veth": {
25368
+ version: string;
25369
+ id: string;
25370
+ key: string;
25371
+ name: string;
25372
+ title: string;
25373
+ blurb: string;
25374
+ info: {
25375
+ attack: number;
25376
+ defense: number;
25377
+ magic: number;
25378
+ difficulty: number;
25379
+ };
25380
+ image: {
25381
+ full: string;
25382
+ sprite: string;
25383
+ group: string;
25384
+ x: number;
25385
+ y: number;
25386
+ w: number;
25387
+ h: number;
25388
+ };
25389
+ tags: string[];
25390
+ partype: string;
25391
+ stats: {
25392
+ hp: number;
25393
+ hpperlevel: number;
25394
+ mp: number;
25395
+ mpperlevel: number;
25396
+ movespeed: number;
25397
+ armor: number;
25398
+ armorperlevel: number;
25399
+ spellblock: number;
25400
+ spellblockperlevel: number;
25401
+ attackrange: number;
25402
+ hpregen: number;
25403
+ hpregenperlevel: number;
25404
+ mpregen: number;
25405
+ mpregenperlevel: number;
25406
+ crit: number;
25407
+ critperlevel: number;
25408
+ attackdamage: number;
25409
+ attackdamageperlevel: number;
25410
+ attackspeedperlevel: number;
25411
+ attackspeed: number;
25412
+ };
25413
+ };
25273
25414
  Blitzcrank: {
25274
25415
  version: string;
25275
25416
  id: string;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const generateChampionsByKey_1 = require("../Helpers/generateChampionsByKey");
4
4
  const generateChampionsByName_1 = require("../Helpers/generateChampionsByName");
5
+ const generateItemsByName_1 = require("../Helpers/generateItemsByName");
5
6
  const generateJSONs = () => {
6
7
  (0, generateChampionsByKey_1.generateChampionsByKey)();
7
8
  (0, generateChampionsByName_1.generateChampionsByName)();
9
+ (0, generateItemsByName_1.generateItemsByName)();
8
10
  };
9
11
  generateJSONs();
@@ -4,7 +4,7 @@ export declare type TLeaguesRank = 'I' | 'II' | 'III' | 'IV';
4
4
  export declare type TGameType = 'CUSTOM_GAME' | 'TUTORIAL_GAME' | 'MATCHED_GAME';
5
5
  export declare type TGameMode = 'CLASSIC' | 'ARAM' | 'TUTORIAL' | 'URF' | 'ONEFORALL' | 'KINGPORO' | 'GAMEMODEX' | 'ULTBOOK';
6
6
  export declare type PlatformId = 'BR1' | 'EUN1' | 'EUW1' | 'JP1' | 'KR' | 'LA1' | 'LA2' | 'NA1' | 'OC1' | 'TR1' | 'RU';
7
- export declare type Region = 'EUW';
7
+ export declare type Region = 'EUW' | 'EUNE' | 'NA' | 'KR' | 'JP' | 'OCE' | 'LAN' | 'LAS' | 'TR' | 'RU' | 'BR';
8
8
  export declare type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
9
9
  export declare type MapId = 11 | 12 | 21 | 22;
10
10
  export declare type TeamId = 100 | 200;
@@ -1,7 +1,11 @@
1
1
  import championByKey from '../generated/championByKey.json';
2
2
  import championByName from '../generated/championByName.json';
3
- export declare type ChampionName = keyof typeof championByName.data;
3
+ import item from '../assets/item.json';
4
+ import itemByName from '../generated/itemByKey.json';
4
5
  export declare type ChampionKey = keyof typeof championByKey.data;
6
+ export declare type ChampionName = keyof typeof championByName.data;
7
+ export declare type ItemKey = keyof typeof item.data;
8
+ export declare type ItemName = keyof typeof itemByName.data;
5
9
  export declare type XP = number;
6
10
  export declare type Minute = number;
7
11
  export declare type TPosition = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "0.2.1",
3
+ "version": "0.5.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,11 +9,11 @@
9
9
  "/dist"
10
10
  ],
11
11
  "scripts": {
12
- "build": "rmdir /s /q dist && tsc",
13
- "publish-new-major": "npm run build && npm version major && npm publish",
14
- "publish-new-minor": "npm run build && npm version minor && npm publish",
15
- "publish-new-patch": "npm run build && npm version patch && npm publish",
16
- "generate": "node dist/scripts/generate-all"
12
+ "clean-build": "rmdir /s /q dist && tsc",
13
+ "publish-new-major": "tsc && npm version major && npm publish",
14
+ "publish-new-minor": "tsc && npm version minor && npm publish",
15
+ "publish-new-patch": "tsc && npm version patch && npm publish",
16
+ "generate": "node dist/scripts/generate-all && tsc"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^17.0.42"