clashofclans.js 2.8.4 → 2.9.1

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/client/Client.d.ts +7 -4
  3. package/dist/client/Client.js +11 -5
  4. package/dist/client/EventManager.d.ts +1 -1
  5. package/dist/index.js +5 -1
  6. package/dist/rest/RESTManager.d.ts +3 -1
  7. package/dist/rest/RESTManager.js +5 -0
  8. package/dist/rest/RequestHandler.js +3 -3
  9. package/dist/struct/CapitalRaidSeason.d.ts +49 -0
  10. package/dist/struct/CapitalRaidSeason.js +40 -0
  11. package/dist/struct/Clan.d.ts +7 -7
  12. package/dist/struct/Clan.js +4 -4
  13. package/dist/struct/ClanMember.d.ts +2 -2
  14. package/dist/struct/ClanMember.js +1 -1
  15. package/dist/struct/ClanWar.d.ts +2 -2
  16. package/dist/struct/ClanWar.js +1 -1
  17. package/dist/struct/ClanWarLeagueGroup.d.ts +3 -3
  18. package/dist/struct/ClanWarLog.d.ts +2 -2
  19. package/dist/struct/ClanWarLog.js +1 -1
  20. package/dist/struct/Label.d.ts +1 -1
  21. package/dist/struct/League.d.ts +1 -1
  22. package/dist/struct/League.js +1 -1
  23. package/dist/struct/LegendStatistics.d.ts +1 -1
  24. package/dist/struct/Player.d.ts +5 -5
  25. package/dist/struct/Player.js +5 -5
  26. package/dist/struct/PlayerClan.d.ts +2 -2
  27. package/dist/struct/Ranking.d.ts +4 -4
  28. package/dist/struct/Ranking.js +4 -4
  29. package/dist/struct/Unit.d.ts +0 -2
  30. package/dist/struct/Unit.js +0 -2
  31. package/dist/struct/index.js +5 -1
  32. package/dist/types/api.d.ts +58 -0
  33. package/dist/types/index.js +5 -1
  34. package/dist/types/lib.d.ts +4 -4
  35. package/dist/util/Constants.d.ts +28 -2
  36. package/dist/util/Constants.js +13 -3
  37. package/dist/util/Util.js +2 -2
  38. package/dist/util/raw.json +1 -1
  39. package/package.json +6 -2
package/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
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.8.3 (2022-09-13)
5
+ ## 2.9.0 (2022-10-16)
6
+
7
+ ### Features
8
+
9
+ - Support for clan capital raid seasons `Client#getCapitalRaidSeasons()`
10
+
11
+ ## 2.8.4 (2022-09-14)
6
12
 
7
13
  ### Bug Fixes
8
14
 
@@ -1,11 +1,12 @@
1
1
  /// <reference types="node" />
2
+ import { EventEmitter } from 'events';
3
+ import { EventManager } from './EventManager';
4
+ import { RESTManager } from '../rest/RESTManager';
5
+ import { Clan, ClanMember, ClanWar, ClanWarLog, League, Location, Player, WarLeague, RankedClan, RankedPlayer, Label, SeasonRankedPlayer, GoldPassSeason, ClanWarLeagueGroup } from '../struct';
6
+ import { CapitalRaidSeason } from '../struct/CapitalRaidSeason';
2
7
  import { ClanSearchOptions, SearchOptions, ClientOptions, LoginOptions, OverrideOptions } from '../types';
3
8
  import { EVENTS, CWL_ROUNDS } from '../util/Constants';
4
- import { RESTManager } from '../rest/RESTManager';
5
- import { EventManager } from './EventManager';
6
- import { EventEmitter } from 'events';
7
9
  import { Util } from '../util/Util';
8
- import { Clan, ClanMember, ClanWar, ClanWarLog, League, Location, Player, WarLeague, RankedClan, RankedPlayer, Label, SeasonRankedPlayer, GoldPassSeason, ClanWarLeagueGroup } from '../struct';
9
10
  /**
10
11
  * Represents Clash of Clans API Client.
11
12
  * ```js
@@ -40,6 +41,8 @@ export declare class Client extends EventEmitter {
40
41
  getClan(clanTag: string, options?: OverrideOptions): Promise<Clan>;
41
42
  /** Get list of clan members. */
42
43
  getClanMembers(clanTag: string, options?: SearchOptions): Promise<ClanMember[]>;
44
+ /** Get capital raid seasons. */
45
+ getCapitalRaidSeasons(tag: string, options?: SearchOptions): Promise<CapitalRaidSeason[]>;
43
46
  /** Get clan war log. */
44
47
  getClanWarLog(clanTag: string, options?: SearchOptions): Promise<ClanWarLog[]>;
45
48
  /** Get info about currently running war (normal or friendly) in the clan. */
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
- const Constants_1 = require("../util/Constants");
4
+ const events_1 = require("events");
5
+ const EventManager_1 = require("./EventManager");
5
6
  const HTTPError_1 = require("../rest/HTTPError");
6
7
  const RESTManager_1 = require("../rest/RESTManager");
7
- const EventManager_1 = require("./EventManager");
8
- const events_1 = require("events");
9
- const Util_1 = require("../util/Util");
10
8
  const struct_1 = require("../struct");
9
+ const CapitalRaidSeason_1 = require("../struct/CapitalRaidSeason");
10
+ const Constants_1 = require("../util/Constants");
11
+ const Util_1 = require("../util/Util");
11
12
  /**
12
13
  * Represents Clash of Clans API Client.
13
14
  * ```js
@@ -67,6 +68,11 @@ class Client extends events_1.EventEmitter {
67
68
  const { data } = await this.rest.getClanMembers(clanTag, options);
68
69
  return data.items.map((entry) => new struct_1.ClanMember(this, entry));
69
70
  }
71
+ /** Get capital raid seasons. */
72
+ async getCapitalRaidSeasons(tag, options) {
73
+ const { data } = await this.rest.getCapitalRaidSeasons(tag, options);
74
+ return data.items.map((entry) => new CapitalRaidSeason_1.CapitalRaidSeason(this, entry));
75
+ }
70
76
  /** Get clan war log. */
