clashofclans.js 2.2.0 → 2.4.0-dev.0d3fbc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -2
- package/LICENSE +1 -2
- package/dist/rest/HTTPError.d.ts +1 -1
- package/dist/rest/RESTManager.d.ts +2 -2
- package/dist/rest/RESTManager.js +8 -8
- package/dist/rest/RequestHandler.d.ts +10 -2
- package/dist/rest/RequestHandler.js +8 -5
- package/dist/struct/Badge.d.ts +8 -7
- package/dist/struct/Badge.js +9 -15
- package/dist/struct/ClanWar.d.ts +8 -1
- package/dist/struct/ClanWar.js +15 -2
- package/dist/struct/Icon.d.ts +9 -8
- package/dist/struct/Icon.js +9 -15
- package/dist/struct/Unit.d.ts +12 -2
- package/dist/struct/Unit.js +11 -3
- package/dist/util/Util.d.ts +6 -5
- package/dist/util/Util.js +10 -9
- package/dist/util/raw.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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.4.0 (2021-12-28)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- `ClanWar.getClanWarLeague`, `ClanWar.isCWL` and `ClanWar.isFriendly` are now available. ([#87](https://github.com/clashperk/clashofclans.js/pull/87))
|
|
10
|
+
- `RESTOptions.rejectIfNotValid` added to perform `res.ok` operations over `RESTManager` class. ([#87](https://github.com/clashperk/clashofclans.js/pull/87))
|
|
11
|
+
- `Icon.fileName` and `Icon.sizes` are now available in `Icon` class. ([#87](https://github.com/clashperk/clashofclans.js/pull/87))
|
|
12
|
+
- `Badge.fileName` and `Badge.sizes` are now available in `Badge` class. ([#87](https://github.com/clashperk/clashofclans.js/pull/87))
|
|
13
|
+
|
|
14
|
+
### Deprecations
|
|
15
|
+
|
|
16
|
+
- `ClanWarMember.previousBestOpponentAttack` has been deprecated. Use `ClanWarAttack.previousBestAttack` instead. ([#87](https://github.com/clashperk/clashofclans.js/pull/87))
|
|
17
|
+
|
|
18
|
+
## 2.3.0 (2021-12-17)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- BigInt literals issue fixed. ([#84](https://github.com/clashperk/clashofclans.js/pull/84))
|
|
23
|
+
- Some Utility methods renamed. ([#84](https://github.com/clashperk/clashofclans.js/pull/84))
|
|
24
|
+
- `Util.encodeTag()` to `Util.encodeURI()`
|
|
25
|
+
- `Util.encodeTagToId()` to `Util.encodeTag()`
|
|
26
|
+
- `Util.decodeIdToTag()` to `Util.decodeTag()`
|
|
27
|
+
- Added `dps`, `resourceType`, `trainingTime` and `regenerationTime` to the `Unit` class. ([#85](https://github.com/clashperk/clashofclans.js/pull/85))
|
|
28
|
+
|
|
5
29
|
## 2.2.0 (2021-12-16)
|
|
6
30
|
|
|
7
31
|
### Bug Fixes
|
|
@@ -27,8 +51,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
27
51
|
- `Util.formatTag(tag: string): string`
|
|
28
52
|
- `Util.formatDate(date: string): Date`
|
|
29
53
|
- `Util.isValidTag(tag: string): boolean`
|
|
30
|
-
- `Util.encodeTagToId(tag: string): string`
|
|
31
|
-
- `Util.decodeIdToTag(id: string): string`
|
|
54
|
+
- `Util.encodeTagToId(tag: string): string` (Removed on 2.3.0)
|
|
55
|
+
- `Util.decodeIdToTag(id: string): string` (Removed on 2.3.0)
|
|
32
56
|
|
|
33
57
|
- Support of async/await for custom events ([#79](https://github.com/clashperk/clashofclans.js/pull/79)) ([ff41115](https://github.com/clashperk/clashofclans.js/commit/a23db3786bcca44b8547c70f27773bdb1216f990))
|
|
34
58
|
|
package/LICENSE
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020 - 2021
|
|
4
|
-
Copyright (c) 2020 - 2021 TheLearneer
|
|
3
|
+
Copyright (c) 2020 - 2021 ClashPerk
|
|
5
4
|
|
|
6
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/rest/HTTPError.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare class HTTPError extends Error {
|
|
|
8
8
|
* The reason of this errored request.
|
|
9
9
|
*
|
|
10
10
|
* Expected values are `notFound`, `notInWar`, `accessDenied`, `accessDenied.invalidIp`, `privateWarLog`,
|
|
11
|
-
* `badRequest`, `requestThrottled`, `
|
|
11
|
+
* `badRequest`, `requestThrottled`, `inMaintenance`, `requestAborted` and `unknownException`.
|
|
12
12
|
*/
|
|
13
13
|
reason: string;
|
|
14
14
|
/** The HTTP status code of this request. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RequestHandler, SearchOptions, ClanSearchOptions,
|
|
1
|
+
import { RequestHandler, SearchOptions, ClanSearchOptions, RESTOptions, OverrideOptions } from './RequestHandler';
|
|
2
2
|
import { APIClan, APIClanList, APIClanMemberList, APIClanRankingList, APIClanVersusRankingList, APIClanWar, APIClanWarLeagueGroup, APIClanWarLog, APIGoldPassSeason, APILabelList, APILeague, APILeagueList, APILeagueSeasonList, APILocation, APILocationList, APIPlayer, APIPlayerRankingList, APIPlayerSeasonRankingList, APIPlayerVersusRankingList, APIVerifyToken, APIWarLeague, APIWarLeagueList } from '../types';
|
|
3
3
|
/** Represents a REST Manager of the client. */
|
|
4
4
|
export declare class RESTManager {
|
|
5
5
|
/** Request Handler for the RESTManager. */
|
|
6
6
|
readonly handler: RequestHandler;
|
|
7
|
-
constructor(options?:
|
|
7
|
+
constructor(options?: RESTOptions);
|
|
8
8
|
/** Search all clans by name and/or filtering the results using various criteria. */
|
|
9
9
|
getClans(query: ClanSearchOptions, options?: OverrideOptions): Promise<import("./RequestHandler").Response<APIClanList>>;
|
|
10
10
|
/** Get info about a clan. */
|
package/dist/rest/RESTManager.js
CHANGED
|
@@ -14,38 +14,38 @@ class RESTManager {
|
|
|
14
14
|
}
|
|
15
15
|
/** Get info about a clan. */
|
|
16
16
|
getClan(clanTag, options) {
|
|
17
|
-
return this.handler.request(`/clans/${Util_1.Util.
|
|
17
|
+
return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}`, options);
|
|
18
18
|
}
|
|
19
19
|
/** Get list of clan members. */
|
|
20
20
|
getClanMembers(clanTag, options) {
|
|
21
21
|
const query = Util_1.Util.queryString(options);
|
|
22
|
-
return this.handler.request(`/clans/${Util_1.Util.
|
|
22
|
+
return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/members?${query}`, options);
|
|
23
23
|
}
|
|
24
24
|
/** Get clan war log. */
|
|
25
25
|
getClanWarLog(clanTag, options) {
|
|
26
26
|
const query = Util_1.Util.queryString(options);
|
|
27
|
-
return this.handler.request(`/clans/${Util_1.Util.
|
|
27
|
+
return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/warlog?${query}`, options);
|
|
28
28
|
}
|
|
29
29
|
/** Get info about currently running war in the clan. */
|
|
30
30
|
getCurrentWar(clanTag, options) {
|
|
31
|
-
return this.handler.request(`/clans/${Util_1.Util.
|
|
31
|
+
return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/currentwar`, options);
|
|
32
32
|
}
|
|
33
33
|
/** Get info about clan war league. */
|
|
34
34
|
getClanWarLeagueGroup(clanTag, options) {
|
|
35
|
-
return this.handler.request(`/clans/${Util_1.Util.
|
|
35
|
+
return this.handler.request(`/clans/${Util_1.Util.encodeURI(clanTag)}/currentwar/leaguegroup`, options);
|
|
36
36
|
}
|
|
37
37
|
/** Get info about a CWL round by WarTag. */
|
|
38
38
|
getClanWarLeagueRound(warTag, options) {
|
|
39
|
-
return this.handler.request(`/clanwarleagues/wars/${Util_1.Util.
|
|
39
|
+
return this.handler.request(`/clanwarleagues/wars/${Util_1.Util.encodeURI(warTag)}`, options);
|
|
40
40
|
}
|
|
41
41
|
/** Get info about a player by tag. */
|
|
42
42
|
getPlayer(playerTag, options) {
|
|
43
|
-
return this.handler.request(`/players/${Util_1.Util.
|
|
43
|
+
return this.handler.request(`/players/${Util_1.Util.encodeURI(playerTag)}`, options);
|
|
44
44
|
}
|
|
45
45
|
/** Verify Player API token that can be found from the Game settings. */
|
|
46
46
|
verifyPlayerToken(playerTag, token, options) {
|
|
47
47
|
const opts = { method: 'POST', body: JSON.stringify({ token }), ...options };
|
|
48
|
-
return this.handler.request(`/players/${Util_1.Util.
|
|
48
|
+
return this.handler.request(`/players/${Util_1.Util.encodeURI(playerTag)}/verifytoken`, opts);
|
|
49
49
|
}
|
|
50
50
|
/** Get list of Leagues. */
|
|
51
51
|
getLeagues(options) {
|
|
@@ -10,11 +10,12 @@ export declare class RequestHandler {
|
|
|
10
10
|
private keyDescription?;
|
|
11
11
|
private keys;
|
|
12
12
|
private readonly baseURL;
|
|
13
|
+
private readonly rejectIfNotValid;
|
|
13
14
|
private readonly retryLimit;
|
|
14
15
|
private readonly restRequestTimeout;
|
|
15
16
|
private readonly throttler?;
|
|
16
17
|
private readonly cached;
|
|
17
|
-
constructor(options?:
|
|
18
|
+
constructor(options?: RESTOptions);
|
|
18
19
|
private get _keys();
|
|
19
20
|
private get _key();
|
|
20
21
|
setKeys(keys: string[]): this;
|
|
@@ -28,7 +29,7 @@ export declare class RequestHandler {
|
|
|
28
29
|
private createKey;
|
|
29
30
|
private getIp;
|
|
30
31
|
}
|
|
31
|
-
/** Options for a
|
|
32
|
+
/** Options for a Client. */
|
|
32
33
|
export interface ClientOptions {
|
|
33
34
|
/** Keys from Clash of Clans API developer site. */
|
|
34
35
|
keys?: string[];
|
|
@@ -61,6 +62,11 @@ export interface ClientOptions {
|
|
|
61
62
|
*/
|
|
62
63
|
throttler?: QueueThrottler | BatchThrottler;
|
|
63
64
|
}
|
|
65
|
+
/** Options for a RESTManager. */
|
|
66
|
+
export interface RESTOptions extends ClientOptions {
|
|
67
|
+
/** Set this `false` to use `res.ok` property. */
|
|
68
|
+
rejectIfNotValid?: boolean;
|
|
69
|
+
}
|
|
64
70
|
/** Search options for request. */
|
|
65
71
|
export interface SearchOptions extends OverrideOptions {
|
|
66
72
|
/** Limit the number of items returned in the response. */
|
|
@@ -98,6 +104,8 @@ export interface RequestOptions extends OverrideOptions {
|
|
|
98
104
|
method?: string;
|
|
99
105
|
}
|
|
100
106
|
export interface Response<T> {
|
|
107
|
+
/** Whether the response is ok. */
|
|
108
|
+
ok: boolean;
|
|
101
109
|
/** The response body. */
|
|
102
110
|
data: T;
|
|
103
111
|
/** Path of the request for this response. */
|
|
@@ -32,6 +32,7 @@ class RequestHandler {
|
|
|
32
32
|
this.throttler = options?.throttler ?? null;
|
|
33
33
|
this.baseURL = options?.baseURL ?? Constants_1.API_BASE_URL;
|
|
34
34
|
this.restRequestTimeout = options?.restRequestTimeout ?? 0;
|
|
35
|
+
this.rejectIfNotValid = options?.rejectIfNotValid ?? true;
|
|
35
36
|
if (options?.cache instanceof keyv_1.default)
|
|
36
37
|
this.cached = options.cache;
|
|
37
38
|
else
|
|
@@ -52,7 +53,7 @@ class RequestHandler {
|
|
|
52
53
|
async request(path, options = {}) {
|
|
53
54
|
const cached = (await this.cached?.get(path)) ?? null;
|
|
54
55
|
if (cached && options.force !== true) {
|
|
55
|
-
return { data: cached.data, maxAge: cached.ttl - Date.now(), status:
|
|
56
|
+
return { data: cached.data, maxAge: cached.ttl - Date.now(), status: cached.status, path, ok: cached.status === 200 };
|
|
56
57
|
}
|
|
57
58
|
if (!this.throttler || options.ignoreRateLimit)
|
|
58
59
|
return this.exec(path, options);
|
|
@@ -81,14 +82,16 @@ class RequestHandler {
|
|
|
81
82
|
return this.exec(path, options, ++retries);
|
|
82
83
|
}
|
|
83
84
|
const maxAge = Number(res?.headers.get('cache-control')?.split('=')?.[1] ?? 0) * 1000;
|
|
84
|
-
if (res?.status === 403 && !data?.message)
|
|
85
|
+
if (res?.status === 403 && !data?.message && this.rejectIfNotValid) {
|
|
85
86
|
throw new HTTPError_1.HTTPError(HTTPError_1.PrivateWarLogError, res.status, path, maxAge);
|
|
86
|
-
|
|
87
|
+
}
|
|
88
|
+
if (!res?.ok && this.rejectIfNotValid) {
|
|
87
89
|
throw new HTTPError_1.HTTPError(data, res?.status ?? 504, path, maxAge, options.method);
|
|
90
|
+
}
|
|
88
91
|
if (this.cached && maxAge > 0 && options.cache !== false) {
|
|
89
|
-
await this.cached.set(path, { data, ttl: Date.now() + maxAge }, maxAge);
|
|
92
|
+
await this.cached.set(path, { data, ttl: Date.now() + maxAge, status: res?.status ?? 504 }, maxAge);
|
|
90
93
|
}
|
|
91
|
-
return { data, maxAge, status: res
|
|
94
|
+
return { data, maxAge, status: res?.status ?? 504, path, ok: res?.status === 200 };
|
|
92
95
|
}
|
|
93
96
|
async init(options) {
|
|
94
97
|
if (!(options.email && options.password))
|
package/dist/struct/Badge.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { APIBadge } from '../types';
|
|
2
2
|
/** Represents a Clash of Clans Badge. */
|
|
3
3
|
export declare class Badge {
|
|
4
|
-
private readonly _data;
|
|
5
4
|
/** The default badge URL. */
|
|
6
5
|
url: string;
|
|
7
|
-
constructor(data: APIBadge);
|
|
8
6
|
/** The large badge URL. */
|
|
9
|
-
|
|
7
|
+
large: string;
|
|
10
8
|
/** The medium badge URL. */
|
|
11
|
-
|
|
9
|
+
medium: string;
|
|
12
10
|
/** The small badge URL. */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
small: string;
|
|
12
|
+
constructor(data: APIBadge);
|
|
13
|
+
/** Get unique file name of this Badge. */
|
|
14
|
+
get fileName(): string;
|
|
15
|
+
/** Sizes of this Badge. */
|
|
16
|
+
get sizes(): string[];
|
|
16
17
|
}
|
package/dist/struct/Badge.js
CHANGED
|
@@ -4,24 +4,18 @@ exports.Badge = void 0;
|
|
|
4
4
|
/** Represents a Clash of Clans Badge. */
|
|
5
5
|
class Badge {
|
|
6
6
|
constructor(data) {
|
|
7
|
-
Object.defineProperty(this, '_data', { value: data });
|
|
8
7
|
this.url = data.large;
|
|
8
|
+
Object.defineProperty(this, 'large', { value: data.large });
|
|
9
|
+
Object.defineProperty(this, 'medium', { value: data.medium });
|
|
10
|
+
Object.defineProperty(this, 'small', { value: data.small });
|
|
9
11
|
}
|
|
10
|
-
/**
|
|
11
|
-
get
|
|
12
|
-
return this._data.large;
|
|
13
|
-
}
|
|
14
|
-
/** The medium badge URL. */
|
|
15
|
-
get medium() {
|
|
16
|
-
return this._data.medium;
|
|
17
|
-
}
|
|
18
|
-
/** The small badge URL. */
|
|
19
|
-
get small() {
|
|
20
|
-
return this._data.small;
|
|
21
|
-
}
|
|
22
|
-
/** Get unique hash of this Badge. */
|
|
23
|
-
get hash() {
|
|
12
|
+
/** Get unique file name of this Badge. */
|
|
13
|
+
get fileName() {
|
|
24
14
|
return this.url.split('/').pop();
|
|
25
15
|
}
|
|
16
|
+
/** Sizes of this Badge. */
|
|
17
|
+
get sizes() {
|
|
18
|
+
return [this.large, this.medium, this.small].map((url) => /\/(\d+)\//g.exec(url)[1]);
|
|
19
|
+
}
|
|
26
20
|
}
|
|
27
21
|
exports.Badge = Badge;
|
package/dist/struct/ClanWar.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export declare class ClanWarMember {
|
|
|
61
61
|
/**
|
|
62
62
|
* Returns the previous best opponent attack on this village.
|
|
63
63
|
* This is useful for calculating the new stars or destruction for new attacks.
|
|
64
|
+
*
|
|
65
|
+
* @deprecated `order` is affecting this method. Use {@link ClanWarAttack#previousBestAttack} instead.
|
|
64
66
|
*/
|
|
65
67
|
previousBestOpponentAttack(): ClanWarAttack | null;
|
|
66
68
|
}
|
|
@@ -131,7 +133,12 @@ export declare class ClanWar {
|
|
|
131
133
|
getDefenses(defenderTag: string): ClanWarAttack[];
|
|
132
134
|
/** Returns either `friendly`, `cwl` or `normal`. */
|
|
133
135
|
get type(): "friendly" | "cwl" | "normal";
|
|
134
|
-
|
|
136
|
+
/** Whether this is a friendly war. */
|
|
137
|
+
get isFriendly(): boolean;
|
|
138
|
+
/** Whether this is a CWL. */
|
|
139
|
+
get isCWL(): boolean;
|
|
135
140
|
/** Returns the war status, based off the home clan. */
|
|
136
141
|
get status(): "win" | "lose" | "tie" | "pending";
|
|
142
|
+
/** Returns the Clan War League Group. */
|
|
143
|
+
getClanWarLeagueGroup(): Promise<import("./ClanWarLeagueGroup").ClanWarLeagueGroup> | null;
|
|
137
144
|
}
|
package/dist/struct/ClanWar.js
CHANGED
|
@@ -75,6 +75,8 @@ class ClanWarMember {
|
|
|
75
75
|
/**
|
|
76
76
|
* Returns the previous best opponent attack on this village.
|
|
77
77
|
* This is useful for calculating the new stars or destruction for new attacks.
|
|
78
|
+
*
|
|
79
|
+
* @deprecated `order` is affecting this method. Use {@link ClanWarAttack#previousBestAttack} instead.
|
|
78
80
|
*/
|
|
79
81
|
previousBestOpponentAttack() {
|
|
80
82
|
return (
|
|
@@ -170,16 +172,21 @@ class ClanWar {
|
|
|
170
172
|
}
|
|
171
173
|
/** Returns either `friendly`, `cwl` or `normal`. */
|
|
172
174
|
get type() {
|
|
173
|
-
if (this.
|
|
175
|
+
if (this.isFriendly)
|
|
174
176
|
return 'friendly';
|
|
175
177
|
if (this.warTag)
|
|
176
178
|
return 'cwl';
|
|
177
179
|
return 'normal';
|
|
178
180
|
}
|
|
179
|
-
|
|
181
|
+
/** Whether this is a friendly war. */
|
|
182
|
+
get isFriendly() {
|
|
180
183
|
const preparationTime = this.startTime.getTime() - this.preparationStartTime.getTime();
|
|
181
184
|
return Constants_1.FRIENDLY_WAR_PREPARATION_TIMES.includes(preparationTime);
|
|
182
185
|
}
|
|
186
|
+
/** Whether this is a CWL. */
|
|
187
|
+
get isCWL() {
|
|
188
|
+
return typeof this.warTag === 'string';
|
|
189
|
+
}
|
|
183
190
|
/** Returns the war status, based off the home clan. */
|
|
184
191
|
get status() {
|
|
185
192
|
if (this.state === 'preparation')
|
|
@@ -194,5 +201,11 @@ class ClanWar {
|
|
|
194
201
|
}
|
|
195
202
|
return 'lose';
|
|
196
203
|
}
|
|
204
|
+
/** Returns the Clan War League Group. */
|
|
205
|
+
getClanWarLeagueGroup() {
|
|
206
|
+
if (!this.isCWL)
|
|
207
|
+
return null;
|
|
208
|
+
return this.client.getClanWarLeagueGroup(this.clan.tag);
|
|
209
|
+
}
|
|
197
210
|
}
|
|
198
211
|
exports.ClanWar = ClanWar;
|
package/dist/struct/Icon.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { APIIcon } from '../types';
|
|
2
2
|
/** Represents a Clash of Clans Icon. */
|
|
3
3
|
export declare class Icon {
|
|
4
|
-
private readonly _data;
|
|
5
4
|
/** The default icon URL. */
|
|
6
5
|
url: string;
|
|
7
|
-
constructor(data: APIIcon);
|
|
8
6
|
/** The medium icon URL. */
|
|
9
|
-
|
|
10
|
-
/** The tiny icon URL. */
|
|
11
|
-
get tiny(): string;
|
|
7
|
+
medium: string;
|
|
12
8
|
/** The small icon URL. */
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
|
|
9
|
+
small: string;
|
|
10
|
+
/** The tiny icon URL. */
|
|
11
|
+
tiny: string;
|
|
12
|
+
constructor(data: APIIcon);
|
|
13
|
+
/** Get unique file name of this Icon. */
|
|
14
|
+
get fileName(): string;
|
|
15
|
+
/** Sizes of this Icon. */
|
|
16
|
+
get sizes(): string[];
|
|
16
17
|
}
|
package/dist/struct/Icon.js
CHANGED
|
@@ -4,24 +4,18 @@ exports.Icon = void 0;
|
|
|
4
4
|
/** Represents a Clash of Clans Icon. */
|
|
5
5
|
class Icon {
|
|
6
6
|
constructor(data) {
|
|
7
|
-
Object.defineProperty(this, '_data', { value: data });
|
|
8
7
|
this.url = data.medium ?? data.small;
|
|
8
|
+
Object.defineProperty(this, 'medium', { value: data.medium ?? data.small });
|
|
9
|
+
Object.defineProperty(this, 'tiny', { value: data.tiny ?? data.small });
|
|
10
|
+
Object.defineProperty(this, 'small', { value: data.small });
|
|
9
11
|
}
|
|
10
|
-
/**
|
|
11
|
-
get
|
|
12
|
-
return this._data.medium ?? this._data.small;
|
|
13
|
-
}
|
|
14
|
-
/** The tiny icon URL. */
|
|
15
|
-
get tiny() {
|
|
16
|
-
return this._data.tiny ?? this._data.small;
|
|
17
|
-
}
|
|
18
|
-
/** The small icon URL. */
|
|
19
|
-
get small() {
|
|
20
|
-
return this._data.small;
|
|
21
|
-
}
|
|
22
|
-
/** Get unique hash of this Badge. */
|
|
23
|
-
get hash() {
|
|
12
|
+
/** Get unique file name of this Icon. */
|
|
13
|
+
get fileName() {
|
|
24
14
|
return this.url.split('/').pop();
|
|
25
15
|
}
|
|
16
|
+
/** Sizes of this Icon. */
|
|
17
|
+
get sizes() {
|
|
18
|
+
return [this.medium, this.small, this.tiny].map((url) => /\/(\d+)\//g.exec(url)[1]);
|
|
19
|
+
}
|
|
26
20
|
}
|
|
27
21
|
exports.Icon = Icon;
|
package/dist/struct/Unit.d.ts
CHANGED
|
@@ -37,6 +37,14 @@ export declare class Unit {
|
|
|
37
37
|
upgradeTime: number;
|
|
38
38
|
/** Whether the unit is seasonal. */
|
|
39
39
|
seasonal: boolean;
|
|
40
|
+
/** Damage per second of this unit. */
|
|
41
|
+
dps: number;
|
|
42
|
+
/** Resource type of this unit. */
|
|
43
|
+
resourceType: string;
|
|
44
|
+
/** Training time of this unit. */
|
|
45
|
+
trainingTime: number;
|
|
46
|
+
/** @internal */
|
|
47
|
+
regenerationTime: number | null;
|
|
40
48
|
/** @internal */
|
|
41
49
|
boostable: boolean | null;
|
|
42
50
|
/** @internal */
|
|
@@ -68,9 +76,11 @@ export declare class Troop extends Unit {
|
|
|
68
76
|
/** Whether this troop is a Super Troop. */
|
|
69
77
|
get isSuperTroop(): boolean;
|
|
70
78
|
}
|
|
71
|
-
/** Represents a
|
|
79
|
+
/** Represents a Player's Spell. */
|
|
72
80
|
export declare class Spell extends Unit {
|
|
73
81
|
}
|
|
74
|
-
/** Represents a
|
|
82
|
+
/** Represents a Player's Hero. */
|
|
75
83
|
export declare class Hero extends Unit {
|
|
84
|
+
/** Regeneration time of this hero. */
|
|
85
|
+
regenerationTime: number;
|
|
76
86
|
}
|
package/dist/struct/Unit.js
CHANGED
|
@@ -25,6 +25,9 @@ class Unit {
|
|
|
25
25
|
this.unlockResource = original.unlock.resource;
|
|
26
26
|
this.unlockBuilding = original.unlock.building;
|
|
27
27
|
this.unlockBuildingLevel = original.unlock.buildingLevel;
|
|
28
|
+
this.dps = rawUnit.dps[this.level - 1];
|
|
29
|
+
this.resourceType = rawSuperUnit.resource;
|
|
30
|
+
this.trainingTime = rawUnit.trainingTime;
|
|
28
31
|
const origin = data.troops.find((troop) => troop.village === 'home' && troop.name === original.name);
|
|
29
32
|
this.level = origin.level;
|
|
30
33
|
this.maxLevel = origin.maxLevel;
|
|
@@ -34,7 +37,7 @@ class Unit {
|
|
|
34
37
|
this.upgradeTime = original.upgrade.time[origin.level - 1] ?? 0;
|
|
35
38
|
this.hallMaxLevel = original.levels[data.townHallLevel - 1];
|
|
36
39
|
}
|
|
37
|
-
if (rawUnit) {
|
|
40
|
+
else if (rawUnit) {
|
|
38
41
|
this.id = rawUnit.id;
|
|
39
42
|
this.housingSpace = rawUnit.housingSpace;
|
|
40
43
|
this.unlockCost = rawUnit.unlock.cost;
|
|
@@ -46,6 +49,11 @@ class Unit {
|
|
|
46
49
|
this.upgradeResource = rawUnit.upgrade.resource;
|
|
47
50
|
this.upgradeCost = rawUnit.upgrade.cost[this.level - 1] ?? 0;
|
|
48
51
|
this.upgradeTime = rawUnit.upgrade.time[this.level - 1] ?? 0;
|
|
52
|
+
this.dps = rawUnit.dps[this.level - 1];
|
|
53
|
+
this.resourceType = rawUnit.resourceType;
|
|
54
|
+
this.trainingTime = rawUnit.trainingTime;
|
|
55
|
+
if (rawUnit.category === 'hero')
|
|
56
|
+
this.regenerationTime = rawUnit.regenerationTimes[this.level - 1];
|
|
49
57
|
this.hallMaxLevel = rawUnit.levels[(this.village === 'home' ? data.townHallLevel : data.builderHallLevel) - 1];
|
|
50
58
|
}
|
|
51
59
|
this.seasonal = Boolean(rawUnit?.seasonal);
|
|
@@ -84,11 +92,11 @@ class Troop extends Unit {
|
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
exports.Troop = Troop;
|
|
87
|
-
/** Represents a
|
|
95
|
+
/** Represents a Player's Spell. */
|
|
88
96
|
class Spell extends Unit {
|
|
89
97
|
}
|
|
90
98
|
exports.Spell = Spell;
|
|
91
|
-
/** Represents a
|
|
99
|
+
/** Represents a Player's Hero. */
|
|
92
100
|
class Hero extends Unit {
|
|
93
101
|
}
|
|
94
102
|
exports.Hero = Hero;
|
package/dist/util/Util.d.ts
CHANGED
|
@@ -10,22 +10,23 @@ export declare class Util extends null {
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
static parseTag(tag: string): string;
|
|
12
12
|
/** Encodes a tag as a valid component of a URI. */
|
|
13
|
-
static
|
|
13
|
+
static encodeURI(tag: string): string;
|
|
14
|
+
/** Verify a tag using RegExp. (`/^#?[0289PYLQGRJCUV]$/`) */
|
|
14
15
|
static isValidTag(tag: string): boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Encode tag string into 64bit unsigned integer string.
|
|
17
18
|
* ```ts
|
|
18
|
-
* Util.
|
|
19
|
+
* Util.encodeTag('#PCCVQQG0'); // '510915076'
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
|
-
static
|
|
22
|
+
static encodeTag(tag: string): string;
|
|
22
23
|
/**
|
|
23
24
|
* Decode 64bit unsigned integer string into tag string with hash.
|
|
24
25
|
* ```ts
|
|
25
|
-
* Util.
|
|
26
|
+
* Util.decodeTag('510915076'); // '#PCCVQQG0'
|
|
26
27
|
* ```
|
|
27
28
|
*/
|
|
28
|
-
static
|
|
29
|
+
static decodeTag(id: string): string;
|
|
29
30
|
/** Converts API Date to JavaScript Date. */
|
|
30
31
|
static formatDate(date: string): Date;
|
|
31
32
|
/** Returns a string containing a query string suitable for use in a URL. */
|
package/dist/util/Util.js
CHANGED
|
@@ -18,38 +18,39 @@ class Util extends null {
|
|
|
18
18
|
return `#${tag.toUpperCase().replace(/O/g, '0').replace(/^#/g, '').replace(/\s/g, '')}`;
|
|
19
19
|
}
|
|
20
20
|
/** Encodes a tag as a valid component of a URI. */
|
|
21
|
-
static
|
|
21
|
+
static encodeURI(tag) {
|
|
22
22
|
return encodeURIComponent(this.formatTag(tag));
|
|
23
23
|
}
|
|
24
|
+
/** Verify a tag using RegExp. (`/^#?[0289PYLQGRJCUV]$/`) */
|
|
24
25
|
static isValidTag(tag) {
|
|
25
26
|
return /^#?[0289PYLQGRJCUV]{3,}$/.test(tag);
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Encode tag string into 64bit unsigned integer string.
|
|
29
30
|
* ```ts
|
|
30
|
-
* Util.
|
|
31
|
+
* Util.encodeTag('#PCCVQQG0'); // '510915076'
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
static
|
|
34
|
+
static encodeTag(tag) {
|
|
34
35
|
const formatted = this.formatTag(tag).substring(1);
|
|
35
36
|
if (!this.isValidTag(formatted)) {
|
|
36
37
|
throw new Error(`Failed to encode tag ${formatted}. RegExp matching failed.`);
|
|
37
38
|
}
|
|
38
|
-
const result = formatted.split('').reduce((sum, char) => sum *
|
|
39
|
+
const result = formatted.split('').reduce((sum, char) => sum * BigInt(14) + BigInt(TAG_CHARACTERS.indexOf(char)), BigInt(0));
|
|
39
40
|
return result.toString();
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* Decode 64bit unsigned integer string into tag string with hash.
|
|
43
44
|
* ```ts
|
|
44
|
-
* Util.
|
|
45
|
+
* Util.decodeTag('510915076'); // '#PCCVQQG0'
|
|
45
46
|
* ```
|
|
46
47
|
*/
|
|
47
|
-
static
|
|
48
|
+
static decodeTag(id) {
|
|
48
49
|
let [bigint, tag] = [BigInt(id), ''];
|
|
49
|
-
while (bigint !==
|
|
50
|
-
const index = Number(bigint %
|
|
50
|
+
while (bigint !== BigInt(0)) {
|
|
51
|
+
const index = Number(bigint % BigInt(14));
|
|
51
52
|
tag = TAG_CHARACTERS[index] + tag;
|
|
52
|
-
bigint /=
|
|
53
|
+
bigint /= BigInt(14);
|
|
53
54
|
}
|
|
54
55
|
return `#${tag}`;
|
|
55
56
|
}
|
package/dist/util/raw.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "RAW_UNITS": [{ "id": 0, "name": "Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "upgrade": { "cost": [20000, 60000, 200000, 650000, 1400000, 2500000, 4000000, 8000000, 15000000], "time": [7200, 18000, 43200, 86400, 129600, 259200, 388800, 864000, 1209600], "resource": "Elixir" }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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": 30, "name": "Ice Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 5000000, 7000000, 9000000, 11000000, 15000000], "time": [43200, 129600, 172800, 259200, 432000, 518400, 864000, 1209600, 1296000], "resource": "Elixir" }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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": 58, "name": "Ice Golem", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 777600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 8 }, "upgrade": { "cost": [80000, 120000, 160000, 200000, 320000], "time": [345600, 604800, 907200, 1209600, 1468800], "resource": "Dark Elixir" }, "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 }, "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 }, "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 }, "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": 65, "name": "Dragon Rider", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 13, "cost": 6000000, "time": 950400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 15 }, "upgrade": { "cost": [16000000, 17500000], "time": [1296000, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3] }, { "id": 67, "name": "El Primo", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "upgrade": { "cost": [120000], "time": [734400], "resource": "Dark Elixir" }, "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 }, "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 }, "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 }, "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": 82, "name": "Headhunter", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 7500000, "time": 1123200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 9 }, "upgrade": { "cost": [180000, 240000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3] }, { "id": 87, "name": "Log Launcher", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 16000000, "time": 1382400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 5 }, "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "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 }, "resourceType": "Elixir", "trainingTime": 20, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30, 34, 38, 42], "upgrade": { "cost": [20000, 60000, 200000, 650000, 1400000, 2500000, 4000000, 8000000, 15000000], "time": [7200, 18000, 43200, 86400, 129600, 259200, 388800, 864000, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 1, "name": "Archer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 500, "time": 60, "resource": "Elixir", "building": "Barracks", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 24, "regenerationTimes": [], "dps": [7, 9, 12, 16, 20, 22, 25, 28, 31, 34], "upgrade": { "cost": [30000, 80000, 300000, 800000, 2000000, 3000000, 4500000, 9000000, 15500000], "time": [10800, 21600, 43200, 86400, 129600, 259200, 432000, 907200, 1209600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 10] }, { "id": 2, "name": "Goblin", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 5000, "time": 3600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 28, "regenerationTimes": [], "dps": [11, 14, 19, 24, 32, 42, 52, 62], "upgrade": { "cost": [45000, 175000, 500000, 1200000, 2000000, 3500000, 9000000], "time": [18000, 32400, 43200, 86400, 129600, 345600, 1036800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 8, 8, 8] }, { "id": 3, "name": "Giant", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [11, 14, 19, 24, 31, 43, 50, 57, 64, 72], "upgrade": { "cost": [40000, 150000, 500000, 1200000, 2000000, 3500000, 5000000, 9000000, 13000000], "time": [14400, 28800, 43200, 86400, 172800, 345600, 691200, 1123200, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 4, "name": "Wall Breaker", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 14400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [6, 10, 15, 20, 43, 55, 66, 75, 86, 94], "upgrade": { "cost": [100000, 250000, 600000, 1200000, 3000000, 6000000, 10500000, 13000000, 16000000], "time": [21600, 43200, 64800, 86400, 216000, 432000, 864000, 1252800, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10] }, { "id": 5, "name": "Balloon", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [25, 32, 48, 72, 108, 162, 198, 236, 256, 276], "upgrade": { "cost": [125000, 400000, 800000, 1500000, 2750000, 6500000, 11000000, 14000000, 18000000], "time": [28800, 43200, 64800, 86400, 302400, 648000, 1166400, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10] }, { "id": 6, "name": "Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [50, 70, 90, 125, 170, 185, 200, 215, 230, 245], "upgrade": { "cost": [120000, 320000, 620000, 1200000, 2200000, 4200000, 7200000, 9200000, 14200000], "time": [28800, 43200, 64800, 86400, 172800, 345600, 648000, 1080000, 1252800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 7, "name": "Healer", "housingSpace": 14, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 600000, "time": 57600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 8 }, "resourceType": "Elixir", "trainingTime": 480, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [450000, 900000, 2700000, 6000000, 13000000, 17000000], "time": [43200, 86400, 172800, 864000, 1209600, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 6, 7] }, { "id": 8, "name": "Dragon", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [140, 160, 180, 210, 240, 270, 310, 330, 350], "upgrade": { "cost": [1000000, 2000000, 3000000, 4500000, 7000000, 10000000, 15000000, 18500000], "time": [64800, 129600, 259200, 518400, 691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9] }, { "id": 9, "name": "P.E.K.K.A", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1200000, "time": 129600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 10 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [260, 290, 320, 360, 410, 470, 540, 610, 680], "upgrade": { "cost": [1200000, 1800000, 2800000, 3800000, 5000000, 7500000, 11000000, 14000000], "time": [43200, 86400, 172800, 345600, 475200, 734400, 1209600, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 4, 6, 7, 8, 9, 9] }, { "id": 10, "name": "Minion", "housingSpace": 2, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 100000, "time": 14400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 36, "regenerationTimes": [], "dps": [38, 41, 44, 47, 50, 54, 58, 62, 66, 70], "upgrade": { "cost": [3000, 7000, 15000, 25000, 40000, 90000, 150000, 250000, 300000], "time": [28800, 57600, 86400, 172800, 345600, 604800, 1209600, 1339200, 1425600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9, 10] }, { "id": 11, "name": "Hog Rider", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 300000, "time": 43200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 90, "regenerationTimes": [], "dps": [60, 70, 80, 92, 105, 118, 135, 148, 161, 174, 187], "upgrade": { "cost": [5000, 9000, 16000, 30000, 50000, 100000, 150000, 240000, 280000, 320000], "time": [36000, 72000, 108000, 172800, 345600, 648000, 993600, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 9, 10, 11] }, { "id": 12, "name": "Valkyrie", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 500000, "time": 64800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [94, 106, 119, 133, 148, 163, 178, 193, 208], "upgrade": { "cost": [8000, 12000, 25000, 45000, 90000, 175000, 260000, 310000], "time": [86400, 172800, 259200, 432000, 648000, 950400, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8, 9] }, { "id": 13, "name": "Golem", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85], "upgrade": { "cost": [10000, 20000, 30000, 50000, 75000, 110000, 160000, 200000, 270000, 320000], "time": [108000, 216000, 324000, 432000, 604800, 691200, 907200, 1209600, 1382400, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 7, 9, 10, 11] }, { "id": 15, "name": "Witch", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1500000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [100, 110, 140, 160, 180], "upgrade": { "cost": [50000, 80000, 130000, 200000], "time": [345600, 475200, 820800, 1209600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5] }, { "id": 17, "name": "Lava Hound", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 259200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [10, 12, 14, 16, 18, 20], "upgrade": { "cost": [35000, 60000, 120000, 190000, 270000], "time": [216000, 432000, 777600, 1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6] }, { "id": 22, "name": "Bowler", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3000000, "time": 432000, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [60, 70, 80, 90, 96, 102], "upgrade": { "cost": [75000, 125000, 200000, 280000, 320000], "time": [345600, 604800, 1036800, 1252800, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6] }, { "id": 23, "name": "Baby Dragon", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1800000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [75, 85, 95, 105, 115, 125, 135, 145], "upgrade": { "cost": [2000000, 3000000, 4000000, 6000000, 9000000, 12000000, 17000000], "time": [172800, 345600, 518400, 777600, 1036800, 1209600, 1425600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 6, 7, 8] }, { "id": 24, "name": "Miner", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 2500000, "time": 345600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 12 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [80, 88, 96, 104, 112, 120, 128, 136], "upgrade": { "cost": [3000000, 4000000, 5000000, 7000000, 9500000, 13000000, 17500000], "time": [216000, 345600, 518400, 864000, 1123200, 1339200, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8] }, { "id": 26, "name": "Super Barbarian", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 100, "regenerationTimes": [], "dps": [180, 200, 220], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 27, "name": "Super Archer", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 500, "time": 60, "resource": "Elixir", "building": "Barracks", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 288, "regenerationTimes": [], "dps": [120, 132, 144], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 28, "name": "Super Wall Breaker", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 14400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [78, 100, 120, 130], "upgrade": { "cost": [80000], "time": [864000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4] }, { "id": 29, "name": "Super Giant", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 240, "regenerationTimes": [], "dps": [130, 140], "upgrade": { "cost": [80000], "time": [864000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 30, "name": "Ice Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [40, 56, 72, 100, 136, 148, 160, 172, 184, 196], "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 5000000, 7000000, 9000000, 11000000, 15000000], "time": [43200, 129600, 172800, 259200, 432000, 518400, 864000, 1209600, 1296000], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 31, "name": "Raged Barbarian", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 1000, "time": 0, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 1 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [50, 50, 55, 55, 61, 61, 67, 67, 74, 74, 81, 81, 89, 89, 98, 98, 108, 108], "upgrade": { "cost": [3500, 6000, 9000, 50000, 100000, 300000, 330000, 700000, 900000, 1000000, 1200000, 2000000, 2200000, 3000000, 3200000, 3800000, 4000000], "time": [300, 900, 10800, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [2, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 32, "name": "Sneaky Archer", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 4000, "time": 60, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 2 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [5000, 8000, 12000, 60000, 120000, 320000, 350000, 800000, 1000000, 1100000, 1300000, 2100000, 2300000, 3100000, 3300000, 3900000, 4100000], "time": [180, 600, 1800, 14400, 21600, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 4, 6, 8, 10, 12, 14, 16, 18] }, { "id": 33, "name": "Beta Minion", "housingSpace": 2, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 25000, "time": 1800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 4 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [50000, 80000, 120000, 250000, 280000, 320000, 360000, 900000, 1100000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [3600, 10800, 18000, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 34, "name": "Boxer Giant", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 3, "cost": 10000, "time": 600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 3 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 85], "upgrade": { "cost": [20000, 40000, 60000, 300000, 320000, 340000, 380000, 1000000, 1200000, 1300000, 1500000, 2300000, 2500000, 3300000, 3500000, 4000000, 4200000], "time": [1800, 3600, 7200, 28800, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 4, 8, 10, 12, 14, 16, 18] }, { "id": 35, "name": "Bomber", "housingSpace": 4, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 100000, "time": 10800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 5 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [36, 36, 40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77], "upgrade": { "cost": [150000, 200000, 250000, 280000, 320000, 340000, 360000, 900000, 1000000, 1200000, 1400000, 2200000, 2400000, 3200000, 3400000, 3900000, 4100000], "time": [10800, 18000, 28800, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 36, "name": "Super P.E.K.K.A", "housingSpace": 25, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 1500000, "time": 86400, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 10 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [305, 305, 336, 336, 369, 369, 406, 406, 447, 447, 491, 491, 540, 540, 594, 594, 653, 718], "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4600000, 4800000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 16, 18] }, { "id": 37, "name": "Cannon Cart", "housingSpace": 8, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 300000, "time": 28800, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 7 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [85, 85, 94, 94, 103, 120, 130, 130, 141, 141, 153, 153, 167, 184, 199, 216, 233, 251], "upgrade": { "cost": [400000, 500000, 600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 10, 12, 14, 16, 18] }, { "id": 38, "name": "Drop Ship", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 1000000, "time": 43200, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 9 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], "upgrade": { "cost": [1100000, 1200000, 1300000, 1400000, 1500000, 1600000, 1700000, 1800000, 2000000, 2200000, 2400000, 2600000, 2800000, 3600000, 3800000, 4300000, 4500000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 14, 16, 18] }, { "id": 41, "name": "Baby Dragon", "housingSpace": 10, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 150000, "time": 21600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 6 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [40, 40, 44, 44, 48, 48, 53, 53, 58, 58, 64, 64, 70, 70, 77, 77, 85, 85], "upgrade": { "cost": [200000, 240000, 280000, 320000, 360000, 380000, 400000, 1000000, 1200000, 1400000, 1600000, 2400000, 2600000, 3400000, 3600000, 4100000, 4300000], "time": [18000, 28800, 43200, 43200, 43200, 43200, 43200, 86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 8, 10, 12, 14, 16, 18] }, { "id": 42, "name": "Night Witch", "housingSpace": 12, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 6, "cost": 500000, "time": 36000, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 8 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [90, 90, 99, 99, 109, 109, 120, 120, 132, 132, 145, 145, 160, 160, 176, 176, 194, 213], "upgrade": { "cost": [600000, 700000, 800000, 900000, 1000000, 1100000, 1200000, 1300000, 1400000, 1600000, 1800000, 2500000, 2700000, 3500000, 3700000, 4200000, 4400000], "time": [43200, 43200, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 12, 14, 16, 18] }, { "id": 45, "name": "Battle Ram", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [6000], "upgrade": { "cost": [100000], "time": [86400], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 47, "name": "Royal Ghost", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 150, "regenerationTimes": [], "dps": [200, 280, 360, 440, 520, 600, 680], "upgrade": { "cost": [5000], "time": [86400], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6, 7, 7, 7] }, { "id": 48, "name": "Pumpkin Barbarian", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 1, "cost": 100, "time": 10, "resource": "Elixir", "building": "Barracks", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 20, "regenerationTimes": [], "dps": [8, 11, 14, 18, 23, 26, 30], "upgrade": { "cost": [50000, 150000, 500000, 1500000, 4500000, 6000000], "time": [21600, 86400, 259200, 432000, 864000, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 7, 7, 7, 7] }, { "id": 50, "name": "Giant Skeleton", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 2500, "time": 600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [22, 28, 38, 48, 62, 86, 100, 114], "upgrade": { "cost": [100000, 250000, 750000, 2250000, 5000000, 6000000, 9500000], "time": [86400, 172800, 259200, 432000, 864000, 1036800, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [0, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8] }, { "id": 51, "name": "Wall Wrecker", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 5000000, "time": 518400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 1 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [250, 300, 350, 400], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 52, "name": "Battle Blimp", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 8000000, "time": 691200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 2 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [100, 140, 180, 220], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 53, "name": "Yeti", "housingSpace": 18, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 5000000, "time": 777600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 14 }, "resourceType": "Elixir", "trainingTime": 720, "regenerationTimes": [], "dps": [230, 250, 270, 290], "upgrade": { "cost": [11000000, 15000000, 18000000], "time": [950400, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4] }, { "id": 55, "name": "Sneaky Goblin", "housingSpace": 3, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 2, "cost": 5000, "time": 3600, "resource": "Elixir", "building": "Barracks", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 84, "regenerationTimes": [], "dps": [160, 190], "upgrade": { "cost": [80000], "time": [43200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 57, "name": "Rocket Balloon", "housingSpace": 8, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 192, "regenerationTimes": [], "dps": [236, 256, 276], "upgrade": { "cost": [150000], "time": [43200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 58, "name": "Ice Golem", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 777600, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 8 }, "resourceType": "Dark Elixir", "trainingTime": 300, "regenerationTimes": [], "dps": [24, 28, 32, 36, 40, 44], "upgrade": { "cost": [80000, 120000, 160000, 200000, 320000], "time": [345600, 604800, 907200, 1209600, 1468800], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6] }, { "id": 59, "name": "Electro Dragon", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 11, "cost": 4000000, "time": 518400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 13 }, "resourceType": "Elixir", "trainingTime": 1440, "regenerationTimes": [], "dps": [240, 270, 300, 330, 360], "upgrade": { "cost": [9000000, 11000000, 16000000, 19000000], "time": [691200, 1209600, 1382400, 1555200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5] }, { "id": 61, "name": "Skeleton Barrel", "housingSpace": 5, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 4, "cost": 75000, "time": 28800, "resource": "Elixir", "building": "Barracks", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [75, 96, 144, 216, 324, 486, 594, 708, 768], "upgrade": { "cost": [150000, 450000, 1350000, 2500000, 6000000, 9500000, 12000000, 12000000], "time": [43200, 129600, 172800, 302400, 561600, 993600, 1209600, 1209600], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 2, 2, 3, 4, 5, 6, 6, 7, 8, 9, 9] }, { "id": 62, "name": "Stone Slammer", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 12, "cost": 10500000, "time": 864000, "resource": "Elixir", "building": "Workshop", "buildingLevel": 3 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [400, 500, 600, 700], "upgrade": { "cost": [6000000, 8000000, 14000000], "time": [691200, 864000, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 4] }, { "id": 63, "name": "Inferno Dragon", "housingSpace": 15, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1800000, "time": 216000, "resource": "Elixir", "building": "Barracks", "buildingLevel": 11 }, "resourceType": "Elixir", "trainingTime": 540, "regenerationTimes": [], "dps": [75, 79, 83], "upgrade": { "cost": [240000], "time": [1209600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3] }, { "id": 64, "name": "Super Valkyrie", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 8, "cost": 500000, "time": 64800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 450, "regenerationTimes": [], "dps": [250, 300, 325], "upgrade": { "cost": [40000], "time": [345600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3] }, { "id": 65, "name": "Dragon Rider", "housingSpace": 25, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 13, "cost": 6000000, "time": 950400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 15 }, "resourceType": "Elixir", "trainingTime": 1000, "regenerationTimes": [], "dps": [340, 370, 400], "upgrade": { "cost": [16000000, 17500000], "time": [1296000, 1468800], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3] }, { "id": 66, "name": "Super Witch", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 1500000, "time": 172800, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 800, "regenerationTimes": [], "dps": [360], "upgrade": { "cost": [75000], "time": [518400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1] }, { "id": 67, "name": "El Primo", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [120], "upgrade": { "cost": [120000], "time": [734400], "resource": "Dark Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 70, "name": "Hog Glider", "housingSpace": 5, "village": "builderBase", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2000000, "time": 129600, "resource": "Builder Elixir", "building": "Builder Barracks", "buildingLevel": 11 }, "resourceType": "Builder Elixir", "trainingTime": 60, "regenerationTimes": [], "dps": [700, 700, 700, 700, 700, 700, 700, 700, 700, 900, 900, 900, 900, 1100, 1100, 1100, 1100, 1100], "upgrade": { "cost": [1600000, 1700000, 1800000, 1900000, 2000000, 2200000, 2400000, 2600000, 2800000, 3000000, 3200000, 3400000, 3600000, 3800000, 4000000, 4200000, 4400000], "time": [86400, 86400, 172800, 172800, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 345600, 432000, 432000], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 18] }, { "id": 72, "name": "Party Wizard", "housingSpace": 4, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [75, 105, 135, 188, 255, 278, 300, 322, 345, 367], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10] }, { "id": 75, "name": "Siege Barracks", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 14500000, "time": 1209600, "resource": "Elixir", "building": "Workshop", "buildingLevel": 4 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 76, "name": "Ice Hound", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 9, "cost": 2200000, "time": 259200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 6 }, "resourceType": "Dark Elixir", "trainingTime": 800, "regenerationTimes": [], "dps": [10, 15], "upgrade": { "cost": [240000, 280000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2] }, { "id": 80, "name": "Super Bowler", "housingSpace": 30, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 10, "cost": 3000000, "time": 432000, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 7 }, "resourceType": "Dark Elixir", "trainingTime": 600, "regenerationTimes": [], "dps": [170, 185, 200], "upgrade": { "cost": [75000], "time": [], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3] }, { "id": 81, "name": "Super Dragon", "housingSpace": 40, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 900000, "time": 86400, "resource": "Elixir", "building": "Barracks", "buildingLevel": 9 }, "resourceType": "Elixir", "trainingTime": 1440, "regenerationTimes": [], "dps": [80, 87, 94], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 82, "name": "Headhunter", "housingSpace": 6, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 12, "cost": 7500000, "time": 1123200, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 9 }, "resourceType": "Dark Elixir", "trainingTime": 120, "regenerationTimes": [], "dps": [105, 115, 125], "upgrade": { "cost": [180000, 240000], "time": [1209600, 1382400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3] }, { "id": 83, "name": "Super Wizard", "housingSpace": 10, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 5, "cost": 200000, "time": 43200, "resource": "Elixir", "building": "Barracks", "buildingLevel": 7 }, "resourceType": "Elixir", "trainingTime": 300, "regenerationTimes": [], "dps": [220, 240], "upgrade": { "cost": [4000000], "time": [432000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] }, { "id": 84, "name": "Super Minion", "housingSpace": 12, "village": "home", "category": "troop", "subCategory": "troop", "unlock": { "hall": 7, "cost": 100000, "time": 14400, "resource": "Elixir", "building": "Dark Barracks", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 216, "regenerationTimes": [], "dps": [300, 325, 350], "upgrade": { "cost": [10000], "time": [259200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3] }, { "id": 87, "name": "Log Launcher", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 13, "cost": 16000000, "time": 1382400, "resource": "Elixir", "building": "Workshop", "buildingLevel": 5 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [140, 160, 180, 200], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4] }, { "id": 91, "name": "Flame Flinger", "housingSpace": 1, "village": "home", "category": "troop", "subCategory": "siege", "unlock": { "hall": 14, "cost": 17500000, "time": 1555200, "resource": "Elixir", "building": "Workshop", "buildingLevel": 6 }, "resourceType": "Gold", "trainingTime": 1200, "regenerationTimes": [], "dps": [135, 145, 155, 165], "upgrade": { "cost": [8000000, 11000000, 14000000], "time": [864000, 1209600, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4] }, { "id": 0, "name": "Lightning Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [50000, 100000, 200000, 600000, 1500000, 3000000, 6000000, 10000000], "time": [14400, 28800, 43200, 86400, 345600, 604800, 907200, 1123200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 4, 4, 4, 5, 6, 7, 8, 9, 9, 9] }, { "id": 1, "name": "Healing Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 6, "cost": 300000, "time": 86400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 2 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [75000, 150000, 300000, 900000, 1800000, 3600000, 14000000], "time": [18000, 36000, 72000, 129600, 345600, 604800, 1382400], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 3, 4, 5, 6, 7, 7, 7, 8, 8] }, { "id": 2, "name": "Rage Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 7, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 3 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [400000, 800000, 1600000, 2400000, 11000000], "time": [43200, 86400, 172800, 345600, 993600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 4, 5, 5, 5, 5, 6, 6, 6] }, { "id": 3, "name": "Jump Spell", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2000000, 4000000, 12000000], "time": [345600, 604800, 1296000], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 4, 4] }, { "id": 5, "name": "Freeze Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 302400, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 4 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [1200000, 2000000, 3600000, 5000000, 8500000, 11000000], "time": [129600, 259200, 432000, 648000, 777600, 993600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 6, 7, 7, 7] }, { "id": 4, "name": "Santa's Surprise", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 9, "name": "Poison Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 150000, "time": 21600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [12000, 25000, 50000, 100000, 175000, 260000, 300000], "time": [28800, 86400, 259200, 777600, 950400, 1339200, 1512000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 7, 8] }, { "id": 10, "name": "Earthquake Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 8, "cost": 300000, "time": 64800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [15000, 30000, 60000, 120000], "time": [64800, 129600, 432000, 950400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 5, 5, 5] }, { "id": 11, "name": "Haste Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 600000, "time": 172800, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [20000, 40000, 70000, 110000], "time": [129600, 259200, 518400, 950400], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 5, 5, 5, 5] }, { "id": 16, "name": "Clone Spell", "housingSpace": 3, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2400000, "time": 432000, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 5 }, "resourceType": "Elixir", "trainingTime": 540, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [2500000, 4000000, 6000000, 8000000, 12000000, 16500000], "time": [172800, 345600, 475200, 864000, 1296000, 1425600], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 5, 6, 7] }, { "id": 17, "name": "Skeleton Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 9, "cost": 1200000, "time": 345600, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [25000, 40000, 70000, 125000, 150000, 250000], "time": [129600, 259200, 518400, 734400, 907200, 1296000], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 4, 6, 7, 7] }, { "id": 22, "name": "Birthday Boom", "housingSpace": 2, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 5, "cost": 150000, "time": 28800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 360, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [], "time": [], "resource": "Elixir" }, "seasonal": true, "levels": [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] }, { "id": 28, "name": "Bat Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 10, "cost": 2500000, "time": 518400, "resource": "Elixir", "building": "Dark Spell Factory", "buildingLevel": 5 }, "resourceType": "Dark Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [30000, 60000, 100000, 150000], "time": [172800, 345600, 648000, 777600], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 5, 5] }, { "id": 35, "name": "Invisibility Spell", "housingSpace": 1, "village": "home", "category": "spell", "subCategory": "spell", "unlock": { "hall": 11, "cost": 4800000, "time": 604800, "resource": "Elixir", "building": "Spell Factory", "buildingLevel": 6 }, "resourceType": "Elixir", "trainingTime": 180, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [8000000, 12000000, 15000000], "time": [691200, 993600, 1339200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4] }, { "id": 0, "name": "Barbarian King", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 7, "cost": 5000, "time": 0, "resource": "Dark Elixir", "building": "Barbarian King", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [600, 600, 600, 600, 720, 720, 720, 720, 720, 840, 840, 840, 840, 840, 960, 960, 960, 960, 960, 1080, 1080, 1080, 1080, 1080, 1200, 1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [120, 122, 124, 127, 129, 132, 135, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 168, 171, 174, 178, 181, 185, 189, 193, 196, 200, 204, 208, 213, 217, 221, 226, 230, 235, 239, 244, 249, 254, 259, 275, 281, 287, 293, 299, 305, 312, 318, 325, 332, 339, 346, 353, 361, 369, 377, 385, 393, 401, 410, 418, 426, 435, 444, 453, 462, 471, 480, 490, 500, 510, 520, 530, 540, 550, 559, 568, 577, 586, 595], "upgrade": { "cost": [6000, 7000, 8000, 10000, 11000, 12000, 13000, 14000, 15000, 17000, 19000, 21000, 23000, 25000, 27000, 29000, 31000, 33000, 35000, 37000, 39000, 41000, 43000, 45000, 47000, 49000, 51000, 53000, 55000, 57000, 59000, 61000, 63000, 65000, 68000, 71000, 74000, 77000, 80000, 86000, 92000, 98000, 104000, 110000, 116000, 122000, 128000, 134000, 140000, 146000, 152000, 158000, 164000, 170000, 178000, 186000, 194000, 202000, 210000, 217000, 224000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 305000, 310000, 315000, 320000, 325000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 5, 10, 30, 40, 50, 65, 75, 80] }, { "id": 1, "name": "Archer Queen", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 9, "cost": 10000, "time": 0, "resource": "Dark Elixir", "building": "Archer Queen", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [600, 600, 600, 600, 720, 720, 720, 720, 720, 840, 840, 840, 840, 840, 960, 960, 960, 960, 960, 1080, 1080, 1080, 1080, 1080, 1200, 1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [160, 164, 168, 172, 176, 181, 185, 190, 194, 199, 204, 209, 215, 220, 226, 231, 237, 243, 249, 255, 262, 268, 275, 282, 289, 296, 304, 311, 319, 327, 335, 344, 352, 361, 370, 379, 389, 398, 408, 419, 429, 440, 451, 462, 474, 486, 498, 510, 523, 536, 547, 558, 570, 582, 594, 606, 619, 632, 645, 658, 671, 684, 698, 712, 726, 739, 751, 762, 772, 781, 789, 796, 802, 808, 814, 820, 825, 830, 835, 840], "upgrade": { "cost": [11000, 12000, 13000, 15000, 16000, 17000, 18000, 19000, 20000, 22000, 24000, 26000, 28000, 30000, 32000, 34000, 36000, 38000, 40000, 42000, 44000, 46000, 48000, 50000, 52000, 54000, 56000, 58000, 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, 90000, 96000, 102000, 108000, 114000, 120000, 126000, 132000, 138000, 144000, 150000, 156000, 162000, 168000, 174000, 180000, 187000, 194000, 201000, 208000, 215000, 220000, 225000, 230000, 235000, 240000, 250000, 260000, 270000, 280000, 290000, 292000, 294000, 296000, 298000, 300000, 306000, 312000, 318000, 324000, 330000], "time": [14400, 21600, 28800, 36000, 43200, 50400, 57600, 64800, 72000, 79200, 86400, 115200, 144000, 172800, 172800, 172800, 172800, 172800, 216000, 216000, 216000, 216000, 216000, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 432000, 432000, 432000, 432000, 432000, 518400, 518400, 518400, 518400, 518400, 561600, 561600, 561600, 561600, 561600, 561600, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 30, 40, 50, 65, 75, 80] }, { "id": 2, "name": "Grand Warden", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 11, "cost": 1000000, "time": 0, "resource": "Elixir", "building": "Grand Warden", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [1200, 1200, 1200, 1200, 1320, 1320, 1320, 1320, 1320, 1440, 1440, 1440, 1440, 1440, 1560, 1560, 1560, 1560, 1560, 1680, 1680, 1680, 1680, 1680, 1800, 1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [50, 52, 54, 56, 58, 60, 63, 66, 69, 72, 75, 78, 82, 86, 90, 94, 98, 102, 106, 110, 115, 120, 125, 130, 136, 142, 148, 154, 161, 168, 175, 182, 190, 198, 206, 215, 224, 233, 243, 253, 260, 266, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319], "upgrade": { "cost": [1250000, 1500000, 1750000, 2000000, 2250000, 2500000, 2750000, 3000000, 3500000, 4000000, 4500000, 5000000, 5500000, 6000000, 6500000, 7000000, 7500000, 8000000, 9000000, 10000000, 10100000, 10200000, 10300000, 10400000, 10500000, 10600000, 10700000, 10800000, 10900000, 11000000, 11100000, 11200000, 11300000, 11400000, 11500000, 11600000, 11700000, 11800000, 11900000, 12000000, 12500000, 13000000, 13500000, 14000000, 14500000, 15000000, 15500000, 16000000, 16500000, 17000000, 17500000, 18000000, 18500000, 19000000], "time": [7200, 14400, 28800, 43200, 64800, 86400, 108000, 129600, 172800, 216000, 259200, 345600, 432000, 518400, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 40, 50, 55] }, { "id": 3, "name": "Battle Machine", "housingSpace": 25, "village": "builderBase", "category": "hero", "subCategory": "hero", "unlock": { "hall": 5, "cost": 900000, "time": 43200, "resource": "Builder Elixir", "building": "Battle Machine", "buildingLevel": 1 }, "resourceType": "Builder Elixir", "trainingTime": 0, "regenerationTimes": [0], "dps": [125, 127, 130, 132, 135, 137, 140, 142, 145, 147, 150, 154, 157, 160, 164, 167, 170, 174, 177, 180, 186, 192, 198, 204, 210, 218, 226, 234, 242, 250], "upgrade": { "cost": [1000000, 1100000, 1200000, 1300000, 1500000, 1600000, 1700000, 1800000, 1900000, 2100000, 2200000, 2300000, 2400000, 2500000, 2600000, 2700000, 2800000, 2900000, 3000000, 3100000, 3200000, 3300000, 3400000, 3500000, 3600000, 3700000, 3800000, 3900000, 4000000, 4000000], "time": [43200, 43200, 86400, 86400, 86400, 86400, 86400, 86400, 86400, 172800, 172800, 172800, 172800, 172800, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 259200, 345600, 345600, 345600, 345600, 345600, 345600], "resource": "Builder Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 5, 10, 20, 25, 30] }, { "id": 4, "name": "Royal Champion", "housingSpace": 25, "village": "home", "category": "hero", "subCategory": "hero", "unlock": { "hall": 13, "cost": 60000, "time": 0, "resource": "Dark Elixir", "building": "Royal Champion", "buildingLevel": 1 }, "resourceType": "Elixir", "trainingTime": 0, "regenerationTimes": [1800, 1800, 1800, 1800, 1920, 1920, 1920, 1920, 1920, 2040, 2040, 2040, 2040, 2040, 2160, 2160, 2160, 2160, 2160, 2280, 2280, 2280, 2280, 2280, 2400, 2400, 2400, 2400, 2400, 2520], "dps": [374, 383, 392, 401, 410, 418, 426, 434, 442, 450, 458, 466, 474, 482, 490, 498, 506, 514, 522, 530, 535, 540, 545, 550, 555, 560, 565, 570, 575, 580], "upgrade": { "cost": [80000, 100000, 120000, 140000, 160000, 180000, 190000, 200000, 210000, 220000, 230000, 235000, 240000, 245000, 250000, 255000, 260000, 265000, 270000, 275000, 280000, 285000, 290000, 295000, 300000, 305000, 310000, 315000, 320000], "time": [28800, 57600, 86400, 172800, 259200, 302400, 345600, 388800, 432000, 475200, 518400, 561600, 604800, 604800, 648000, 648000, 648000, 648000, 648000, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 30] }, { "id": 0, "name": "L.A.S.S.I", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 15000000, "time": 1123200, "resource": "Elixir", "building": "Pet House", "buildingLevel": 1 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [150, 160, 170, 180, 190, 200, 210, 220, 230, 240], "upgrade": { "cost": [115000, 130000, 145000, 160000, 175000, 190000, 205000, 220000, 235000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 1, "name": "Mighty Yak", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 18500000, "time": 1468800, "resource": "Elixir", "building": "Pet House", "buildingLevel": 3 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [60, 64, 68, 72, 76, 80, 84, 88, 92, 96], "upgrade": { "cost": [165000, 185000, 205000, 225000, 245000, 255000, 265000, 275000, 285000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 2, "name": "Electro Owl", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 17500000, "time": 1296000, "resource": "Elixir", "building": "Pet House", "buildingLevel": 2 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [100, 105, 110, 115, 120, 125, 130, 135, 140, 145], "upgrade": { "cost": [135000, 150000, 165000, 180000, 195000, 210000, 225000, 240000, 255000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }, { "id": 3, "name": "Unicorn", "housingSpace": 20, "village": "home", "category": "troop", "subCategory": "pet", "unlock": { "hall": 14, "cost": 19500000, "time": 1641600, "resource": "Elixir", "building": "Pet House", "buildingLevel": 4 }, "resourceType": "Dark Elixir", "trainingTime": 0, "regenerationTimes": [], "dps": [], "upgrade": { "cost": [210000, 220000, 230000, 240000, 250000, 260000, 270000, 280000, 290000], "time": [259200, 345600, 432000, 475200, 518400, 561600, 604800, 648000, 691200], "resource": "Dark Elixir" }, "seasonal": false, "levels": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10] }], "RAW_SUPER_UNITS": [{ "name": "Super Barbarian", "id": 26, "original": "Barbarian", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 5 }, { "name": "Sneaky Goblin", "id": 55, "original": "Goblin", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 3 }, { "name": "Super Giant", "id": 29, "original": "Giant", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Super Wall Breaker", "id": 28, "original": "Wall Breaker", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Archer", "id": 27, "original": "Archer", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Witch", "id": 66, "original": "Witch", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Inferno Dragon", "id": 63, "original": "Baby Dragon", "minOriginalLevel": 6, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 15 }, { "name": "Super Valkyrie", "id": 64, "original": "Valkyrie", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 20 }, { "name": "Super Minion", "id": 84, "original": "Minion", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 12 }, { "name": "Super Wizard", "id": 83, "original": "Wizard", "minOriginalLevel": 9, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 10 }, { "name": "Ice Hound", "id": 76, "original": "Lava Hound", "minOriginalLevel": 5, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }, { "name": "Rocket Balloon", "id": 57, "original": "Balloon", "minOriginalLevel": 8, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 8 }, { "name": "Super Bowler", "id": 80, "original": "Bowler", "minOriginalLevel": 4, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 30 }, { "name": "Super Dragon", "id": 81, "original": "Dragon", "minOriginalLevel": 7, "village": "home", "duration": 259200, "cooldown": 259200, "resource": "Dark Elixir", "resourceCost": 25000, "housingSpace": 40 }] }
|