clashofclans.js 2.1.0-dev.b57d4de → 2.2.0-dev.f3f02b3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## 2.3.0 (2021-12-17)
6
+
7
+ ### Features
8
+
9
+ - BigInt literals issue fixed. ([#84](https://github.com/clashperk/clashofclans.js/pull/84))
10
+ - Some Utility methods renamed. ([#84](https://github.com/clashperk/clashofclans.js/pull/84))
11
+ - `Util.encodeTag()` to `Util.encodeURI()`
12
+ - `Util.encodeTagToId()` to `Util.encodeTag()`
13
+ - `Util.decodeIdToTag()` to `Util.decodeTag()`
14
+ - Added `dps`, `resourceType`, `trainingTime` and `regenerationTime` to the `Unit` class. ([#85](https://github.com/clashperk/clashofclans.js/pull/85))
15
+
16
+ ## 2.2.0 (2021-12-16)
17
+
18
+ ### Bug Fixes
19
+
20
+ - Show units as per in-game orders. ([#82](https://github.com/clashperk/clashofclans.js/pull/82)) ([6e23d2f](https://github.com/clashperk/clashofclans.js/commit/95cf3001059fd3ede9262e249814178631660d5b))
21
+ - Season end time utility method. ([#82](https://github.com/clashperk/clashofclans.js/pull/82)) ([6e23d2f](https://github.com/clashperk/clashofclans.js/commit/95cf3001059fd3ede9262e249814178631660d5b))
22
+ - Updated raw files for new Troops. ([#82](https://github.com/clashperk/clashofclans.js/pull/82)) ([6e23d2f](https://github.com/clashperk/clashofclans.js/commit/95cf3001059fd3ede9262e249814178631660d5b))
23
+
24
+ ### Features
25
+
26
+ - Added `seasonal`, `boostable` and `isLoaded` property to `Unit` class. ([#82](https://github.com/clashperk/clashofclans.js/pull/82)) ([6e23d2f](https://github.com/clashperk/clashofclans.js/commit/95cf3001059fd3ede9262e249814178631660d5b))
27
+
5
28
  ## 2.1.0 (2021-12-06)
6
29
 
7
30
  ### Bug Fixes
@@ -11,13 +34,14 @@ All notable changes to this project will be documented in this file. See [standa
11
34
  ### Features
12
35
 
13
36
  - More utility methods added to `Util` class. ([#76](https://github.com/clashperk/clashofclans.js/pull/76)) ([ff41115](https://github.com/clashperk/clashofclans.js/commit/ff4111530d6293ef1fc54aa916436130fc30a09c))
14
- - `Util.formatTag(tag: string): string`
15
- - `Util.formatDate(date: string): Date`
16
- - `Util.isValidTag(tag: string): boolean`
17
- - `Util.encodeTagToId(tag: string): string`
18
- - `Util.decodeIdToTag(id: string): string`
19
-
20
- - Support of async/await for custom events ([#79](https://github.com/clashperk/clashofclans.js/pull/79)) ([ff41115](https://github.com/clashperk/clashofclans.js/commit/a23db3786bcca44b8547c70f27773bdb1216f990))
37
+
38
+ - `Util.formatTag(tag: string): string`
39
+ - `Util.formatDate(date: string): Date`
40
+ - `Util.isValidTag(tag: string): boolean`
41
+ - `Util.encodeTagToId(tag: string): string` (Removed on 2.3.0)
42
+ - `Util.decodeIdToTag(id: string): string` (Removed on 2.3.0)
43
+
44
+ - Support of async/await for custom events ([#79](https://github.com/clashperk/clashofclans.js/pull/79)) ([ff41115](https://github.com/clashperk/clashofclans.js/commit/a23db3786bcca44b8547c70f27773bdb1216f990))
21
45
 
22
46
  ## 2.0.2 (2021-11-30)
23
47
 
package/dist/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './rest/Throttler';
7
7
  export * from './util/Util';
8
8
  export * from './struct';
9
9
  export * from './types';
10
+ export * from './util/Constants';
package/dist/index.js CHANGED
@@ -19,3 +19,4 @@ __exportStar(require("./rest/Throttler"), exports);
19
19
  __exportStar(require("./util/Util"), exports);
20
20
  __exportStar(require("./struct"), exports);
21
21
  __exportStar(require("./types"), exports);
22
+ __exportStar(require("./util/Constants"), exports);
@@ -14,38 +14,38 @@ class RESTManager {
14
14
  }
15
15
  /** Get info about a clan. */
16
16
  getClan(clanTag, options) {
17
- return this.handler.request(`/clans/${Util_1.Util.encodeTag(clanTag)}`, options);
17
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}`, options);
18
18
  }
19
19
  /** Get list of clan members. */
20
20
  getClanMembers(clanTag, options) {
21
21
  const query = Util_1.Util.queryString(options);
22
- return this.handler.request(`/clans/${Util_1.Util.encodeTag(clanTag)}/members?${query}`, options);
22
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/members?${query}`, options);
23
23
  }
24
24
  /** Get clan war log. */
25
25
  getClanWarLog(clanTag, options) {
26
26
  const query = Util_1.Util.queryString(options);
27
- return this.handler.request(`/clans/${Util_1.Util.encodeTag(clanTag)}/warlog?${query}`, options);
27
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/warlog?${query}`, options);
28
28
  }
29
29
  /** Get info about currently running war in the clan. */
30
30
  getCurrentWar(clanTag, options) {
31
- return this.handler.request(`/clans/${Util_1.Util.encodeTag(clanTag)}/currentwar`, options);
31
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/currentwar`, options);
32
32
  }
33
33
  /** Get info about clan war league. */
34
34
  getClanWarLeagueGroup(clanTag, options) {
35
- return this.handler.request(`/clans/${Util_1.Util.encodeTag(clanTag)}/currentwar/leaguegroup`, options);
35
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/currentwar/leaguegroup`, options);
36
36
  }
37
37
  /** Get info about a CWL round by WarTag. */
38
38
  getClanWarLeagueRound(warTag, options) {
39
- return this.handler.request(`/clanwarleagues/wars/${Util_1.Util.encodeTag(warTag)}`, options);
39
+ return this.handler.request(`/clanwarleagues/wars/${Util_1.Util.encodeURI(warTag)}`, options);
40
40
  }
41
41
  /** Get info about a player by tag. */
42
42
  getPlayer(playerTag, options) {
43
- return this.handler.request(`/players/${Util_1.Util.encodeTag(playerTag)}`, options);
43
+ return this.handler.request(`/players/${Util_1.Util.encodeURI(playerTag)}`, options);
44
44
  }
45
45
  /** Verify Player API token that can be found from the Game settings. */
46
46
  verifyPlayerToken(playerTag, token, options) {
47
47
  const opts = { method: 'POST', body: JSON.stringify({ token }), ...options };
48
- return this.handler.request(`/players/${Util_1.Util.encodeTag(playerTag)}/verifytoken`, opts);
48
+ return this.handler.request(`/players/${Util_1.Util.encodeURI(playerTag)}/verifytoken`, opts);
49
49
  }
50
50
  /** Get list of Leagues. */
51
51
  getLeagues(options) {
@@ -56,11 +56,11 @@ export declare class Player {
56
56
  achievements: Achievement[];
57
57
  /** An array of player's labels. */
58
58
  labels: Label[];
59
- /** An array of player's troops. */
59
+ /** An array of player's troops (including pets and seige machines). */
60
60
  troops: Troop[];
61
61
  /** An array of player's spells. */
62
62
  spells: Spell[];
63
- /** An array of player's heroes. */
63
+ /** An array of player's heroes (both home base and build base). */
64
64
  heroes: Hero[];
65
65
  constructor(client: Client, data: APIPlayer);
66
66
  /** Fetch detailed clan info for the player's clan. */
@@ -2,14 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Player = void 0;
4
4
  const Constants_1 = require("../util/Constants");
5
- const raw_json_1 = require("../util/raw.json");
6
5
  const LegendStatistics_1 = require("./LegendStatistics");
7
6
  const Achievement_1 = require("./Achievement");
8
7
  const Unit_1 = require("./Unit");
9
8
  const PlayerClan_1 = require("./PlayerClan");
10
9
  const League_1 = require("./League");
11
10
  const Label_1 = require("./Label");
12
- const UNIT_NAMES = [...raw_json_1.RAW_UNITS.map((unit) => unit.name), ...raw_json_1.RAW_SUPER_UNITS.map((unit) => unit.name)];
13
11
  /** Represents a Clash of Clans Player. */
14
12
  class Player {
15
13
  constructor(client, data) {
@@ -38,9 +36,9 @@ class Player {
38
36
  this.legendStatistics = data.legendStatistics ? new LegendStatistics_1.LegendStatistics(data.legendStatistics) : null;
39
37
  this.achievements = data.achievements.map((data) => new Achievement_1.Achievement(data));
40
38
  this.labels = data.labels.map((data) => new Label_1.Label(data));
41
- this.troops = data.troops.filter((unit) => UNIT_NAMES.includes(unit.name)).map((unit) => new Unit_1.Troop(data, unit));
42
- this.spells = data.spells.filter((unit) => UNIT_NAMES.includes(unit.name)).map((unit) => new Unit_1.Spell(data, unit));
43
- this.heroes = data.heroes.filter((unit) => UNIT_NAMES.includes(unit.name)).map((unit) => new Unit_1.Hero(data, unit));
39
+ this.troops = data.troops.map((unit) => new Unit_1.Troop(data, unit));
40
+ this.spells = data.spells.map((unit) => new Unit_1.Spell(data, unit));
41
+ this.heroes = data.heroes.map((unit) => new Unit_1.Hero(data, unit));
44
42
  }
45
43
  /** Fetch detailed clan info for the player's clan. */
46
44
  async fetchClan(options) {
@@ -50,23 +48,33 @@ class Player {
50
48
  }
51
49
  /** An array of the player's home base troops. */
52
50
  get homeTroops() {
53
- return this.troops.filter((entry) => entry.isHomeBase);
51
+ return this.troops
52
+ .filter((entry) => Constants_1.HOME_TROOPS.includes(entry.name))
53
+ .sort((a, b) => Constants_1.HOME_TROOPS.indexOf(a.name) - Constants_1.HOME_TROOPS.indexOf(b.name));
54
54
  }
55
55
  /** An array of the player's builder base troops. */
56
56
  get builderTroops() {
57
- return this.troops.filter((entry) => entry.isBuilderBase);
57
+ return this.troops
58
+ .filter((entry) => Constants_1.BUILDER_TROOPS.includes(entry.name))
59
+ .sort((a, b) => Constants_1.BUILDER_TROOPS.indexOf(a.name) - Constants_1.BUILDER_TROOPS.indexOf(b.name));
58
60
  }
59
61
  /** An array of the player's super troops. */
60
62
  get superTroops() {
61
- return this.troops.filter((entry) => entry.isSuperTroop);
63
+ return this.troops
64
+ .filter((entry) => Constants_1.SUPER_TROOPS.includes(entry.name))
65
+ .sort((a, b) => Constants_1.SUPER_TROOPS.indexOf(a.name) - Constants_1.SUPER_TROOPS.indexOf(b.name));
62
66
  }
63
67
  /** An array of the player's hero pets. */
64
68
  get heroPets() {
65
- return this.troops.filter((entry) => entry.isHomeBase && Constants_1.HERO_PETS.includes(entry.name));
69
+ return this.troops
70
+ .filter((entry) => Constants_1.HERO_PETS.includes(entry.name))
71
+ .sort((a, b) => Constants_1.HERO_PETS.indexOf(a.name) - Constants_1.HERO_PETS.indexOf(b.name));
66
72
  }
67
73
  /** An array of the player's siege machines. */
68
74
  get siegeMachines() {
69
- return this.troops.filter((entry) => entry.isHomeBase && Constants_1.SIEGE_MACHINES.includes(entry.name));
75
+ return this.troops
76
+ .filter((entry) => Constants_1.SIEGE_MACHINES.includes(entry.name))
77
+ .sort((a, b) => Constants_1.SIEGE_MACHINES.indexOf(a.name) - Constants_1.SIEGE_MACHINES.indexOf(b.name));
70
78
  }
71
79
  }
72
80
  exports.Player = Player;
@@ -1,5 +1,5 @@
1
1
  import { APIPlayerItem, APIPlayer } from '../types';
2
- /** Represents a player's unit. */
2
+ /** Represents a Player's Unit. */
3
3
  export declare class Unit {
4
4
  /** The name of this unit. */
5
5
  name: string;
@@ -9,6 +9,8 @@ export declare class Unit {
9
9
  maxLevel: number;
10
10
  /** The village type of this unit. */
11
11
  village: 'home' | 'builderBase';
12
+ /** Whether the Game data has been loaded for this unit. */
13
+ isLoaded: boolean;
12
14
  /** Id of this unit. */
13
15
  id: number;
14
16
  /** Housing space of this unit. */
@@ -33,6 +35,18 @@ export declare class Unit {
33
35
  upgradeResource: string;
34
36
  /** Upgrade time of this unit. */
35
37
  upgradeTime: number;
38
+ /** Whether the unit is seasonal. */
39
+ seasonal: boolean;
40
+ /** Damage per second of this unit. */
41
+ dps: number;
42
+ /** Resource type of this unit. */
43
+ resourceType: string;
44
+ /** Training time of this unit. */
45
+ trainingTime: number;
46
+ /** @internal */
47
+ regenerationTime: number | null;
48
+ /** @internal */
49
+ boostable: boolean | null;
36
50
  /** @internal */
37
51
  minOriginalLevel: number | null;
38
52
  /** @internal */
@@ -47,7 +61,7 @@ export declare class Unit {
47
61
  /** Icon of this unit. */
48
62
  get iconURL(): string;
49
63
  }
50
- /** Represents a player's troop. */
64
+ /** Represents a Player's Troop. */
51
65
  export declare class Troop extends Unit {
52
66
  name: string;
53
67
  /** Whether this troop is currently active of boosted. */
@@ -56,13 +70,17 @@ export declare class Troop extends Unit {
56
70
  minOriginalLevel: number | null;
57
71
  /** Origin troop's name of this super troop. */
58
72
  originalName: string | null;
73
+ /** Whether the player can boost this super troop. */
74
+ boostable: boolean | null;
59
75
  constructor(data: APIPlayer, unit: APIPlayerItem);
60
76
  /** Whether this troop is a Super Troop. */
61
77
  get isSuperTroop(): boolean;
62
78
  }
63
- /** Represents a player's spell. */
79
+ /** Represents a Player's Spell. */
64
80
  export declare class Spell extends Unit {
65
81
  }
66
- /** Represents a player's hero. */
82
+ /** Represents a Player's Hero. */
67
83
  export declare class Hero extends Unit {
84
+ /** Regeneration time of this hero. */
85
+ regenerationTime: number;
68
86
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Hero = exports.Spell = exports.Troop = exports.Unit = void 0;
4
4
  const raw_json_1 = require("../util/raw.json");
5
5
  const Constants_1 = require("../util/Constants");
6
- /** Represents a player's unit. */
6
+ /** Represents a Player's Unit. */
7
7
  class Unit {
8
8
  // #endregion static
9
9
  constructor(data, unit) {
@@ -25,15 +25,19 @@ class Unit {
25
25
  this.unlockResource = original.unlock.resource;
26
26
  this.unlockBuilding = original.unlock.building;
27
27
  this.unlockBuildingLevel = original.unlock.buildingLevel;
28
+ this.dps = rawUnit.dps[this.level - 1];
29
+ this.resourceType = rawSuperUnit.resource;
30
+ this.trainingTime = rawUnit.trainingTime;
28
31
  const origin = data.troops.find((troop) => troop.village === 'home' && troop.name === original.name);
29
32
  this.level = origin.level;
30
33
  this.maxLevel = origin.maxLevel;
34
+ this.boostable = data.townHallLevel >= 11 && origin.level >= rawSuperUnit.minOriginalLevel;
31
35
  this.upgradeCost = original.upgrade.cost[origin.level - 1] ?? 0;
32
36
  this.upgradeResource = original.upgrade.resource;
33
37
  this.upgradeTime = original.upgrade.time[origin.level - 1] ?? 0;
34
38
  this.hallMaxLevel = original.levels[data.townHallLevel - 1];
35
39
  }
36
- if (rawUnit) {
40
+ else if (rawUnit) {
37
41
  this.id = rawUnit.id;
38
42
  this.housingSpace = rawUnit.housingSpace;
39
43
  this.unlockCost = rawUnit.unlock.cost;
@@ -45,8 +49,15 @@ class Unit {
45
49
  this.upgradeResource = rawUnit.upgrade.resource;
46
50
  this.upgradeCost = rawUnit.upgrade.cost[this.level - 1] ?? 0;
47
51
  this.upgradeTime = rawUnit.upgrade.time[this.level - 1] ?? 0;
52
+ this.dps = rawUnit.dps[this.level - 1];
53
+ this.resourceType = rawUnit.resourceType;
54
+ this.trainingTime = rawUnit.trainingTime;
55
+ if (rawUnit.category === 'hero')
56
+ this.regenerationTime = rawUnit.regenerationTimes[this.level - 1];
48
57
  this.hallMaxLevel = rawUnit.levels[(this.village === 'home' ? data.townHallLevel : data.builderHallLevel) - 1];
49
58
  }
59
+ this.seasonal = Boolean(rawUnit?.seasonal);
60
+ this.isLoaded = Boolean(rawUnit ?? rawSuperUnit);
50
61
  }
51
62
  /** Whether the unit belongs to the home base. */
52
63
  get isHomeBase() {
@@ -62,17 +73,18 @@ class Unit {
62
73
  }
63
74
  /** Icon of this unit. */
64
75
  get iconURL() {
65
- return `https://supercell.vercel.app/assets/troops/icons/${this.name.replace(/ /gi, '_')}.png`;
76
+ return `https://clashofclans.js.org/assets/${this.name.replace(/ /gi, '_')}.png`;
66
77
  }
67
78
  }
68
79
  exports.Unit = Unit;
69
- /** Represents a player's troop. */
80
+ /** Represents a Player's Troop. */
70
81
  class Troop extends Unit {
71
82
  constructor(data, unit) {
72
83
  super(data, unit);
73
84
  this.originalName = this.originalName ?? null;
74
85
  this.isActive = unit.superTroopIsActive ?? false;
75
86
  this.minOriginalLevel = this.minOriginalLevel ?? null;
87
+ this.boostable = this.boostable ?? null;
76
88
  }
77
89
  /** Whether this troop is a Super Troop. */
78
90
  get isSuperTroop() {
@@ -80,11 +92,11 @@ class Troop extends Unit {
80
92
  }
81
93
  }
82
94
  exports.Troop = Troop;
83
- /** Represents a player's spell. */
95
+ /** Represents a Player's Spell. */
84
96
  class Spell extends Unit {
85
97
  }
86
98
  exports.Spell = Spell;
87
- /** Represents a player's hero. */
99
+ /** Represents a Player's Hero. */
88
100
  class Hero extends Unit {
89
101
  }
90
102
  exports.Hero = Hero;
@@ -8,6 +8,7 @@ export declare const SUPER_TROOPS: string[];
8
8
  export declare const ELIXIR_SPELLS: string[];
9
9
  export declare const DARK_ELIXIR_SPELLS: string[];
10
10
  export declare const SPELLS: string[];
11
+ export declare const BUILDER_TROOPS: string[];
11
12
  export declare const HEROES: string[];
12
13
  export declare const HERO_PETS: string[];
13
14
  export declare const UNRANKED_LEAGUE_DATA: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CWL_ROUNDS = exports.EVENTS = exports.FRIENDLY_WAR_PREPARATION_TIMES = exports.WAR_LEAGUES = exports.LEAGUES = exports.LEGEND_LEAGUE_ID = exports.UNRANKED_LEAGUE_DATA = exports.HERO_PETS = exports.HEROES = exports.SPELLS = exports.DARK_ELIXIR_SPELLS = exports.ELIXIR_SPELLS = exports.SUPER_TROOPS = exports.SIEGE_MACHINES = exports.HOME_TROOPS = exports.DARK_ELIXIR_TROOPS = exports.ELIXIR_TROOPS = exports.DEV_SITE_API_BASE_URL = exports.API_BASE_URL = void 0;
3
+ exports.CWL_ROUNDS = exports.EVENTS = exports.FRIENDLY_WAR_PREPARATION_TIMES = exports.WAR_LEAGUES = exports.LEAGUES = exports.LEGEND_LEAGUE_ID = exports.UNRANKED_LEAGUE_DATA = exports.HERO_PETS = exports.HEROES = exports.BUILDER_TROOPS = exports.SPELLS = exports.DARK_ELIXIR_SPELLS = exports.ELIXIR_SPELLS = exports.SUPER_TROOPS = exports.SIEGE_MACHINES = exports.HOME_TROOPS = exports.DARK_ELIXIR_TROOPS = exports.ELIXIR_TROOPS = exports.DEV_SITE_API_BASE_URL = exports.API_BASE_URL = void 0;
4
4
  exports.API_BASE_URL = 'https://api.clashofclans.com/v1';
5
5
  exports.DEV_SITE_API_BASE_URL = 'https://developer.clashofclans.com/api';
6
6
  exports.ELIXIR_TROOPS = [
@@ -22,7 +22,7 @@ exports.ELIXIR_TROOPS = [
22
22
  ];
23
23
  exports.DARK_ELIXIR_TROOPS = ['Minion', 'Hog Rider', 'Valkyrie', 'Golem', 'Witch', 'Lava Hound', 'Bowler', 'Ice Golem', 'Headhunter'];
24
24
  exports.HOME_TROOPS = [...exports.ELIXIR_TROOPS, ...exports.DARK_ELIXIR_TROOPS];
25
- exports.SIEGE_MACHINES = ['Wall Wrecker', 'Battle Blimp', 'Stone Slammer', 'Siege Barracks', 'Log Launcher'];
25
+ exports.SIEGE_MACHINES = ['Wall Wrecker', 'Battle Blimp', 'Stone Slammer', 'Siege Barracks', 'Log Launcher', 'Flame Flinger'];
26
26
  exports.SUPER_TROOPS = [
27
27
  'Super Barbarian',
28
28
  'Super Archer',
@@ -31,6 +31,7 @@ exports.SUPER_TROOPS = [
31
31
  'Super Wall Breaker',
32
32
  'Rocket Balloon',
33
33
  'Super Wizard',
34
+ 'Super Dragon',
34
35
  'Inferno Dragon',
35
36
  'Super Minion',
36
37
  'Super Valkyrie',
@@ -49,6 +50,19 @@ exports.ELIXIR_SPELLS = [
49
50
  ];
50
51
  exports.DARK_ELIXIR_SPELLS = ['Poison Spell', 'Earthquake Spell', 'Haste Spell', 'Skeleton Spell', 'Bat Spell'];
51
52
  exports.SPELLS = [...exports.ELIXIR_SPELLS, ...exports.DARK_ELIXIR_SPELLS];
53
+ exports.BUILDER_TROOPS = [
54
+ 'Raged Barbarian',
55
+ 'Sneaky Archer',
56
+ 'Boxer Giant',
57
+ 'Beta Minion',
58
+ 'Bomber',
59
+ 'Baby Dragon',
60
+ 'Cannon Cart',
61
+ 'Night Witch',
62
+ 'Drop Ship',
63
+ 'Super P.E.K.K.A',
64
+ 'Hog Glider'
65
+ ];
52
66
  exports.HEROES = ['Barbarian King', 'Archer Queen', 'Grand Warden', 'Royal Champion', 'Battle Machine'];
53
67
  exports.HERO_PETS = ['L.A.S.S.I', 'Electro Owl', 'Mighty Yak', 'Unicorn'];
54
68
  exports.UNRANKED_LEAGUE_DATA = {
@@ -10,22 +10,23 @@ export declare class Util extends null {
10
10
  /** @internal */
11
11
  static parseTag(tag: string): string;
12
12
  /** Encodes a tag as a valid component of a URI. */
13
- static encodeTag(tag: string): string;
13
+ static encodeURI(tag: string): string;
14
+ /** Verify a tag using RegExp. (`/^#?[0289PYLQGRJCUV]$/`) */
14
15
  static isValidTag(tag: string): boolean;
15
16
  /**
16
17
  * Encode tag string into 64bit unsigned integer string.
17
18
  * ```ts
18
- * Util.encodeTagToId('#PCCVQQG0'); // '510915076'
19
+ * Util.encodeTag('#PCCVQQG0'); // '510915076'
19
20
  * ```
20
21
  */
21
- static encodeTagToId(tag: string): string;
22
+ static encodeTag(tag: string): string;
22
23
  /**
23
24
  * Decode 64bit unsigned integer string into tag string with hash.
24
25
  * ```ts
25
- * Util.decodeTagToId('510915076'); // '#PCCVQQG0'
26
+ * Util.decodeTag('510915076'); // '#PCCVQQG0'
26
27
  * ```
27
28
  */
28
- static decodeIdToTag(id: string): string;
29
+ static decodeTag(id: string): string;
29
30
  /** Converts API Date to JavaScript Date. */
30
31
  static formatDate(date: string): Date;
31
32
  /** Returns a string containing a query string suitable for use in a URL. */
@@ -33,8 +34,8 @@ export declare class Util extends null {
33
34
  private static getSeasonEnd;
34
35
  /** Get current trophy season Id. */
35
36
  static getSeasonId(): string;
36
- /** Get current trophy season end date. */
37
- static getSeasonEndTime(date?: Date): Date;
37
+ /** Get trophy season end timestamp. */
38
+ static getSeasonEndTime(timestamp?: Date): Date;
38
39
  static allSettled<T>(values: Promise<T>[]): Promise<T[]>;
39
40
  static delay(ms: number): Promise<unknown>;
40
41
  }
package/dist/util/Util.js CHANGED
@@ -18,38 +18,39 @@ class Util extends null {
18
18
  return `#${tag.toUpperCase().replace(/O/g, '0').replace(/^#/g, '').replace(/\s/g, '')}`;
19
19
  }
20
20
  /** Encodes a tag as a valid component of a URI. */
21
- static encodeTag(tag) {
21
+ static encodeURI(tag) {
22
22
  return encodeURIComponent(this.formatTag(tag));
23
23
  }
24
+ /** Verify a tag using RegExp. (`/^#?[0289PYLQGRJCUV]$/`) */
24
25
  static isValidTag(tag) {
25
26
  return /^#?[0289PYLQGRJCUV]{3,}$/.test(tag);
26
27
  }
27
28
  /**
28
29
  * Encode tag string into 64bit unsigned integer string.
29
30
  * ```ts
30
- * Util.encodeTagToId('#PCCVQQG0'); // '510915076'
31
+ * Util.encodeTag('#PCCVQQG0'); // '510915076'
31
32
  * ```
32
33
  */
33
- static encodeTagToId(tag) {
34
+ static encodeTag(tag) {
34
35
  const formatted = this.formatTag(tag).substring(1);
35
36
  if (!this.isValidTag(formatted)) {
36
37
  throw new Error(`Failed to encode tag ${formatted}. RegExp matching failed.`);
37
38
  }
38
- const result = formatted.split('').reduce((sum, char) => sum * 14n + BigInt(TAG_CHARACTERS.indexOf(char)), 0n);
39
+ const result = formatted.split('').reduce((sum, char) => sum * BigInt(14) + BigInt(TAG_CHARACTERS.indexOf(char)), BigInt(0));
39
40
  return result.toString();
40
41
  }
41
42
  /**
42
43
  * Decode 64bit unsigned integer string into tag string with hash.
43
44
  * ```ts
44
- * Util.decodeTagToId('510915076'); // '#PCCVQQG0'
45
+ * Util.decodeTag('510915076'); // '#PCCVQQG0'
45
46
  * ```
46
47
  */
47
- static decodeIdToTag(id) {
48
+ static decodeTag(id) {
48
49
  let [bigint, tag] = [BigInt(id), ''];
49
- while (bigint !== 0n) {
50
- const index = Number(bigint % 14n);
50
+ while (bigint !== BigInt(0)) {
51
+ const index = Number(bigint % BigInt(14));
51
52
  tag = TAG_CHARACTERS[index] + tag;
52
- bigint /= 14n;
53
+ bigint /= BigInt(14);
53
54
  }
54
55
  return `#${tag}`;
55
56
  }
@@ -66,14 +67,15 @@ class Util extends null {
66
67
  query.delete(key);
67
68
  return query.toString();
68
69
  }
69
- static getSeasonEnd(month, autoFix = true) {
70
+ static getSeasonEnd(month, year, autoFix = true) {
70
71
  const now = new Date();
72
+ now.setUTCFullYear(year);
71
73
  now.setUTCMonth(month, 0);
72
74
  now.setUTCHours(5, 0, 0, 0);
73
75
  const newDate = now.getUTCDay() === 0 ? now.getUTCDate() - 6 : now.getUTCDate() - (now.getUTCDay() - 1);
74
76
  now.setUTCDate(newDate);
75
77
  if (Date.now() >= now.getTime() && autoFix) {
76
- return this.getSeasonEnd(month + 1);
78
+ return this.getSeasonEnd(month + 1, year);
77
79
  }
78
80
  return now;
79
81
  }
@@ -81,9 +83,11 @@ class Util extends null {
81
83
  static getSeasonId() {
82
84
  return this.getSeasonEndTime().toISOString().substring(0, 7);
83
85
  }
84
- /** Get current trophy season end date. */
85
- static getSeasonEndTime(date = new Date()) {
86
- return this.getSeasonEnd(date.getUTCMonth() + 1);
86
+ /** Get trophy season end timestamp. */
87
+ static getSeasonEndTime(timestamp) {
88
+ const autoFix = !(timestamp instanceof Date);
89
+ const date = timestamp instanceof Date ? timestamp : new Date();
90
+ return this.getSeasonEnd(date.getUTCMonth() + 1, date.getUTCFullYear(), autoFix);
87
91
  }
88
92
  static async allSettled(values) {
89
93
  return (await Promise.allSettled(values))
@@ -1 +1 @@
1
- { "RAW_UNITS": [{ "id": 0, "name": "Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "upgrade": { "cost": [20000, 60000, 200000, 650000, 1400000, 2500000, 4000000, 8000000, 15000000], "time": [7200, 18000, 43200, 86400, 129600, 259200, 388800, 864000, 1209600], "resource": "Elixir" }, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 1, "name": "Archer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 500, "time": 60, "resource": "Elixir", "building": "Barracks", "buildingLevel": 2 }, "upgrade": { "cost": [30000, 80000, 300000, 800000, 2000000, 3000000, 4500000, 9000000, 15500000], "time": [10800, 21600, 43200, 86400, 129600, 259200, 432000, 907200, 1209600], "resource": "Elixir" }, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 2, "name": "Goblin", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 5000, "time": 3600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 4 }, "upgrade": { "cost": [45000, 175000, 500000, 1200000, 2000000, 3500000, 9000000], "time": [18000, 32400, 43200, 86400, 129600, 345600, 1036800], "resource": "Elixir" }, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 8, 8, 8] }, { "id": 3, "name": "Giant", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "upgrade": { "cost": [40000, 150000, 500000, 1200000, 2000000, 3500000, 5000000, 9000000, 13000000], "time": [14400, 28800, 43200, 86400, 172800, 345600, 691200, 1123200, 1296000], "resource": "Elixir" }, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 4, "name": "Wall Breaker", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 14400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "upgrade": { "cost": [100000, 250000, 600000, 1200000, 3000000, 6000000, 10500000, 13000000, 16000000], "time": [21600, 43200, 64800, 86400, 216000, 432000, 864000, 1252800, 1382400], "resource": "Elixir" }, "levels": [0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10] }, { "id": 5, "name": "Balloon", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "upgrade": { "cost": [125000, 400000, 800000, 1500000, 2750000, 6500000, 11000000, 14000000, 18000000], "time": [28800, 43200, 64800, 86400, 302400, 648000, 1166400, 1382400, 1555200], "resource": "Elixir" }, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10] }, { "id": 6, "name": "Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [120000, 320000, 620000, 1200000, 2200000, 4200000, 7200000, 9200000, 14200000], "time": [28800, 43200, 64800, 86400, 172800, 345600, 648000, 1080000, 1252800], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 7, "name": "Healer", "housingSpace": 14, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 600000, "time": 57600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 8 }, "upgrade": { "cost": [450000, 900000, 2700000, 6000000, 13000000, 17000000], "time": [43200, 86400, 172800, 864000, 1209600, 1468800], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 6, 7] }, { "id": 8, "name": "Dragon", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "upgrade": { "cost": [1000000, 2000000, 3000000, 4500000, 7000000, 10000000, 15000000, 18500000], "time": [64800, 129600, 259200, 518400, 691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9] }, { "id": 9, "name": "P.E.K.K.A", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1200000, "time": 129600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 10 }, "upgrade": { "cost": [1200000, 1800000, 2800000, 3800000, 5000000, 7500000, 11000000, 14000000], "time": [43200, 86400, 172800, 345600, 475200, 734400, 1209600, 1296000], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 4, 6, 7, 8, 9, 9] }, { "id": 10, "name": "Minion", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 100000, "time": 14400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "upgrade": { "cost": [3000, 7000, 15000, 25000, 40000, 90000, 150000, 250000, 300000], "time": [28800, 57600, 86400, 172800, 345600, 604800, 1209600, 1339200, 1425600], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9, 10] }, { "id": 11, "name": "Hog Rider", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 300000, "time": 43200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 2 }, "upgrade": { "cost": [5000, 9000, 16000, 30000, 50000, 100000, 150000, 240000, 280000, 320000], "time": [36000, 72000, 108000, 172800, 345600, 648000, 993600, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 9, 10, 11] }, { "id": 12, "name": "Valkyrie", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 500000, "time": 64800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "upgrade": { "cost": [8000, 12000, 25000, 45000, 90000, 175000, 260000, 310000], "time": [86400, 172800, 259200, 432000, 648000, 950400, 1382400, 1468800], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9] }, { "id": 13, "name": "Golem", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 4 }, "upgrade": { "cost": [10000, 20000, 30000, 50000, 75000, 110000, 160000, 200000, 270000, 320000], "time": [108000, 216000, 324000, 432000, 604800, 691200, 907200, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 7, 9, 10, 11] }, { "id": 15, "name": "Witch", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1500000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "upgrade": { "cost": [50000, 80000, 130000, 200000], "time": [345600, 475200, 820800, 1209600], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5] }, { "id": 17, "name": "Lava Hound", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 259200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "upgrade": { "cost": [35000, 60000, 120000, 190000, 270000], "time": [216000, 432000, 777600, 1209600, 1382400], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6] }, { "id": 22, "name": "Bowler", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3000000, "time": 432000, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [75000, 125000, 200000, 280000, 320000], "time": [345600, 604800, 1036800, 1252800, 1512000], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6] }, { "id": 23, "name": "Baby Dragon", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1800000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "upgrade": { "cost": [2000000, 3000000, 4000000, 6000000, 9000000, 12000000, 17000000], "time": [172800, 345600, 518400, 777600, 1036800, 1209600, 1425600], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8] }, { "id": 24, "name": "Miner", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 2500000, "time": 345600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 12 }, "upgrade": { "cost": [3000000, 4000000, 5000000, 7000000, 9500000, 13000000, 17500000], "time": [216000, 345600, 518400, 864000, 1123200, 1339200, 1468800], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8] }, { "id": 30, "name": "Ice Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 5000000, 7000000, 9000000, 11000000, 15000000], "time": [43200, 129600, 172800, 259200, 432000, 518400, 864000, 1209600, 1296000], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 31, "name": "Raged Barbarian", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 1000, "time": 0, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 1 }, "upgrade": { "cost": [3500, 6000, 9000, 50000, 100000, 300000, 330000, 700000, 900000, 1000000, 1200000, 2000000, 2200000, 3000000, 3200000, 3800000, 4000000], "time": [0, 300, 900, 10800, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [2, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 32, "name": "Sneaky Archer", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 4000, "time": 60, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 2 }, "upgrade": { "cost": [5000, 8000, 12000, 60000, 120000, 320000, 350000, 800000, 1000000, 1100000, 1300000, 2100000, 2300000, 3100000, 3300000, 3900000, 4100000], "time": [180, 600, 1800, 14400, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 33, "name": "Beta Minion", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 25000, "time": 1800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 4 }, "upgrade": { "cost": [50000, 80000, 120000, 250000, 280000, 320000, 360000, 900000, 1100000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [3600, 10800, 18000, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 34, "name": "Boxer Giant", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 3 }, "upgrade": { "cost": [20000, 40000, 60000, 300000, 320000, 340000, 380000, 1000000, 1200000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [1800, 3600, 7200, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 35, "name": "Bomber", "housingSpace": 4, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 100000, "time": 10800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 5 }, "upgrade": { "cost": [150000, 200000, 250000, 280000, 320000, 340000, 360000, 900000, 1000000, 1200000, 1400000, 2200000, 2400000, 3200000, 3400000, 3900000, 4100000], "time": [10800, 18000, 28800, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 36, "name": "Super P.E.K.K.A", "housingSpace": 25, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1500000, "time": 86400, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 10 }, "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4600000, 4800000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 16, 18] }, { "id": 37, "name": "Cannon Cart", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 300000, "time": 28800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [400000, 500000, 600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 10, 12, 14, 16, 18] }, { "id": 38, "name": "Drop Ship", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 1000000, "time": 43200, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 9 }, "upgrade": { "cost": [1100000, 1200000, 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 2000000, 2200000, 2400000, 2600000, 2800000, 3600000, 3800000, 4300000, 4500000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 14, 16, 18] }, { "id": 41, "name": "Baby Dragon", "housingSpace": 10, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 150000, "time": 21600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 6 }, "upgrade": { "cost": [200000, 240000, 280000, 320000, 360000, 380000, 400000, 1000000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [18000, 28800, 43200, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 42, "name": "Night Witch", "housingSpace": 12, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 500000, "time": 36000, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 8 }, "upgrade": { "cost": [600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1300000, 1400000, 1600000, 1800000, 2500000, 2700000, 3500000, 3700000, 4200000, 4400000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 0, 12, 14, 16, 18] }, { "id": 45, "name": "Battle Ram", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "upgrade": { "cost": [100000], "time": [86400], "resource": "Elixir" }, "levels": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 47, "name": "Royal Ghost", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [5000], "time": [86400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6, 7, 7, 7] }, { "id": 48, "name": "Pumpkin Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "upgrade": { "cost": [50000, 150000, 500000, 1500000, 4500000, 6000000], "time": [21600, 86400, 259200, 432000, 864000, 1209600], "resource": "Elixir" }, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 7, 7, 7] }, { "id": 50, "name": "Giant Skeleton", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "upgrade": { "cost": [100000, 250000, 750000, 2250000, 5000000, 6000000, 9500000], "time": [86400, 172800, 259200, 432000, 864000, 1036800, 1209600], "resource": "Elixir" }, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8] }, { "id": 51, "name": "Wall Wrecker", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 5000000, "time": 518400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 1 }, "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 52, "name": "Battle Blimp", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 8000000, "time": 691200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 2 }, "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 53, "name": "Yeti", "housingSpace": 18, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 5000000, "time": 777600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 14 }, "upgrade": { "cost": [11000000, 15000000, 18000000], "time": [950400, 1382400, 1555200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4] }, { "id": 58, "name": "Ice Golem", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 777600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 8 }, "upgrade": { "cost": [80000, 120000, 160000, 200000, 320000], "time": [345600, 604800, 907200, 1209600, 1468800], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6] }, { "id": 59, "name": "Electro Dragon", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 518400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 13 }, "upgrade": { "cost": [9000000, 11000000, 16000000, 19000000], "time": [691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5] }, { "id": 61, "name": "Skeleton Barrel", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 6000000, 9500000, 12000000, 12000000], "time": [43200, 129600, 172800, 302400, 561600, 993600, 1209600, 1209600], "resource": "Elixir" }, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9] }, { "id": 62, "name": "Stone Slammer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 10500000, "time": 864000, "resource": "Elixir", "building": "Workshop", "buildingLevel": 3 }, "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 65, "name": "Dragon Rider", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 13, "cost": 6000000, "time": 950400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 15 }, "upgrade": { "cost": [16000000, 17500000], "time": [1296000, 1468800], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3] }, { "id": 67, "name": "El Primo", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [120000], "time": [734400], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 70, "name": "Hog Glider", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2000000, "time": 129600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 11 }, "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4200000, 4400000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 18] }, { "id": 72, "name": "Party Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [null], "time": [0], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 75, "name": "Siege Barracks", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 14500000, "time": 1209600, "resource": "Elixir", "building": "Workshop", "buildingLevel": 4 }, "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 82, "name": "Headhunter", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 7500000, "time": 1123200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 9 }, "upgrade": { "cost": [180000, 240000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3] }, { "id": 87, "name": "Log Launcher", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 16000000, "time": 1382400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 5 }, "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 91, "name": "Flame Flinger", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 14, "cost": 17500000, "time": 1555200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 6 }, "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4] }, { "id": 0, "name": "Lightning Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "upgrade": { "cost": [50000, 100000, 200000, 600000, 1500000, 3000000, 6000000, 10000000], "time": [14400, 28800, 43200, 86400, 345600, 604800, 907200, 1123200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 4, 4, 4, 5, 6, 7, 8, 9, 9, 9] }, { "id": 1, "name": "Healing Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 6, "cost": 300000, "time": 86400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 2 }, "upgrade": { "cost": [75000, 150000, 300000, 900000, 1800000, 3600000, 14000000], "time": [18000, 36000, 72000, 129600, 345600, 604800, 1382400], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 7, 7, 8, 8] }, { "id": 2, "name": "Rage Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 7, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 3 }, "upgrade": { "cost": [400000, 800000, 1600000, 2400000, 11000000], "time": [43200, 86400, 172800, 345600, 993600], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 4, 5, 5, 5, 5, 6, 6, 6] }, { "id": 3, "name": "Jump Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "upgrade": { "cost": [2000000, 4000000, 12000000], "time": [345600, 604800, 1296000], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4] }, { "id": 5, "name": "Freeze Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "upgrade": { "cost": [1200000, 2000000, 3600000, 5000000, 8500000, 11000000], "time": [129600, 259200, 432000, 648000, 777600, 993600], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 6, 7, 7, 7] }, { "id": 4, "name": "Santa's Surprise", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "upgrade": { "cost": [null], "time": [null], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 9, "name": "Poison Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 150000, "time": 21600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 1 }, "upgrade": { "cost": [12000, 25000, 50000, 100000, 175000, 260000, 300000], "time": [28800, 86400, 259200, 777600, 950400, 1339200, 1512000], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8] }, { "id": 10, "name": "Earthquake Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 300000, "time": 64800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 2 }, "upgrade": { "cost": [15000, 30000, 60000, 120000], "time": [64800, 129600, 432000, 950400], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5, 5] }, { "id": 11, "name": "Haste Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 3 }, "upgrade": { "cost": [20000, 40000, 70000, 110000], "time": [129600, 259200, 518400, 950400], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 5, 5, 5] }, { "id": 16, "name": "Clone Spell", "housingSpace": 3, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2400000, "time": 432000, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 5 }, "upgrade": { "cost": [2500000, 4000000, 6000000, 8000000, 12000000, 16500000], "time": [172800, 345600, 475200, 864000, 1296000, 1425600], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6, 7] }, { "id": 17, "name": "Skeleton Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 345600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 4 }, "upgrade": { "cost": [25000, 40000, 70000, 125000, 150000, 250000], "time": [129600, 259200, 518400, 734400, 907200, 1296000], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 4, 6, 7, 7] }, { "id": 22, "name": "Birthday Boom", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "upgrade": { "cost": [null], "time": [null], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 28, "name": "Bat Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2500000, "time": 518400, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 5 }, "upgrade": { "cost": [30000, 60000, 100000, 150000], "time": [172800, 345600, 648000, 777600], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 5, 5] }, { "id": 35, "name": "Invisibility Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 11, "cost": 4800000, "time": 604800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 6 }, "upgrade": { "cost": [8000000, 12000000, 15000000], "time": [691200, 993600, 1339200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4] }, { "id": 0, "name": "Barbarian King", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 7, "cost": 5000, "time": 0, "resource": "Dark Elixir", "building": "Barbarian King", "buildingLevel": 1 }, "upgrade": { "cost": [6000, 7000, 8000, 10000, 11000, 12000, 13000, 14000, 15000, 17000, 19000, 21000, 23000, 25000, 27000, 29000, 31000, 33000, 35000, 37000, 39000, 41000, 43000, 45000, 47000, 49000, 51000, 53000, 55000, 57000, 59000, 61000, 63000, 65000, 68000, 71000, 74000, 77000, 80000, 86000, 92000, 98000, 104000, 110000, 116000, 122000, 128000, 134000, 140000, 146000, 152000, 158000, 164000, 170000, 178000, 186000, 194000, 202000, 210000, 217000, 224000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 305000, 310000, 315000, 320000, 325000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 5, 10, 30, 40, 50, 65, 75, 80] }, { "id": 1, "name": "Archer Queen", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 9, "cost": 10000, "time": 0, "resource": "Dark Elixir", "building": "Archer Queen", "buildingLevel": 1 }, "upgrade": { "cost": [11000, 12000, 13000, 15000, 16000, 17000, 18000, 19000, 20000, 22000, 24000, 26000, 28000, 30000, 32000, 34000, 36000, 38000, 40000, 42000, 44000, 46000, 48000, 50000, 52000, 54000, 56000, 58000, 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, 90000, 96000, 102000, 108000, 114000, 120000, 126000, 132000, 138000, 144000, 150000, 156000, 162000, 168000, 174000, 180000, 187000, 194000, 201000, 208000, 215000, 220000, 225000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 306000, 312000, 318000, 324000, 330000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 30, 40, 50, 65, 75, 80] }, { "id": 2, "name": "Grand Warden", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 11, "cost": 1000000, "time": 0, "resource": "Elixir", "building": "Grand Warden", "buildingLevel": 1 }, "upgrade": { "cost": [1250000, 1500000, 1750000, 2000000, 2250000, 2500000, 2750000, 3000000, 3500000, 4000000, 4500000, 5000000, 5500000, 6000000, 6500000, 7000000, 7500000, 8000000, 9000000, 10000000, 10100000, 10200000, 10300000, 10400000, 10500000, 10600000, 10700000, 10800000, 10900000, 11000000, 11100000, 11200000, 11300000, 11400000, 11500000, 11600000, 11700000, 11800000, 11900000, 12000000, 12500000, 13000000, 13500000, 14000000, 14500000, 15000000, 15500000, 16000000, 16500000, 17000000, 17500000, 18000000, 18500000, 19000000], "time": [7200, 14400, 28800, 43200, 64800, 86400, 108000, 129600, 172800, 216000, 259200, 345600, 432000, 518400, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 40, 50, 55] }, { "id": 3, "name": "Battle Machine", "housingSpace": 25, "village": "builderBase", "category": "hero", "subCategory": "hero", "unlock": { "hall": 5, "cost": 900000, "time": 43200, "resource": "Builder Elixir", "building": "Battle Machine", "buildingLevel": 1 }, "upgrade": { "cost": [1000000, 1100000, 1200000, 1300000, 1500000, 1600000, 1700000, 1800000, 1900000, 2100000, 2200000, 2300000, 2400000, 2500000, 2600000, 2700000, 2800000, 2900000, 3000000, 3100000, 3200000, 3300000, 3400000, 3500000, 3600000, 3700000, 3800000, 3900000, 4000000, 4000000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600], "resource": "Builder Elixir" }, "levels": [0, 0, 0, 0, 5, 10, 20, 25, 30] }, { "id": 4, "name": "Royal Champion", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 13, "cost": 60000, "time": 0, "resource": "Dark Elixir", "building": "Royal Champion", "buildingLevel": 1 }, "upgrade": { "cost": [80000, 100000, 120000, 140000, 160000, 180000, 190000, 200000, 210000, 220000, 230000, 235000, 240000, 245000, 250000, 255000, 260000, 265000, 270000, 275000, 280000, 285000, 290000, 295000, 300000, 305000, 310000, 315000, 320000], "time": [28800, 57600, 86400, 172800, 259200, 302400, 345600, 388800, 432000, 475200, 518400, 561600, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 30] }, { "id": 0, "name": "L.A.S.S.I", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 15000000, "time": 1123200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 1 }, "upgrade": { "cost": [115000, 130000, 145000, 160000, 175000, 190000, 205000, 220000, 235000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 1, "name": "Mighty Yak", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 18500000, "time": 1468800, "resource": "Elixir", "building": "Pet House", "buildingLevel": 3 }, "upgrade": { "cost": [165000, 185000, 205000, 225000, 245000, 255000, 265000, 275000, 285000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 2, "name": "Electro Owl", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 17500000, "time": 1296000, "resource": "Elixir", "building": "Pet House", "buildingLevel": 2 }, "upgrade": { "cost": [135000, 150000, 165000, 180000, 195000, 210000, 225000, 240000, 255000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 3, "name": "Unicorn", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 19500000, "time": 1641600, "resource": "Elixir", "building": "Pet House", "buildingLevel": 4 }, "upgrade": { "cost": [210000, 220000, 230000, 240000, 250000, 260000, 270000, 280000, 290000, 4000000, 750000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200, 432000, 172800], "resource": "Dark Elixir" }, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12] }], "RAW_SUPER_UNITS": [{ "name": "Super Barbarian", "id": 26, "original": "Barbarian", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 5 }, { "name": "Sneaky Goblin", "id": 55, "original": "Goblin", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 3 }, { "name": "Super Giant", "id": 29, "original": "Giant", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Super Wall Breaker", "id": 28, "original": "Wall Breaker", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Archer", "id": 27, "original": "Archer", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Witch", "id": 66, "original": "Witch", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Inferno Dragon", "id": 63, "original": "Baby Dragon", "minOriginalLevel": 6, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 15 }, { "name": "Super Valkyrie", "id": 64, "original": "Valkyrie", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 20 }, { "name": "Super Minion", "id": 84, "original": "Minion", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Wizard", "id": 83, "original": "Wizard", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Ice Hound", "id": 76, "original": "Lava Hound", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Rocket Balloon", "id": 57, "original": "Balloon", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Bowler", "id": 80, "original": "Bowler", "minOriginalLevel": 4, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 30 }, { "name": "Super Dragon", "id": 81, "original": "Dragon", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }] }
1
+ { "RAW_UNITS": [{ "id": 0, "name": "Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 20, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30, 34, 38, 42], "upgrade": { "cost": [20000, 60000, 200000, 650000, 1400000, 2500000, 4000000, 8000000, 15000000], "time": [7200, 18000, 43200, 86400, 129600, 259200, 388800, 864000, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 1, "name": "Archer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 500, "time": 60, "resource": "Elixir", "building": "Barracks", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 24, "regenerationTimes": [], "dps": [7, 9, 12, 16, 20, 22, 25, 28, 31, 34], "upgrade": { "cost": [30000, 80000, 300000, 800000, 2000000, 3000000, 4500000, 9000000, 15500000], "time": [10800, 21600, 43200, 86400, 129600, 259200, 432000, 907200, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 2, "name": "Goblin", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 5000, "time": 3600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 28, "regenerationTimes": [], "dps": [11, 14, 19, 24, 32, 42, 52, 62], "upgrade": { "cost": [45000, 175000, 500000, 1200000, 2000000, 3500000, 9000000], "time": [18000, 32400, 43200, 86400, 129600, 345600, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 8, 8, 8] }, { "id": 3, "name": "Giant", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [11, 14, 19, 24, 31, 43, 50, 57, 64, 72], "upgrade": { "cost": [40000, 150000, 500000, 1200000, 2000000, 3500000, 5000000, 9000000, 13000000], "time": [14400, 28800, 43200, 86400, 172800, 345600, 691200, 1123200, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 4, "name": "Wall Breaker", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 14400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [6, 10, 15, 20, 43, 55, 66, 75, 86, 94], "upgrade": { "cost": [100000, 250000, 600000, 1200000, 3000000, 6000000, 10500000, 13000000, 16000000], "time": [21600, 43200, 64800, 86400, 216000, 432000, 864000, 1252800, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10] }, { "id": 5, "name": "Balloon", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [25, 32, 48, 72, 108, 162, 198, 236, 256, 276], "upgrade": { "cost": [125000, 400000, 800000, 1500000, 2750000, 6500000, 11000000, 14000000, 18000000], "time": [28800, 43200, 64800, 86400, 302400, 648000, 1166400, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10] }, { "id": 6, "name": "Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [50, 70, 90, 125, 170, 185, 200, 215, 230, 245], "upgrade": { "cost": [120000, 320000, 620000, 1200000, 2200000, 4200000, 7200000, 9200000, 14200000], "time": [28800, 43200, 64800, 86400, 172800, 345600, 648000, 1080000, 1252800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 7, "name": "Healer", "housingSpace": 14, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 600000, "time": 57600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 8 }, "resourceType": "Elixir", "trainingTime": 480, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [450000, 900000, 2700000, 6000000, 13000000, 17000000], "time": [43200, 86400, 172800, 864000, 1209600, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 6, 7] }, { "id": 8, "name": "Dragon", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [140, 160, 180, 210, 240, 270, 310, 330, 350], "upgrade": { "cost": [1000000, 2000000, 3000000, 4500000, 7000000, 10000000, 15000000, 18500000], "time": [64800, 129600, 259200, 518400, 691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9] }, { "id": 9, "name": "P.E.K.K.A", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1200000, "time": 129600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 10 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [260, 290, 320, 360, 410, 470, 540, 610, 680], "upgrade": { "cost": [1200000, 1800000, 2800000, 3800000, 5000000, 7500000, 11000000, 14000000], "time": [43200, 86400, 172800, 345600, 475200, 734400, 1209600, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 4, 6, 7, 8, 9, 9] }, { "id": 10, "name": "Minion", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 100000, "time": 14400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 36, "regenerationTimes": [], "dps": [38, 41, 44, 47, 50, 54, 58, 62, 66, 70], "upgrade": { "cost": [3000, 7000, 15000, 25000, 40000, 90000, 150000, 250000, 300000], "time": [28800, 57600, 86400, 172800, 345600, 604800, 1209600, 1339200, 1425600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9, 10] }, { "id": 11, "name": "Hog Rider", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 300000, "time": 43200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 90, "regenerationTimes": [], "dps": [60, 70, 80, 92, 105, 118, 135, 148, 161, 174, 187], "upgrade": { "cost": [5000, 9000, 16000, 30000, 50000, 100000, 150000, 240000, 280000, 320000], "time": [36000, 72000, 108000, 172800, 345600, 648000, 993600, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 9, 10, 11] }, { "id": 12, "name": "Valkyrie", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 500000, "time": 64800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [94, 106, 119, 133, 148, 163, 178, 193, 208], "upgrade": { "cost": [8000, 12000, 25000, 45000, 90000, 175000, 260000, 310000], "time": [86400, 172800, 259200, 432000, 648000, 950400, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9] }, { "id": 13, "name": "Golem", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85], "upgrade": { "cost": [10000, 20000, 30000, 50000, 75000, 110000, 160000, 200000, 270000, 320000], "time": [108000, 216000, 324000, 432000, 604800, 691200, 907200, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 7, 9, 10, 11] }, { "id": 15, "name": "Witch", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1500000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [100, 110, 140, 160, 180], "upgrade": { "cost": [50000, 80000, 130000, 200000], "time": [345600, 475200, 820800, 1209600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5] }, { "id": 17, "name": "Lava Hound", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 259200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [10, 12, 14, 16, 18, 20], "upgrade": { "cost": [35000, 60000, 120000, 190000, 270000], "time": [216000, 432000, 777600, 1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6] }, { "id": 22, "name": "Bowler", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3000000, "time": 432000, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [60, 70, 80, 90, 96, 102], "upgrade": { "cost": [75000, 125000, 200000, 280000, 320000], "time": [345600, 604800, 1036800, 1252800, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6] }, { "id": 23, "name": "Baby Dragon", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1800000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [75, 85, 95, 105, 115, 125, 135, 145], "upgrade": { "cost": [2000000, 3000000, 4000000, 6000000, 9000000, 12000000, 17000000], "time": [172800, 345600, 518400, 777600, 1036800, 1209600, 1425600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8] }, { "id": 24, "name": "Miner", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 2500000, "time": 345600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 12 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [80, 88, 96, 104, 112, 120, 128, 136], "upgrade": { "cost": [3000000, 4000000, 5000000, 7000000, 9500000, 13000000, 17500000], "time": [216000, 345600, 518400, 864000, 1123200, 1339200, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8] }, { "id": 26, "name": "Super Barbarian", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 100, "regenerationTimes": [], "dps": [180, 200, 220], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 27, "name": "Super Archer", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 500, "time": 60, "resource": "Elixir", "building": "Barracks", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 288, "regenerationTimes": [], "dps": [120, 132, 144], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 28, "name": "Super Wall Breaker", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 14400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [78, 100, 120, 130], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] }, { "id": 29, "name": "Super Giant", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [130, 140], "upgrade": { "cost": [80000], "time": [864000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 30, "name": "Ice Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [40, 56, 72, 100, 136, 148, 160, 172, 184, 196], "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 5000000, 7000000, 9000000, 11000000, 15000000], "time": [43200, 129600, 172800, 259200, 432000, 518400, 864000, 1209600, 1296000], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 31, "name": "Raged Barbarian", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 1000, "time": 0, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 1 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [50, 50, 55, 55, 61, 61, 67, 67, 74, 74, 81, 81, 89, 89, 98, 98, 108, 108], "upgrade": { "cost": [3500, 6000, 9000, 50000, 100000, 300000, 330000, 700000, 900000, 1000000, 1200000, 2000000, 2200000, 3000000, 3200000, 3800000, 4000000], "time": [300, 900, 10800, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [2, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 32, "name": "Sneaky Archer", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 4000, "time": 60, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 2 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [5000, 8000, 12000, 60000, 120000, 320000, 350000, 800000, 1000000, 1100000, 1300000, 2100000, 2300000, 3100000, 3300000, 3900000, 4100000], "time": [180, 600, 1800, 14400, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 33, "name": "Beta Minion", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 25000, "time": 1800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 4 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [50000, 80000, 120000, 250000, 280000, 320000, 360000, 900000, 1100000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [3600, 10800, 18000, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 34, "name": "Boxer Giant", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 3 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 85], "upgrade": { "cost": [20000, 40000, 60000, 300000, 320000, 340000, 380000, 1000000, 1200000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [1800, 3600, 7200, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 35, "name": "Bomber", "housingSpace": 4, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 100000, "time": 10800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 5 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [150000, 200000, 250000, 280000, 320000, 340000, 360000, 900000, 1000000, 1200000, 1400000, 2200000, 2400000, 3200000, 3400000, 3900000, 4100000], "time": [10800, 18000, 28800, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 36, "name": "Super P.E.K.K.A", "housingSpace": 25, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1500000, "time": 86400, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 10 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [305, 305, 336, 336, 369, 369, 406, 406, 447, 447, 491, 491, 540, 540, 594, 594, 653, 718], "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4600000, 4800000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 16, 18] }, { "id": 37, "name": "Cannon Cart", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 300000, "time": 28800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 7 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [85, 85, 94, 94, 103, 120, 130, 130, 141, 141, 153, 153, 167, 184, 199, 216, 233, 251], "upgrade": { "cost": [400000, 500000, 600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 10, 12, 14, 16, 18] }, { "id": 38, "name": "Drop Ship", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 1000000, "time": 43200, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 9 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], "upgrade": { "cost": [1100000, 1200000, 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 2000000, 2200000, 2400000, 2600000, 2800000, 3600000, 3800000, 4300000, 4500000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 14, 16, 18] }, { "id": 41, "name": "Baby Dragon", "housingSpace": 10, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 150000, "time": 21600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 6 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77, 85, 85], "upgrade": { "cost": [200000, 240000, 280000, 320000, 360000, 380000, 400000, 1000000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [18000, 28800, 43200, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 42, "name": "Night Witch", "housingSpace": 12, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 500000, "time": 36000, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 8 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [90, 90, 99, 99, 109, 109, 120, 120, 132, 132, 145, 145, 160, 160, 176, 176, 194, 213], "upgrade": { "cost": [600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1300000, 1400000, 1600000, 1800000, 2500000, 2700000, 3500000, 3700000, 4200000, 4400000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 12, 14, 16, 18] }, { "id": 45, "name": "Battle Ram", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [6000], "upgrade": { "cost": [100000], "time": [86400], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 47, "name": "Royal Ghost", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 150, "regenerationTimes": [], "dps": [200, 280, 360, 440, 520, 600, 680], "upgrade": { "cost": [5000], "time": [86400], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6, 7, 7, 7] }, { "id": 48, "name": "Pumpkin Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 20, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30], "upgrade": { "cost": [50000, 150000, 500000, 1500000, 4500000, 6000000], "time": [21600, 86400, 259200, 432000, 864000, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 7, 7, 7] }, { "id": 50, "name": "Giant Skeleton", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [22, 28, 38, 48, 62, 86, 100, 114], "upgrade": { "cost": [100000, 250000, 750000, 2250000, 5000000, 6000000, 9500000], "time": [86400, 172800, 259200, 432000, 864000, 1036800, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8] }, { "id": 51, "name": "Wall Wrecker", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 5000000, "time": 518400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 1 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [250, 300, 350, 400], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 52, "name": "Battle Blimp", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 8000000, "time": 691200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 2 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [100, 140, 180, 220], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 53, "name": "Yeti", "housingSpace": 18, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 5000000, "time": 777600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 14 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [230, 250, 270, 290], "upgrade": { "cost": [11000000, 15000000, 18000000], "time": [950400, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4] }, { "id": 55, "name": "Sneaky Goblin", "housingSpace": 3, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 5000, "time": 3600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 84, "regenerationTimes": [], "dps": [160, 190], "upgrade": { "cost": [80000], "time": [43200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 57, "name": "Rocket Balloon", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 192, "regenerationTimes": [], "dps": [236, 256, 276], "upgrade": { "cost": [150000], "time": [43200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 58, "name": "Ice Golem", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 777600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 8 }, "resourceType": "Dark Elixir", "trainingTime": 300, "regenerationTimes": [], "dps": [24, 28, 32, 36, 40, 44], "upgrade": { "cost": [80000, 120000, 160000, 200000, 320000], "time": [345600, 604800, 907200, 1209600, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6] }, { "id": 59, "name": "Electro Dragon", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 518400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 13 }, "resourceType": "Elixir", "trainingTime": 1440, "regenerationTimes": [], "dps": [240, 270, 300, 330, 360], "upgrade": { "cost": [9000000, 11000000, 16000000, 19000000], "time": [691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5] }, { "id": 61, "name": "Skeleton Barrel", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [75, 96, 144, 216, 324, 486, 594, 708, 768], "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 6000000, 9500000, 12000000, 12000000], "time": [43200, 129600, 172800, 302400, 561600, 993600, 1209600, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9] }, { "id": 62, "name": "Stone Slammer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 10500000, "time": 864000, "resource": "Elixir", "building": "Workshop", "buildingLevel": 3 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [400, 500, 600, 700], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 63, "name": "Inferno Dragon", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1800000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "resourceType": "Elixir", "trainingTime": 540, "regenerationTimes": [], "dps": [75, 79, 83], "upgrade": { "cost": [240000], "time": [1209600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3] }, { "id": 64, "name": "Super Valkyrie", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 500000, "time": 64800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 450, "regenerationTimes": [], "dps": [250, 300, 325], "upgrade": { "cost": [40000], "time": [345600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3] }, { "id": 65, "name": "Dragon Rider", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 13, "cost": 6000000, "time": 950400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 15 }, "resourceType": "Elixir", "trainingTime": 1000, "regenerationTimes": [], "dps": [340, 370, 400], "upgrade": { "cost": [16000000, 17500000], "time": [1296000, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3] }, { "id": 66, "name": "Super Witch", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1500000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 800, "regenerationTimes": [], "dps": [360], "upgrade": { "cost": [75000], "time": [518400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1] }, { "id": 67, "name": "El Primo", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [120], "upgrade": { "cost": [120000], "time": [734400], "resource": "Dark Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 70, "name": "Hog Glider", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2000000, "time": 129600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 11 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [700, 700, 700, 700, 700, 700, 700, 700, 700, 900, 900, 900, 900, 1100, 1100, 1100, 1100, 1100], "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4200000, 4400000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 18] }, { "id": 72, "name": "Party Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [75, 105, 135, 188, 255, 278, 300, 322, 345, 367], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 75, "name": "Siege Barracks", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 14500000, "time": 1209600, "resource": "Elixir", "building": "Workshop", "buildingLevel": 4 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 76, "name": "Ice Hound", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 259200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "resourceType": "Dark Elixir", "trainingTime": 800, "regenerationTimes": [], "dps": [10, 15], "upgrade": { "cost": [240000, 280000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2] }, { "id": 80, "name": "Super Bowler", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3000000, "time": 432000, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [170, 185, 200], "upgrade": { "cost": [75000], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3] }, { "id": 81, "name": "Super Dragon", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "resourceType": "Elixir", "trainingTime": 1440, "regenerationTimes": [], "dps": [80, 87, 94], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 82, "name": "Headhunter", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 7500000, "time": 1123200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 9 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [105, 115, 125], "upgrade": { "cost": [180000, 240000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3] }, { "id": 83, "name": "Super Wizard", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 300, "regenerationTimes": [], "dps": [220, 240], "upgrade": { "cost": [4000000], "time": [432000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 84, "name": "Super Minion", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 100000, "time": 14400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 216, "regenerationTimes": [], "dps": [300, 325, 350], "upgrade": { "cost": [10000], "time": [259200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 87, "name": "Log Launcher", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 16000000, "time": 1382400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 5 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [140, 160, 180, 200], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 91, "name": "Flame Flinger", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 14, "cost": 17500000, "time": 1555200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 6 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [135, 145, 155, 165], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4] }, { "id": 0, "name": "Lightning Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [50000, 100000, 200000, 600000, 1500000, 3000000, 6000000, 10000000], "time": [14400, 28800, 43200, 86400, 345600, 604800, 907200, 1123200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 4, 4, 4, 5, 6, 7, 8, 9, 9, 9] }, { "id": 1, "name": "Healing Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 6, "cost": 300000, "time": 86400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [75000, 150000, 300000, 900000, 1800000, 3600000, 14000000], "time": [18000, 36000, 72000, 129600, 345600, 604800, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 7, 7, 8, 8] }, { "id": 2, "name": "Rage Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 7, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [400000, 800000, 1600000, 2400000, 11000000], "time": [43200, 86400, 172800, 345600, 993600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 4, 5, 5, 5, 5, 6, 6, 6] }, { "id": 3, "name": "Jump Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2000000, 4000000, 12000000], "time": [345600, 604800, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4] }, { "id": 5, "name": "Freeze Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [1200000, 2000000, 3600000, 5000000, 8500000, 11000000], "time": [129600, 259200, 432000, 648000, 777600, 993600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 6, 7, 7, 7] }, { "id": 4, "name": "Santa's Surprise", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 9, "name": "Poison Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 150000, "time": 21600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [12000, 25000, 50000, 100000, 175000, 260000, 300000], "time": [28800, 86400, 259200, 777600, 950400, 1339200, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8] }, { "id": 10, "name": "Earthquake Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 300000, "time": 64800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [15000, 30000, 60000, 120000], "time": [64800, 129600, 432000, 950400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5, 5] }, { "id": 11, "name": "Haste Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [20000, 40000, 70000, 110000], "time": [129600, 259200, 518400, 950400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 5, 5, 5] }, { "id": 16, "name": "Clone Spell", "housingSpace": 3, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2400000, "time": 432000, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 540, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2500000, 4000000, 6000000, 8000000, 12000000, 16500000], "time": [172800, 345600, 475200, 864000, 1296000, 1425600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6, 7] }, { "id": 17, "name": "Skeleton Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 345600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [25000, 40000, 70000, 125000, 150000, 250000], "time": [129600, 259200, 518400, 734400, 907200, 1296000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 4, 6, 7, 7] }, { "id": 22, "name": "Birthday Boom", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 28, "name": "Bat Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2500000, "time": 518400, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [30000, 60000, 100000, 150000], "time": [172800, 345600, 648000, 777600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 5, 5] }, { "id": 35, "name": "Invisibility Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 11, "cost": 4800000, "time": 604800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [8000000, 12000000, 15000000], "time": [691200, 993600, 1339200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4] }, { "id": 0, "name": "Barbarian King", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 7, "cost": 5000, "time": 0, "resource": "Dark Elixir", "building": "Barbarian King", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [600, 600, 600, 600, 720, 720, 720, 720, 720, 840, 840, 840, 840, 840, 960, 960, 960, 960, 960, 1080, 1080, 1080, 1080, 1080, 1200, 1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [120, 122, 124, 127, 129, 132, 135, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 168, 171, 174, 178, 181, 185, 189, 193, 196, 200, 204, 208, 213, 217, 221, 226, 230, 235, 239, 244, 249, 254, 259, 275, 281, 287, 293, 299, 305, 312, 318, 325, 332, 339, 346, 353, 361, 369, 377, 385, 393, 401, 410, 418, 426, 435, 444, 453, 462, 471, 480, 490, 500, 510, 520, 530, 540, 550, 559, 568, 577, 586, 595], "upgrade": { "cost": [6000, 7000, 8000, 10000, 11000, 12000, 13000, 14000, 15000, 17000, 19000, 21000, 23000, 25000, 27000, 29000, 31000, 33000, 35000, 37000, 39000, 41000, 43000, 45000, 47000, 49000, 51000, 53000, 55000, 57000, 59000, 61000, 63000, 65000, 68000, 71000, 74000, 77000, 80000, 86000, 92000, 98000, 104000, 110000, 116000, 122000, 128000, 134000, 140000, 146000, 152000, 158000, 164000, 170000, 178000, 186000, 194000, 202000, 210000, 217000, 224000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 305000, 310000, 315000, 320000, 325000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 5, 10, 30, 40, 50, 65, 75, 80] }, { "id": 1, "name": "Archer Queen", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 9, "cost": 10000, "time": 0, "resource": "Dark Elixir", "building": "Archer Queen", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [600, 600, 600, 600, 720, 720, 720, 720, 720, 840, 840, 840, 840, 840, 960, 960, 960, 960, 960, 1080, 1080, 1080, 1080, 1080, 1200, 1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [160, 164, 168, 172, 176, 181, 185, 190, 194, 199, 204, 209, 215, 220, 226, 231, 237, 243, 249, 255, 262, 268, 275, 282, 289, 296, 304, 311, 319, 327, 335, 344, 352, 361, 370, 379, 389, 398, 408, 419, 429, 440, 451, 462, 474, 486, 498, 510, 523, 536, 547, 558, 570, 582, 594, 606, 619, 632, 645, 658, 671, 684, 698, 712, 726, 739, 751, 762, 772, 781, 789, 796, 802, 808, 814, 820, 825, 830, 835, 840], "upgrade": { "cost": [11000, 12000, 13000, 15000, 16000, 17000, 18000, 19000, 20000, 22000, 24000, 26000, 28000, 30000, 32000, 34000, 36000, 38000, 40000, 42000, 44000, 46000, 48000, 50000, 52000, 54000, 56000, 58000, 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, 90000, 96000, 102000, 108000, 114000, 120000, 126000, 132000, 138000, 144000, 150000, 156000, 162000, 168000, 174000, 180000, 187000, 194000, 201000, 208000, 215000, 220000, 225000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 306000, 312000, 318000, 324000, 330000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 30, 40, 50, 65, 75, 80] }, { "id": 2, "name": "Grand Warden", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 11, "cost": 1000000, "time": 0, "resource": "Elixir", "building": "Grand Warden", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [50, 52, 54, 56, 58, 60, 63, 66, 69, 72, 75, 78, 82, 86, 90, 94, 98, 102, 106, 110, 115, 120, 125, 130, 136, 142, 148, 154, 161, 168, 175, 182, 190, 198, 206, 215, 224, 233, 243, 253, 260, 266, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319], "upgrade": { "cost": [1250000, 1500000, 1750000, 2000000, 2250000, 2500000, 2750000, 3000000, 3500000, 4000000, 4500000, 5000000, 5500000, 6000000, 6500000, 7000000, 7500000, 8000000, 9000000, 10000000, 10100000, 10200000, 10300000, 10400000, 10500000, 10600000, 10700000, 10800000, 10900000, 11000000, 11100000, 11200000, 11300000, 11400000, 11500000, 11600000, 11700000, 11800000, 11900000, 12000000, 12500000, 13000000, 13500000, 14000000, 14500000, 15000000, 15500000, 16000000, 16500000, 17000000, 17500000, 18000000, 18500000, 19000000], "time": [7200, 14400, 28800, 43200, 64800, 86400, 108000, 129600, 172800, 216000, 259200, 345600, 432000, 518400, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 40, 50, 55] }, { "id": 3, "name": "Battle Machine", "housingSpace": 25, "village": "builderBase", "category": "hero", "subCategory": "hero", "unlock": { "hall": 5, "cost": 900000, "time": 43200, "resource": "Builder Elixir", "building": "Battle Machine", "buildingLevel": 1 }, "resourceType": "Builder Elixir", "trainingTime": 0, "regenerationTimes": [0], "dps": [125, 127, 130, 132, 135, 137, 140, 142, 145, 147, 150, 154, 157, 160, 164, 167, 170, 174, 177, 180, 186, 192, 198, 204, 210, 218, 226, 234, 242, 250], "upgrade": { "cost": [1000000, 1100000, 1200000, 1300000, 1500000, 1600000, 1700000, 1800000, 1900000, 2100000, 2200000, 2300000, 2400000, 2500000, 2600000, 2700000, 2800000, 2900000, 3000000, 3100000, 3200000, 3300000, 3400000, 3500000, 3600000, 3700000, 3800000, 3900000, 4000000, 4000000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 5, 10, 20, 25, 30] }, { "id": 4, "name": "Royal Champion", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 13, "cost": 60000, "time": 0, "resource": "Dark Elixir", "building": "Royal Champion", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [374, 383, 392, 401, 410, 418, 426, 434, 442, 450, 458, 466, 474, 482, 490, 498, 506, 514, 522, 530, 535, 540, 545, 550, 555, 560, 565, 570, 575, 580], "upgrade": { "cost": [80000, 100000, 120000, 140000, 160000, 180000, 190000, 200000, 210000, 220000, 230000, 235000, 240000, 245000, 250000, 255000, 260000, 265000, 270000, 275000, 280000, 285000, 290000, 295000, 300000, 305000, 310000, 315000, 320000], "time": [28800, 57600, 86400, 172800, 259200, 302400, 345600, 388800, 432000, 475200, 518400, 561600, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 30] }, { "id": 0, "name": "L.A.S.S.I", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 15000000, "time": 1123200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [150, 160, 170, 180, 190, 200, 210, 220, 230, 240], "upgrade": { "cost": [115000, 130000, 145000, 160000, 175000, 190000, 205000, 220000, 235000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 1, "name": "Mighty Yak", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 18500000, "time": 1468800, "resource": "Elixir", "building": "Pet House", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [60, 64, 68, 72, 76, 80, 84, 88, 92, 96], "upgrade": { "cost": [165000, 185000, 205000, 225000, 245000, 255000, 265000, 275000, 285000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 2, "name": "Electro Owl", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 17500000, "time": 1296000, "resource": "Elixir", "building": "Pet House", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [100, 105, 110, 115, 120, 125, 130, 135, 140, 145], "upgrade": { "cost": [135000, 150000, 165000, 180000, 195000, 210000, 225000, 240000, 255000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 3, "name": "Unicorn", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 19500000, "time": 1641600, "resource": "Elixir", "building": "Pet House", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [210000, 220000, 230000, 240000, 250000, 260000, 270000, 280000, 290000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }], "RAW_SUPER_UNITS": [{ "name": "Super Barbarian", "id": 26, "original": "Barbarian", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 5 }, { "name": "Sneaky Goblin", "id": 55, "original": "Goblin", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 3 }, { "name": "Super Giant", "id": 29, "original": "Giant", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Super Wall Breaker", "id": 28, "original": "Wall Breaker", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Archer", "id": 27, "original": "Archer", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Witch", "id": 66, "original": "Witch", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Inferno Dragon", "id": 63, "original": "Baby Dragon", "minOriginalLevel": 6, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 15 }, { "name": "Super Valkyrie", "id": 64, "original": "Valkyrie", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 20 }, { "name": "Super Minion", "id": 84, "original": "Minion", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Wizard", "id": 83, "original": "Wizard", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Ice Hound", "id": 76, "original": "Lava Hound", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Rocket Balloon", "id": 57, "original": "Balloon", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Bowler", "id": 80, "original": "Bowler", "minOriginalLevel": 4, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 30 }, { "name": "Super Dragon", "id": 81, "original": "Dragon", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clashofclans.js",
3
- "version": "2.1.0-dev.b57d4de",
3
+ "version": "2.2.0-dev.f3f02b3",
4
4
  "description": "JavaScript library for interacting with the Clash of Clans API",
5
5
  "author": "SUVAJIT <suvajit.me@gmail.com>",
6
6
  "license": "MIT",