71
77
  async getClanWarLog(clanTag, options) {
72
78
  const { data } = await this.rest.getClanWarLog(clanTag, options);
@@ -147,7 +153,7 @@ class Client extends events_1.EventEmitter {
147
153
  return [await this.getClanWar(clanTag, options)];
148
154
  }
149
155
  try {
150
- return this.getLeagueWars(clanTag, options);
156
+ return await this.getLeagueWars(clanTag, options);
151
157
  }
152
158
  catch (e) {
153
159
  if (e instanceof HTTPError_1.HTTPError && [404].includes(e.status)) {
@@ -1,5 +1,5 @@
1
- import { Clan, ClanWar, Player } from '../struct';
2
1
  import { Client } from './Client';
2
+ import { Clan, ClanWar, Player } from '../struct';
3
3
  /** Represents Event Manager of the {@link Client}. */
4
4
  export declare class EventManager {
5
5
  private readonly client;
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,6 +1,6 @@
1
1
  import { RequestHandler } from './RequestHandler';
2
+ import { APIClan, APIClanList, APIClanMemberList, APIClanRankingList, APIClanVersusRankingList, APIClanWar, APIClanWarLeagueGroup, APIClanWarLog, APIGoldPassSeason, APILabelList, APILeague, APILeagueList, APILeagueSeasonList, APILocation, APILocationList, APIPlayer, APIPlayerRankingList, APIPlayerSeasonRankingList, APIPlayerVersusRankingList, APIVerifyToken, APIWarLeague, APIWarLeagueList, SearchOptions, ClanSearchOptions, RESTOptions, OverrideOptions, LoginOptions, APICapitalRaidSeasons } from '../types';
2
3
  import { Util } from '../util/Util';
3
- import { APIClan, APIClanList, APIClanMemberList, APIClanRankingList, APIClanVersusRankingList, APIClanWar, APIClanWarLeagueGroup, APIClanWarLog, APIGoldPassSeason, APILabelList, APILeague, APILeagueList, APILeagueSeasonList, APILocation, APILocationList, APIPlayer, APIPlayerRankingList, APIPlayerSeasonRankingList, APIPlayerVersusRankingList, APIVerifyToken, APIWarLeague, APIWarLeagueList, SearchOptions, ClanSearchOptions, RESTOptions, OverrideOptions, LoginOptions } from '../types';
4
4
  /** Represents a REST Manager of the client. */
5
5
  export declare class RESTManager {
6
6
  /** Request Handler for the RESTManager. */
@@ -33,6 +33,8 @@ export declare class RESTManager {
33
33
  getClanWarLeagueGroup(clanTag: string, options?: OverrideOptions): Promise<import("../types").Response<APIClanWarLeagueGroup>>;
34
34
  /** Get info about a CWL round by WarTag. */
35
35
  getClanWarLeagueRound(warTag: string, options?: OverrideOptions): Promise<import("../types").Response<APIClanWar>>;
36
+ /** Retrieve clan's capital raid seasons. */
37
+ getCapitalRaidSeasons(tag: string, options?: OverrideOptions): Promise<import("../types").Response<APICapitalRaidSeasons>>;
36
38
  /** Get info about a player by tag. */
37
39
  getPlayer(playerTag: string, options?: OverrideOptions): Promise<import("../types").Response<APIPlayer>>;
38
40
  /** Verify Player API token that can be found from the Game settings. */
@@ -58,6 +58,11 @@ class RESTManager {
58
58
  getClanWarLeagueRound(warTag, options) {
59
59
  return this.handler.request(`/clanwarleagues/wars/${Util_1.Util.encodeURI(warTag)}`, options);
60
60
  }
61
+ /** Retrieve clan's capital raid seasons. */
62
+ getCapitalRaidSeasons(tag, options) {
63
+ const query = Util_1.Util.queryString(options);
64
+ return this.handler.request(`/clans/${Util_1.Util.encodeURI(tag)}/capitalraidseasons${query}`, options);
65
+ }
61
66
  /** Get info about a player by tag. */
62
67
  getPlayer(playerTag, options) {
63
68
  return this.handler.request(`/players/${Util_1.Util.encodeURI(playerTag)}`, options);
@@ -16,11 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  var _RequestHandler_keyIndex;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.RequestHandler = void 0;
19
- const Constants_1 = require("../util/Constants");
19
+ const https_1 = __importDefault(require("https"));
20
+ const node_fetch_1 = __importDefault(require("node-fetch"));
20
21
  const HTTPError_1 = require("./HTTPError");
22
+ const Constants_1 = require("../util/Constants");
21
23
  const Store_1 = require("../util/Store");
22
- const node_fetch_1 = __importDefault(require("node-fetch"));
23
- const https_1 = __importDefault(require("https"));
24
24
  const IP_REGEX = /\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}/g;
25
25
  const agent = new https_1.default.Agent({ keepAlive: true });
26
26
  /** Represents a Request Handler. */
@@ -0,0 +1,49 @@
1
+ import { Player } from './Player';
2
+ import { Client } from '../client/Client';
3
+ import { APICapitalRaidSeason, APICapitalRaidSeasonAttackLog, APICapitalRaidSeasonDefenseLog, APICapitalRaidSeasonMember, OverrideOptions } from '../types';
4
+ export declare class CapitalRaidSeasonMember {
5
+ /** The player's tag. */
6
+ name: string;
7
+ /** The player's name. */
8
+ tag: string;
9
+ /** The number of attacks the player has made. */
10
+ attacks: number;
11
+ /** The number of attacks the player can make. */
12
+ attackLimit: number;
13
+ /** The number of bonus attacks the player can make. */
14
+ bonusAttackLimit: number;
15
+ /** The number of capital resources the player has looted. */
16
+ capitalResourcesLooted: number;
17
+ constructor(data: APICapitalRaidSeasonMember);
18
+ }
19
+ /** Represents a Capital Raid Season. */
20
+ export declare class CapitalRaidSeason {
21
+ private readonly client;
22
+ /** The state of the raid season. */
23
+ state: 'ongoing' | 'ended';
24
+ /** The start time of the raid season. */
25
+ startTime: Date;
26
+ /** The end time of the raid season. */
27
+ endTime: Date;
28
+ /** The total loot collected from the capital. */
29
+ capitalTotalLoot: number;
30
+ /** The number of raids completed. */
31
+ raidsCompleted: number;
32
+ /** The total number of attacks. */
33
+ totalAttacks: number;
34
+ /** The number of enemy districts destroyed. */
35
+ enemyDistrictsDestroyed: number;
36
+ /** The offensive reward. */
37
+ offensiveReward: number;
38
+ /** The defensive reward. */
39
+ defensiveReward: number;
40
+ /** The members of the raid season. */
41
+ members: APICapitalRaidSeasonMember[];
42
+ /** The attack log of the raid season. */
43
+ attackLog: APICapitalRaidSeasonAttackLog[];
44
+ /** The defense log of the raid season. */
45
+ defenseLog: APICapitalRaidSeasonDefenseLog[];
46
+ constructor(client: Client, data: APICapitalRaidSeason);
47
+ /** Get {@link Player} info for every Player in the clan. */
48
+ fetchMembers(options?: OverrideOptions): Promise<Player[]>;
49
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CapitalRaidSeason = exports.CapitalRaidSeasonMember = void 0;
4
+ const Util_1 = require("../util/Util");
5
+ class CapitalRaidSeasonMember {
6
+ constructor(data) {
7
+ this.tag = data.tag;
8
+ this.name = data.name;
9
+ this.attacks = data.attacks;
10
+ this.attackLimit = data.attackLimit;
11
+ this.bonusAttackLimit = data.bonusAttackLimit;
12
+ this.capitalResourcesLooted = data.capitalResourcesLooted;
13
+ }
14
+ }
15
+ exports.CapitalRaidSeasonMember = CapitalRaidSeasonMember;
16
+ /** Represents a Capital Raid Season. */
17
+ class CapitalRaidSeason {
18
+ constructor(client, data) {
19
+ this.client = client;
20
+ this.state = data.state;
21
+ this.startTime = Util_1.Util.formatDate(data.startTime);
22
+ this.endTime = Util_1.Util.formatDate(data.endTime);
23
+ this.capitalTotalLoot = data.capitalTotalLoot;
24
+ this.raidsCompleted = data.raidsCompleted;
25
+ this.totalAttacks = data.totalAttacks;
26
+ this.enemyDistrictsDestroyed = data.enemyDistrictsDestroyed;
27
+ this.offensiveReward = data.offensiveReward;
28
+ this.defensiveReward = data.defensiveReward;
29
+ this.attackLog = data.attackLog;
30
+ this.defenseLog = data.defenseLog;
31
+ this.members = (data.members ?? []).map((member) => new CapitalRaidSeasonMember(member));
32
+ }
33
+ /** Get {@link Player} info for every Player in the clan. */
34
+ async fetchMembers(options) {
35
+ return (await Promise.allSettled(this.members.map((m) => this.client.getPlayer(m.tag, { ...options, ignoreRateLimit: true }))))
36
+ .filter((res) => res.status === 'fulfilled')
37
+ .map((res) => res.value);
38
+ }
39
+ }
40
+ exports.CapitalRaidSeason = CapitalRaidSeason;
@@ -1,13 +1,13 @@
1
- import { APIClan, OverrideOptions } from '../types';
1
+ import { Badge } from './Badge';
2
2
  import { ChatLanguage } from './ChatLanguage';
3
+ import { ClanCapital } from './ClanCapital';
3
4
  import { ClanMember } from './ClanMember';
4
- import { Client } from '../client/Client';
5
- import { WarLeague } from './WarLeague';
6
- import type { Player } from './Player';
7
- import { Location } from './Location';
8
5
  import { Label } from './Label';
9
- import { Badge } from './Badge';
10
- import { ClanCapital } from './ClanCapital';
6
+ import { Location } from './Location';
7
+ import type { Player } from './Player';
8
+ import { WarLeague } from './WarLeague';
9
+ import { Client } from '../client/Client';
10
+ import { APIClan, OverrideOptions } from '../types';
11
11
  /** Represents a Clan. */
12
12
  export declare class Clan {
13
13
  client: Client;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Clan = void 0;
4
+ const Badge_1 = require("./Badge");
4
5
  const ChatLanguage_1 = require("./ChatLanguage");
6
+ const ClanCapital_1 = require("./ClanCapital");
5
7
  const ClanMember_1 = require("./ClanMember");
6
- const WarLeague_1 = require("./WarLeague");
7
- const Location_1 = require("./Location");
8
8
  const Label_1 = require("./Label");
9
- const Badge_1 = require("./Badge");
10
- const ClanCapital_1 = require("./ClanCapital");
9
+ const Location_1 = require("./Location");
10
+ const WarLeague_1 = require("./WarLeague");
11
11
  /** Represents a Clan. */
12
12
  class Clan {
13
13
  constructor(client, data) {
@@ -1,6 +1,6 @@
1
- import { APIClanMember, OverrideOptions } from '../types';
2
- import { Client } from '../client/Client';
3
1
  import { League } from './League';
2
+ import { Client } from '../client/Client';
3
+ import { APIClanMember, OverrideOptions } from '../types';
4
4
  export declare class ClanMember {
5
5
  client: Client;
6
6
  /** The member's name. */
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClanMember = void 0;
4
- const Constants_1 = require("../util/Constants");
5
4
  const League_1 = require("./League");
5
+ const Constants_1 = require("../util/Constants");
6
6
  class ClanMember {
7
7
  constructor(client, data) {
8
8
  this.client = client;
@@ -1,6 +1,6 @@
1
- import { APIClanWar, APIClanWarAttack, APIClanWarMember, APIWarClan } from '../types';
2
- import { Client } from '../client/Client';
3
1
  import { Badge } from './Badge';
2
+ import { Client } from '../client/Client';
3
+ import { APIClanWar, APIClanWarAttack, APIClanWarMember, APIWarClan } from '../types';
4
4
  /** Represents a Clash of Clans War Attack. */
5
5
  export declare class ClanWarAttack {
6
6
  /** The war this attack belongs to. */
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClanWar = exports.WarClan = exports.ClanWarMember = exports.ClanWarAttack = void 0;
4
- const Constants_1 = require("../util/Constants");
5
4
  const Badge_1 = require("./Badge");
5
+ const Constants_1 = require("../util/Constants");
6
6
  /** Represents a Clash of Clans War Attack. */
7
7
  class ClanWarAttack {
8
8
  constructor(clan, war, data) {
@@ -1,8 +1,8 @@
1
- import { APIClanWarLeagueClan, APIClanWarLeagueClanMember, APIClanWarLeagueGroup, APIClanWarLeagueRound, OverrideOptions } from '../types';
2
- import { Client } from '../client/Client';
1
+ import { Badge } from './Badge';
3
2
  import { ClanWar } from './ClanWar';
4
3
  import { Player } from './Player';
5
- import { Badge } from './Badge';
4
+ import { Client } from '../client/Client';
5
+ import { APIClanWarLeagueClan, APIClanWarLeagueClanMember, APIClanWarLeagueGroup, APIClanWarLeagueRound, OverrideOptions } from '../types';
6
6
  /** Represents a Clan War League member. */
7
7
  export declare class ClanWarLeagueClanMember {
8
8
  /** The member's name. */
@@ -1,6 +1,6 @@
1
- import { APIClanWarLogEntry, APIWarLogClan } from '../types';
2
- import { Client } from '../client/Client';
3
1
  import { Badge } from './Badge';
2
+ import { Client } from '../client/Client';
3
+ import { APIClanWarLogEntry, APIWarLogClan } from '../types';
4
4
  /**
5
5
  * Represents War Log Clan.
6
6
  *
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClanWarLog = exports.WarLogClan = void 0;
4
- const Util_1 = require("../util/Util");
5
4
  const Badge_1 = require("./Badge");
5
+ const Util_1 = require("../util/Util");
6
6
  /**
7
7
  * Represents War Log Clan.
8
8
  *
@@ -1,5 +1,5 @@
1
- import { APILabel } from '../types';
2
1
  import { Icon } from './Icon';
2
+ import { APILabel } from '../types';
3
3
  /** Represents a Clan or Player Label. */
4
4
  export declare class Label {
5
5
  /** The label's unique Id. */
@@ -1,5 +1,5 @@
1
- import { APILeague } from '../types';
2
1
  import { Icon } from './Icon';
2
+ import { APILeague } from '../types';
3
3
  /** Represents a Player's League. */
4
4
  export declare class League {
5
5
  /** The league Id. */
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.League = void 0;
4
- const Constants_1 = require("../util/Constants");
5
4
  const Icon_1 = require("./Icon");
5
+ const Constants_1 = require("../util/Constants");
6
6
  /** Represents a Player's League. */
7
7
  class League {
8
8
  constructor(data) {
@@ -1,5 +1,5 @@
1
- import { APILegendStatistics } from '../types';
2
1
  import { Season } from './Season';
2
+ import { APILegendStatistics } from '../types';
3
3
  /** Represents the Legend Statistics. */
4
4
  export declare class LegendStatistics {
5
5
  /** The player's legend trophies. */
@@ -1,11 +1,11 @@
1
- import { APIPlayer, OverrideOptions } from '../types';
2
- import { LegendStatistics } from './LegendStatistics';
3
1
  import { Achievement } from './Achievement';
4
- import { Hero, Spell, Troop } from './Unit';
2
+ import { Label } from './Label';
3
+ import { League } from './League';
4
+ import { LegendStatistics } from './LegendStatistics';
5
5
  import { PlayerClan } from './PlayerClan';
6
+ import { Hero, Spell, Troop } from './Unit';
6
7
  import { Client } from '../client/Client';
7
- import { League } from './League';
8
- import { Label } from './Label';
8
+ import { APIPlayer, OverrideOptions } from '../types';
9
9
  /** Represents a Clash of Clans Player. */
10
10
  export declare class Player {
11
11
  client: Client;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Player = void 0;
4
- const Constants_1 = require("../util/Constants");
5
- const LegendStatistics_1 = require("./LegendStatistics");
6
4
  const Achievement_1 = require("./Achievement");
7
- const Unit_1 = require("./Unit");
8
- const PlayerClan_1 = require("./PlayerClan");
9
- const League_1 = require("./League");
10
5
  const Label_1 = require("./Label");
6
+ const League_1 = require("./League");
7
+ const LegendStatistics_1 = require("./LegendStatistics");
8
+ const PlayerClan_1 = require("./PlayerClan");
9
+ const Unit_1 = require("./Unit");
10
+ const Constants_1 = require("../util/Constants");
11
11
  /** Represents a Clash of Clans Player. */
12
12
  class Player {
13
13
  constructor(client, data) {
@@ -1,6 +1,6 @@
1
- import { OverrideOptions, APIPlayerClan } from '../types';
2
- import { Client } from '../client/Client';
3
1
  import { Badge } from './Badge';
2
+ import { Client } from '../client/Client';
3
+ import { OverrideOptions, APIPlayerClan } from '../types';
4
4
  /** Represents a Player's clan. */
5
5
  export declare class PlayerClan {
6
6
  private readonly _client;
@@ -1,9 +1,9 @@
1
- import { APIClanRanking, APIClanVersusRanking, APIPlayerRanking, APIPlayerVersusRanking } from '../types';
1
+ import { Badge } from './Badge';
2
+ import { League } from './League';
3
+ import { Location } from './Location';
2
4
  import { PlayerClan } from './PlayerClan';
3
5
  import { Client } from '../client/Client';
4
- import { Location } from './Location';
5
- import { League } from './League';
6
- import { Badge } from './Badge';
6
+ import { APIClanRanking, APIClanVersusRanking, APIPlayerRanking, APIPlayerVersusRanking } from '../types';
7
7
  /** Represents the Player of seasonal legend league leader-board ranking. */
8
8
  export declare class SeasonRankedPlayer {
9
9
  /** The player's name. */
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RankedClan = exports.RankedPlayer = exports.SeasonRankedPlayer = void 0;
4
- const Constants_1 = require("../util/Constants");
5
- const PlayerClan_1 = require("./PlayerClan");
6
- const Location_1 = require("./Location");
7
- const League_1 = require("./League");
8
4
  const Badge_1 = require("./Badge");
5
+ const League_1 = require("./League");
6
+ const Location_1 = require("./Location");
7
+ const PlayerClan_1 = require("./PlayerClan");
8
+ const Constants_1 = require("../util/Constants");
9
9
  /** Represents the Player of seasonal legend league leader-board ranking. */
10
10
  class SeasonRankedPlayer {
11
11
  constructor(client, data) {
@@ -39,8 +39,6 @@ export declare class Unit {
39
39
  seasonal: boolean;
40
40
  /** Damage per second of this unit. */
41
41
  dps: number;
42
- /** Resource type of this unit. */
43
- resourceType: string;
44
42
  /** Training time of this unit. */
45
43
  trainingTime: number;
46
44
  /** @internal */
@@ -25,7 +25,6 @@ class Unit {
25
25
  this.unlockBuilding = original.unlock.building;
26
26
  this.unlockBuildingLevel = original.unlock.buildingLevel;
27
27
  this.dps = rawUnit.dps[this.level - 1];
28
- this.resourceType = rawSuperUnit.resource;
29
28
  this.trainingTime = rawUnit.trainingTime;
30
29
  const origin = data.troops.find((troop) => troop.village === 'home' && troop.name === original.name);
31
30
  this.level = origin.level;
@@ -49,7 +48,6 @@ class Unit {
49
48
  this.upgradeCost = rawUnit.upgrade.cost[this.level - 1] ?? 0;
50
49
  this.upgradeTime = rawUnit.upgrade.time[this.level - 1] ?? 0;
51
50
  this.dps = rawUnit.dps[this.level - 1];
52
- this.resourceType = rawUnit.resourceType;
53
51
  this.trainingTime = rawUnit.trainingTime;
54
52
  if (rawUnit.category === 'hero')
55
53
  this.regenerationTime = rawUnit.regenerationTimes[this.level - 1];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -169,6 +169,64 @@ export interface APIClanWarLeagueClanMember {
169
169
  export interface APIClanWarLeagueRound {
170
170
  warTags: string[];
171
171
  }
172
+ export interface APICapitalRaidSeason {
173
+ state: 'ongoing' | 'ended';
174
+ startTime: string;
175
+ endTime: string;
176
+ capitalTotalLoot: number;
177
+ raidsCompleted: number;
178
+ totalAttacks: number;
179
+ enemyDistrictsDestroyed: number;
180
+ offensiveReward: number;
181
+ defensiveReward: number;
182
+ members?: APICapitalRaidSeasonMember[];
183
+ attackLog: APICapitalRaidSeasonAttackLog[];
184
+ defenseLog: APICapitalRaidSeasonDefenseLog[];
185
+ }
186
+ export interface APICapitalRaidSeasonMember {
187
+ tag: string;
188
+ name: string;
189
+ attacks: number;
190
+ attackLimit: number;
191
+ bonusAttackLimit: number;
192
+ capitalResourcesLooted: number;
193
+ }
194
+ export interface APICapitalRaidSeasonClan {
195
+ tag: string;
196
+ name: string;
197
+ level: number;
198
+ badgeUrls: {
199
+ small: string;
200
+ large: string;
201
+ medium: string;
202
+ };
203
+ }
204
+ export interface APICapitalRaidSeasonDistrict {
205
+ id: number;
206
+ name: string;
207
+ districtHallLevel: number;
208
+ destructionPercent: number;
209
+ attackCount: number;
210
+ totalLooted: number;
211
+ }
212
+ export interface APICapitalRaidSeasonAttackLog {
213
+ defender: APICapitalRaidSeasonClan;
214
+ attackCount: number;
215
+ districtCount: number;
216
+ districtsDestroyed: number;
217
+ districts: APICapitalRaidSeasonDistrict[];
218
+ }
219
+ export interface APICapitalRaidSeasonDefenseLog {
220
+ attacker: APICapitalRaidSeasonClan;
221
+ attackCount: number;
222
+ districtCount: number;
223
+ districtsDestroyed: number;
224
+ districts: APICapitalRaidSeasonDistrict[];
225
+ }
226
+ export interface APICapitalRaidSeasons {
227
+ items: APICapitalRaidSeason[];
228
+ paging: APIPaging;
229
+ }
172
230
  /** /players/{playerTag} */
173
231
  export interface APIPlayer {
174
232
  name: string;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,9 +1,9 @@
1
1
  import { QueueThrottler, BatchThrottler } from '../rest/Throttler';
2
2
  export interface Store<T = any> {
3
- set(key: string, value: T, ttl?: number): boolean | Promise<boolean>;
4
- get(key: string): T | null | Promise<T | null>;
5
- delete(key: string): boolean | Promise<boolean>;
6
- clear(): void | Promise<void>;
3
+ set: (key: string, value: T, ttl?: number) => boolean | Promise<boolean>;
4
+ get: (key: string) => T | null | Promise<T | null>;
5
+ delete: (key: string) => boolean | Promise<boolean>;
6
+ clear: () => void | Promise<void>;
7
7
  }
8
8
  /** Options for a {@link Client} */
9
9
  export interface ClientOptions {
@@ -42,7 +42,33 @@ export declare const CWL_ROUNDS: {
42
42
  readonly NEXT_ROUND: "preparation";
43
43
  };
44
44
  export declare const RAW_DATA: {
45
- RAW_UNITS: {
45
+ RAW_UNITS: ({
46
+ id: number;
47
+ name: string;
48
+ housingSpace: number;
49
+ village: string;
50
+ category: string;
51
+ subCategory: string;
52
+ unlock: {
53
+ hall: number;
54
+ cost: number;
55
+ time: number;
56
+ resource: string;
57
+ building: string;
58
+ buildingLevel: number;
59
+ };
60
+ trainingTime: number;
61
+ regenerationTimes: number[];
62
+ dps: number[];
63
+ upgrade: {
64
+ cost: number[];
65
+ time: number[];
66
+ resource: string;
67
+ };
68
+ seasonal: boolean;
69
+ levels: number[];
70
+ resourceType?: undefined;
71
+ } | {
46
72
  id: number;
47
73
  name: string;
48
74
  housingSpace: number;
@@ -68,7 +94,7 @@ export declare const RAW_DATA: {
68
94
  };
69
95
  seasonal: boolean;
70
96
  levels: number[];
71
- }[];
97
+ })[];
72
98
  RAW_SUPER_UNITS: {
73
99
  name: string;
74
100
  id: number;
@@ -22,11 +22,20 @@ exports.ELIXIR_TROOPS = [
22
22
  'Miner',
23
23
  'Electro Dragon',
24
24
  'Yeti',
25
- 'Dragon Rider'
25
+ 'Dragon Rider',
26
+ 'Electro Titan'
26
27
  ];
27
28
  exports.DARK_ELIXIR_TROOPS = ['Minion', 'Hog Rider', 'Valkyrie', 'Golem', 'Witch', 'Lava Hound', 'Bowler', 'Ice Golem', 'Headhunter'];
28
29
  exports.HOME_TROOPS = [...exports.ELIXIR_TROOPS, ...exports.DARK_ELIXIR_TROOPS];
29
- exports.SIEGE_MACHINES = ['Wall Wrecker', 'Battle Blimp', 'Stone Slammer', 'Siege Barracks', 'Log Launcher', 'Flame Flinger'];
30
+ exports.SIEGE_MACHINES = [
31
+ 'Wall Wrecker',
32
+ 'Battle Blimp',
33
+ 'Stone Slammer',
34
+ 'Siege Barracks',
35
+ 'Log Launcher',
36
+ 'Flame Flinger',
37
+ 'Battle Drill'
38
+ ];
30
39
  exports.SUPER_TROOPS = [
31
40
  'Super Barbarian',
32
41
  'Super Archer',
@@ -50,7 +59,8 @@ exports.ELIXIR_SPELLS = [
50
59
  'Jump Spell',
51
60
  'Freeze Spell',
52
61
  'Clone Spell',
53
- 'Invisibility Spell'
62
+ 'Invisibility Spell',
63
+ 'Recall Spell'
54
64
  ];
55
65
  exports.DARK_ELIXIR_SPELLS = ['Poison Spell', 'Earthquake Spell', 'Haste Spell', 'Skeleton Spell', 'Bat Spell'];
56
66
  exports.SPELLS = [...exports.ELIXIR_SPELLS, ...exports.DARK_ELIXIR_SPELLS];
package/dist/util/Util.js CHANGED
@@ -114,8 +114,8 @@ class Util extends null {
114
114
  }
115
115
  /** Parse in-game army link into troops and spells count with respective Id's. */
116
116
  static parseArmyLink(link) {
117
- const unitsMatches = link.match(/u(?<units>[\d+x-]+)/);
118
- const spellsMatches = link.match(/s(?<spells>[\d+x-]+)/);
117
+ const unitsMatches = /u(?<units>[\d+x-]+)/.exec(link);
118
+ const spellsMatches = /s(?<spells>[\d+x-]+)/.exec(link);
119
119
  const unitsPart = unitsMatches?.groups?.unit?.split('-') ?? [];
120
120
  const spellParts = spellsMatches?.groups?.spells?.split('-') ?? [];
121
121
  const units = unitsPart
@@ -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 }, "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, 55, 62, 70, 78], "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": [155, 170], "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, 85, 90], "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": [45, 50, 55, 60], "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 }] }
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 }, "trainingTime": 5, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30, 34, 38, 42, 45], "upgrade": { "cost": [20000, 60000, 200000, 650000, 1400000, 2100000, 2800000, 5600000, 14000000, 16000000], "time": [7200, 18000, 43200, 86400, 129600, 216000, 259200, 604800, 1123200, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11] }, { "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 }, "trainingTime": 6, "regenerationTimes": [], "dps": [7, 9, 12, 16, 20, 22, 25, 28, 31, 34, 37], "upgrade": { "cost": [30000, 80000, 300000, 800000, 2000000, 2500000, 3200000, 6300000, 14500000, 16000000], "time": [10800, 21600, 43200, 86400, 129600, 216000, 302400, 604800, 1123200, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11] }, { "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 }, "trainingTime": 7, "regenerationTimes": [], "dps": [11, 14, 19, 24, 32, 42, 52, 62], "upgrade": { "cost": [45000, 175000, 500000, 1200000, 2000000, 3000000, 6300000], "time": [18000, 32400, 43200, 86400, 129600, 302400, 691200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 8, 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 }, "trainingTime": 30, "regenerationTimes": [], "dps": [11, 14, 19, 24, 31, 43, 55, 62, 70, 78, 86], "upgrade": { "cost": [40000, 150000, 500000, 1200000, 2000000, 3000000, 3500000, 6300000, 10000000, 16500000], "time": [14400, 28800, 43200, 86400, 172800, 302400, 475200, 777600, 972000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11] }, { "id": 4, "name": "Wall Breaker", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 20000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "trainingTime": 15, "regenerationTimes": [], "dps": [6, 10, 15, 20, 43, 55, 66, 75, 86, 94, 102], "upgrade": { "cost": [100000, 250000, 600000, 1200000, 2500000, 4200000, 7300000, 10000000, 15200000, 16500000], "time": [21600, 43200, 64800, 86400, 183600, 302400, 604800, 950400, 1296000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10, 11] }, { "id": 5, "name": "Balloon", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 120000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "trainingTime": 30, "regenerationTimes": [], "dps": [25, 32, 48, 72, 108, 162, 198, 236, 256, 276], "upgrade": { "cost": [125000, 400000, 800000, 1500000, 2750000, 4500000, 7700000, 10500000, 17000000], "time": [28800, 43200, 64800, 86400, 302400, 453600, 820800, 1036800, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10, 10] }, { "id": 6, "name": "Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 30, "regenerationTimes": [], "dps": [50, 70, 90, 125, 170, 185, 200, 215, 230, 245, 260], "upgrade": { "cost": [120000, 320000, 620000, 1200000, 2200000, 3500000, 5000000, 6500000, 10500000, 17200000], "time": [28800, 43200, 64800, 86400, 172800, 302400, 453600, 756000, 950400, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11] }, { "id": 7, "name": "Healer", "housingSpace": 14, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 800000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 8 }, "trainingTime": 120, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [450000, 900000, 2700000, 4200000, 9800000, 16000000], "time": [43200, 86400, 172800, 604800, 907200, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 6, 7, 7] }, { "id": 8, "name": "Dragon", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 1200000, "time": 129600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "trainingTime": 180, "regenerationTimes": [], "dps": [140, 160, 180, 210, 240, 270, 310, 330, 350], "upgrade": { "cost": [1000000, 2000000, 3000000, 3800000, 4900000, 7000000, 11000000, 17500000], "time": [64800, 129600, 259200, 453600, 475200, 864000, 1036800, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 9] }, { "id": 9, "name": "P.E.K.K.A", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1700000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 10 }, "trainingTime": 180, "regenerationTimes": [], "dps": [260, 290, 320, 360, 410, 470, 540, 610, 680], "upgrade": { "cost": [1200000, 1800000, 2800000, 3200000, 4200000, 5200000, 7700000, 10500000], "time": [43200, 86400, 172800, 302400, 410400, 518400, 864000, 972000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 4, 6, 7, 8, 9, 9, 9] }, { "id": 10, "name": "Minion", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 200000, "time": 28800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "trainingTime": 18, "regenerationTimes": [], "dps": [38, 41, 44, 47, 50, 54, 58, 62, 66, 70, 74], "upgrade": { "cost": [3000, 7000, 15000, 25000, 35000, 63000, 105000, 188000, 285000, 310000], "time": [28800, 57600, 86400, 172800, 302400, 432000, 842400, 993600, 1339200, 1425600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11] }, { "id": 11, "name": "Hog Rider", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 600000, "time": 86400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 2 }, "trainingTime": 45, "regenerationTimes": [], "dps": [60, 70, 80, 92, 105, 118, 135, 148, 161, 174, 187], "upgrade": { "cost": [5000, 9000, 16000, 30000, 43000, 70000, 105000, 168000, 210000, 305000], "time": [36000, 72000, 108000, 172800, 302400, 453600, 691200, 842400, 1036800, 1404000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 9, 10, 11, 11] }, { "id": 12, "name": "Valkyrie", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1000000, "time": 129600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "trainingTime": 90, "regenerationTimes": [], "dps": [94, 106, 119, 133, 148, 163, 178, 193, 208], "upgrade": { "cost": [8000, 12000, 25000, 38000, 63000, 123000, 195000, 295000], "time": [86400, 172800, 259200, 367200, 453600, 669600, 1036800, 1404000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9, 9] }, { "id": 13, "name": "Golem", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1600000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 4 }, "trainingTime": 300, "regenerationTimes": [], "dps": [35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90], "upgrade": { "cost": [10000, 20000, 30000, 43000, 53000, 77000, 112000, 140000, 200000, 300000, 330000], "time": [108000, 216000, 324000, 367200, 432000, 475200, 626400, 842400, 1036800, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 7, 9, 10, 11, 12] }, { "id": 15, "name": "Witch", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 302400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "trainingTime": 120, "regenerationTimes": [], "dps": [100, 110, 140, 160, 180, 200], "upgrade": { "cost": [50000, 68000, 90000, 140000, 340000], "time": [345600, 410400, 583200, 864000, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5, 6] }, { "id": 17, "name": "Lava Hound", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2900000, "time": 388800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "trainingTime": 300, "regenerationTimes": [], "dps": [10, 12, 14, 16, 18, 20], "upgrade": { "cost": [35000, 50000, 85000, 135000, 200000], "time": [216000, 367200, 540000, 864000, 1036800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6, 6] }, { "id": 22, "name": "Bowler", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 4000000, "time": 561600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "trainingTime": 60, "regenerationTimes": [], "dps": [60, 70, 80, 90, 96, 102], "upgrade": { "cost": [65000, 88000, 140000, 210000, 305000], "time": [302400, 432000, 734400, 950400, 1447200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6] }, { "id": 23, "name": "Baby Dragon", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2600000, "time": 345600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "trainingTime": 90, "regenerationTimes": [], "dps": [75, 85, 95, 105, 115, 125, 135, 145], "upgrade": { "cost": [2000000, 2500000, 3400000, 4200000, 6300000, 9000000, 16000000], "time": [172800, 302400, 432000, 540000, 712800, 907200, 1360800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 8] }, { "id": 24, "name": "Miner", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3700000, "time": 475200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 12 }, "trainingTime": 30, "regenerationTimes": [], "dps": [80, 88, 96, 104, 112, 120, 128, 136, 144], "upgrade": { "cost": [2500000, 3200000, 3800000, 5000000, 6500000, 10000000, 16500000, 18500000], "time": [187200, 302400, 345600, 604800, 777600, 1015200, 1382400, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8, 9] }, { "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 }, "trainingTime": 25, "regenerationTimes": [], "dps": [180, 200, 220, 240], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] }, { "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 }, "trainingTime": 72, "regenerationTimes": [], "dps": [120, 132, 144, 156], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] }, { "id": 28, "name": "Super Wall Breaker", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 20000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "trainingTime": 60, "regenerationTimes": [], "dps": [78, 100, 120, 130, 140], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5] }, { "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 }, "trainingTime": 60, "regenerationTimes": [], "dps": [130, 140, 150], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 30, "name": "Ice Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 30, "regenerationTimes": [], "dps": [40, 56, 72, 100, 136, 148, 160, 172, 184, 196], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 0, "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 }, "trainingTime": 30, "regenerationTimes": [], "dps": [6000], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 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": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 37, "regenerationTimes": [], "dps": [200, 280, 360, 440, 520, 600, 680], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6, 7, 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 }, "trainingTime": 5, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 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 }, "trainingTime": 30, "regenerationTimes": [], "dps": [22, 28, 38, 48, 62, 86, 100, 114, 128, 142, 156], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11] }, { "id": 51, "name": "Wall Wrecker", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 3500000, "time": 367200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 1 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [250, 300, 350, 400], "upgrade": { "cost": [4200000, 5600000, 10500000], "time": [475200, 604800, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4] }, { "id": 52, "name": "Battle Blimp", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 5500000, "time": 475200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 2 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [100, 140, 180, 220], "upgrade": { "cost": [4200000, 5600000, 10500000], "time": [475200, 604800, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4] }, { "id": 53, "name": "Yeti", "housingSpace": 18, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 9000000, "time": 864000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 14 }, "trainingTime": 180, "regenerationTimes": [], "dps": [230, 250, 270, 290], "upgrade": { "cost": [7700000, 11200000, 17100000], "time": [648000, 1036800, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 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 }, "trainingTime": 21, "regenerationTimes": [], "dps": [155, 170], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 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": 120000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "trainingTime": 48, "regenerationTimes": [], "dps": [236, 256, 276], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 3, 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": 7500000, "time": 691200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 8 }, "trainingTime": 150, "regenerationTimes": [], "dps": [24, 28, 32, 36, 40, 44], "upgrade": { "cost": [55000, 85000, 110000, 140000, 305000], "time": [244800, 432000, 626400, 820800, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6, 6] }, { "id": 59, "name": "Electro Dragon", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 6500000, "time": 648000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 13 }, "trainingTime": 360, "regenerationTimes": [], "dps": [240, 270, 300, 330, 360, 390], "upgrade": { "cost": [6300000, 7700000, 12000000, 18000000, 20000000], "time": [475200, 842400, 1036800, 1468800, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6] }, { "id": 61, "name": "Skeleton Barrel", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 120000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "trainingTime": 30, "regenerationTimes": [], "dps": [75, 96, 144, 216, 324, 486, 594, 708, 768], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9, 9] }, { "id": 62, "name": "Stone Slammer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 7500000, "time": 604800, "resource": "Elixir", "building": "Workshop", "buildingLevel": 3 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [400, 500, 600, 700], "upgrade": { "cost": [4200000, 5600000, 10500000], "time": [475200, 604800, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4, 4] }, { "id": 63, "name": "Inferno Dragon", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2600000, "time": 345600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "trainingTime": 135, "regenerationTimes": [], "dps": [75, 79, 83], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3] }, { "id": 64, "name": "Super Valkyrie", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1000000, "time": 129600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "trainingTime": 225, "regenerationTimes": [], "dps": [250, 300, 325], "upgrade": { "cost": [], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 65, "name": "Dragon Rider", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 13, "cost": 12500000, "time": 1123200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 15 }, "trainingTime": 250, "regenerationTimes": [], "dps": [340, 370, 400], "upgrade": { "cost": [12000000, 16500000], "time": [972000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3] }, { "id": 66, "name": "Super Witch", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 302400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "trainingTime": 400, "regenerationTimes": [], "dps": [360, 390], "upgrade": { "cost": [75000], "time": [518400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2] }, { "id": 67, "name": "El Primo", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 60, "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, 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 }, "trainingTime": 0, "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": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 30, "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, 10] }, { "id": 75, "name": "Siege Barracks", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 11000000, "time": 907200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 4 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [5600000, 7700000, 10500000], "time": [604800, 842400, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4] }, { "id": 76, "name": "Ice Hound", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2900000, "time": 388800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "trainingTime": 400, "regenerationTimes": [], "dps": [10, 15], "upgrade": { "cost": [], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2] }, { "id": 80, "name": "Super Bowler", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 4000000, "time": 561600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "trainingTime": 300, "regenerationTimes": [], "dps": [170, 185, 200], "upgrade": { "cost": [], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3] }, { "id": 81, "name": "Super Dragon", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 1200000, "time": 129600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "trainingTime": 360, "regenerationTimes": [], "dps": [80, 85, 90], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 82, "name": "Headhunter", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 10000000, "time": 907200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 9 }, "trainingTime": 60, "regenerationTimes": [], "dps": [105, 115, 125], "upgrade": { "cost": [125000, 180000], "time": [842400, 1036800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3] }, { "id": 83, "name": "Super Wizard", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 270000, "time": 64800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "trainingTime": 75, "regenerationTimes": [], "dps": [220, 240, 260], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 84, "name": "Super Minion", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 200000, "time": 28800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "trainingTime": 108, "regenerationTimes": [], "dps": [300, 325, 350, 360], "upgrade": { "cost": [], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4] }, { "id": 87, "name": "Log Launcher", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 12000000, "time": 1036800, "resource": "Elixir", "building": "Workshop", "buildingLevel": 5 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [140, 160, 180, 200], "upgrade": { "cost": [6000000, 8200000, 10500000], "time": [648000, 907200, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4] }, { "id": 91, "name": "Flame Flinger", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 14, "cost": 16500000, "time": 1468800, "resource": "Elixir", "building": "Workshop", "buildingLevel": 6 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [45, 50, 55, 60], "upgrade": { "cost": [7600000, 10500000, 13300000], "time": [820800, 1166400, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 92, "name": "Battle Drill", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 15, "cost": 19000000, "time": 1555200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 7 }, "trainingTime": 1200, "regenerationTimes": [], "dps": [430, 470, 510, 550], "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, 0, 4] }, { "id": 95, "name": "Electro Titan", "housingSpace": 32, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 14, "cost": 15000000, "time": 1382400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 16 }, "trainingTime": 360, "regenerationTimes": [], "dps": [180, 200, 220], "upgrade": { "cost": [19500000, 20500000], "time": [1512000, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3] }, { "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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [50000, 100000, 200000, 600000, 1500000, 2500000, 4200000, 7000000, 16000000], "time": [14400, 28800, 43200, 86400, 345600, 518400, 626400, 777600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 4, 4, 4, 5, 6, 7, 8, 9, 9, 9, 10] }, { "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 }, "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [75000, 150000, 300000, 900000, 1800000, 3000000, 10500000, 17000000], "time": [18000, 36000, 72000, 129600, 345600, 518400, 1036800, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 7, 7, 8, 8, 9] }, { "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 }, "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [400000, 800000, 1600000, 2400000, 7700000], "time": [43200, 86400, 172800, 345600, 691200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 4, 5, 5, 5, 5, 6, 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 }, "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2000000, 3400000, 9000000, 16500000], "time": [345600, 518400, 972000, 1425600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4, 5] }, { "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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [1200000, 1700000, 3000000, 4200000, 6000000, 7700000], "time": [129600, 223200, 367200, 518400, 669600, 712800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 6, 7, 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 }, "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, 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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [12000, 25000, 43000, 70000, 123000, 195000, 285000, 320000], "time": [28800, 86400, 223200, 540000, 669600, 1015200, 1447200, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9] }, { "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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [15000, 30000, 51000, 84000], "time": [64800, 129600, 367200, 669600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [20000, 34000, 60000, 77000], "time": [129600, 223200, 432000, 669600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 5, 5, 5, 5] }, { "id": 16, "name": "Clone Spell", "housingSpace": 3, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2000000, "time": 367200, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 5 }, "trainingTime": 540, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2100000, 3400000, 4200000, 5600000, 9000000, 15500000], "time": [151200, 302400, 345600, 604800, 972000, 1360800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6, 7, 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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [22000, 34000, 50000, 87000, 105000, 187000, 345000], "time": [115200, 223200, 367200, 518400, 626400, 972000, 1598400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 4, 6, 7, 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 }, "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, 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 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [26000, 51000, 70000, 105000, 330000], "time": [151200, 302400, 453600, 540000, 1555200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 5, 5, 6] }, { "id": 35, "name": "Invisibility Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 11, "cost": 3500000, "time": 432000, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 6 }, "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [5600000, 8400000, 11300000], "time": [475200, 691200, 1015200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4, 4] }, { "id": 53, "name": "Recall Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 13, "cost": 9000000, "time": 777600, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 7 }, "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [7500000, 14000000, 17500000], "time": [993600, 1339200, 1512000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 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 }, "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, 2520, 2520, 2520, 2520, 2640], "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, 603, 611, 619, 627, 635], "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, 60000, 62000, 64000, 66000, 68000, 70000, 73000, 76000, 80000, 85000, 89000, 94000, 98000, 103000, 109000, 114000, 119000, 125000, 130000, 135000, 140000, 146000, 151000, 158000, 165000, 172000, 180000, 187000, 193000, 200000, 206000, 211000, 216000, 225000, 234000, 243000, 252000, 261000, 267000, 270000, 279000, 284000, 289000, 300000, 305000, 310000, 315000, 320000, 330000, 335000, 340000, 345000, 350000], "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, 410400, 410400, 410400, 410400, 410400, 475200, 475200, 475200, 475200, 475200, 496800, 496800, 496800, 496800, 496800, 496800, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 583200, 583200, 583200, 583200, 626400, 626400, 626400, 626400, 626400, 626400, 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, 85] }, { "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 }, "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, 2520, 2520, 2520, 2520, 2640], "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, 844, 848, 852, 856, 860], "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, 65000, 67000, 69000, 72000, 74000, 77000, 79000, 82000, 84000, 89000, 93000, 97000, 101000, 106000, 111000, 116000, 122000, 127000, 132000, 138000, 143000, 148000, 154000, 159000, 166000, 172000, 179000, 186000, 192000, 198000, 203000, 208000, 213000, 219000, 228000, 237000, 246000, 255000, 266000, 269000, 278000, 283000, 288000, 297000, 302000, 308000, 314000, 319000, 325000, 334000, 338000, 342000, 346000, 350000], "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, 410400, 410400, 410400, 410400, 410400, 475200, 475200, 475200, 475200, 475200, 496800, 496800, 496800, 496800, 496800, 496800, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 583200, 583200, 583200, 583200, 626400, 626400, 626400, 626400, 626400, 626400, 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, 85] }, { "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 }, "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, 2520, 2520, 2520, 2520, 2640], "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, 322, 325, 328, 331, 334], "upgrade": { "cost": [1100000, 1400000, 1600000, 1800000, 2000000, 2200000, 2500000, 2700000, 3100000, 3600000, 4000000, 4400000, 4900000, 5300000, 5700000, 6200000, 6600000, 7100000, 7900000, 8800000, 8900000, 9000000, 9100000, 9200000, 9300000, 9400000, 9500000, 9600000, 9700000, 9800000, 9900000, 10000000, 10100000, 10200000, 10300000, 10400000, 10500000, 10600000, 10700000, 10800000, 11200000, 11600000, 12000000, 12400000, 12800000, 13200000, 13600000, 14300000, 15500000, 16600000, 17100000, 17600000, 18100000, 18600000, 19200000, 19400000, 19600000, 19800000, 20000000], "time": [7200, 14400, 28800, 43200, 57600, 79200, 100800, 115200, 158400, 194400, 237600, 324000, 388800, 475200, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 540000, 583200, 583200, 583200, 583200, 583200, 626400, 626400, 626400, 626400, 626400, 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, 60] }, { "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 }, "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, 2520, 2520, 2520, 2520, 2640], "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, 584, 588, 592, 596, 600], "upgrade": { "cost": [73000, 89000, 105000, 122000, 140000, 158000, 170000, 182000, 192000, 202000, 211000, 216000, 222000, 228000, 234000, 239000, 245000, 251000, 257000, 262000, 267000, 272000, 277000, 282000, 295000, 300000, 305000, 310000, 315000, 325000, 330000, 335000, 340000, 345000], "time": [28800, 57600, 79200, 158400, 237600, 280800, 324000, 367200, 388800, 432000, 475200, 518400, 561600, 561600, 583200, 583200, 583200, 583200, 583200, 626400, 626400, 626400, 626400, 626400, 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, 35] }, { "id": 0, "name": "L.A.S.S.I", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 14000000, "time": 1058400, "resource": "Elixir", "building": "Pet House", "buildingLevel": 1 }, "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, 10] }, { "id": 1, "name": "Mighty Yak", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 17500000, "time": 1382400, "resource": "Elixir", "building": "Pet House", "buildingLevel": 3 }, "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, 10] }, { "id": 2, "name": "Electro Owl", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 16500000, "time": 1231200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 2 }, "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, 10] }, { "id": 3, "name": "Unicorn", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 18500000, "time": 1555200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 4 }, "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, 10] }, { "id": 4, "name": "Phoenix", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 15, "cost": 20500000, "time": 1706400, "resource": "Elixir", "building": "Pet House", "buildingLevel": 8 }, "trainingTime": 0, "regenerationTimes": [], "dps": [178, 186, 194, 202, 210, 218, 226, 234, 242, 250], "upgrade": { "cost": [230000, 240000, 250000, 260000, 270000, 280000, 290000, 300000, 310000], "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, 0, 10] }, { "id": 7, "name": "Poison Lizard", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 15, "cost": 20250000, "time": 1684800, "resource": "Elixir", "building": "Pet House", "buildingLevel": 7 }, "trainingTime": 0, "regenerationTimes": [], "dps": [181, 192, 203, 214, 225, 236, 247, 258, 269, 280], "upgrade": { "cost": [225000, 235000, 245000, 255000, 265000, 275000, 285000, 295000, 305000], "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, 0, 10] }, { "id": 8, "name": "Diggy", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 15, "cost": 20000000, "time": 1663200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 6 }, "trainingTime": 0, "regenerationTimes": [], "dps": [105, 110, 115, 120, 125, 130, 135, 140, 145, 150], "upgrade": { "cost": [220000, 230000, 240000, 250000, 260000, 270000, 280000, 290000, 300000], "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, 0, 10] }, { "id": 9, "name": "Frosty", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 15, "cost": 19750000, "time": 1641600, "resource": "Elixir", "building": "Pet House", "buildingLevel": 5 }, "trainingTime": 0, "regenerationTimes": [], "dps": [94, 98, 102, 106, 110, 114, 118, 122, 126, 130], "upgrade": { "cost": [215000, 225000, 235000, 245000, 255000, 265000, 275000, 285000, 295000], "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, 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.8.4",
3
+ "version": "2.9.1",
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",
@@ -57,7 +57,10 @@
57
57
  ],
58
58
  "@typescript-eslint/naming-convention": 0,
59
59
  "@typescript-eslint/no-floating-promises": 0,
60
- "@typescript-eslint/no-misused-promises": 0
60
+ "@typescript-eslint/no-misused-promises": 0,
61
+ "@typescript-eslint/no-unsafe-assignment": 0,
62
+ "@typescript-eslint/no-unsafe-call": 0,
63
+ "@typescript-eslint/no-unsafe-member-access": 0
61
64
  }
62
65
  },
63
66
  "prettier": {
@@ -107,6 +110,7 @@
107
110
  "eslint": "^8.3.0",
108
111
  "eslint-config-marine": "^9.0.6",
109
112
  "eslint-config-prettier": "^8.3.0",
113
+ "eslint-plugin-import": "^2.26.0",
110
114
  "eslint-plugin-prettier": "^4.0.0",
111
115
  "gen-esm-wrapper": "^1.1.3",
112
116
  "prettier": "^2.4.1",