@dchighs/dc-config 0.1.23 → 0.1.25
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/LICENSE +20 -20
- package/dist/dtos/game-config.d.ts +118 -61
- package/package.json +39 -39
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Marcuth
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Marcuth
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
@@ -1153,11 +1153,11 @@ export interface FogIsland {
|
|
|
1153
1153
|
squares: FogIslandSquare[];
|
|
1154
1154
|
currencies: Currency[];
|
|
1155
1155
|
rewards: FogIslandReward[];
|
|
1156
|
-
actions:
|
|
1156
|
+
actions: ActionElement[];
|
|
1157
1157
|
hints: Hint[];
|
|
1158
1158
|
parameters: FogIslandParameter[];
|
|
1159
1159
|
}
|
|
1160
|
-
export interface
|
|
1160
|
+
export interface ActionElement {
|
|
1161
1161
|
id: number;
|
|
1162
1162
|
type: ActionType;
|
|
1163
1163
|
tid_name: ActionTidName;
|
|
@@ -1361,7 +1361,7 @@ export interface GridIsland {
|
|
|
1361
1361
|
encounters: Encounter[];
|
|
1362
1362
|
enemies: GridIslandEnemy[];
|
|
1363
1363
|
currencies: Currency[];
|
|
1364
|
-
actions:
|
|
1364
|
+
actions: ActionElement[];
|
|
1365
1365
|
parameters: FogIslandParameter[];
|
|
1366
1366
|
}
|
|
1367
1367
|
export interface Decoration {
|
|
@@ -2064,7 +2064,7 @@ export interface MazeIsland {
|
|
|
2064
2064
|
encounters: Encounter[];
|
|
2065
2065
|
enemies: GridIslandEnemy[];
|
|
2066
2066
|
happy_hours: any[];
|
|
2067
|
-
actions:
|
|
2067
|
+
actions: ActionElement[];
|
|
2068
2068
|
clouds: Cloud[];
|
|
2069
2069
|
currencies: Currency[];
|
|
2070
2070
|
parameters: FogIslandParameter[];
|
|
@@ -2160,13 +2160,14 @@ export interface News {
|
|
|
2160
2160
|
"1": The1;
|
|
2161
2161
|
"2": The2;
|
|
2162
2162
|
"3": The3;
|
|
2163
|
-
"4":
|
|
2164
|
-
"5":
|
|
2163
|
+
"4": The0;
|
|
2164
|
+
"5": The0;
|
|
2165
2165
|
"6": The6;
|
|
2166
|
-
"7":
|
|
2167
|
-
"8":
|
|
2168
|
-
"9":
|
|
2166
|
+
"7": The7;
|
|
2167
|
+
"8": The8;
|
|
2168
|
+
"9": The0;
|
|
2169
2169
|
"10": The0;
|
|
2170
|
+
"11": The1;
|
|
2170
2171
|
canvas: Canva[];
|
|
2171
2172
|
}
|
|
2172
2173
|
export interface The0 {
|
|
@@ -2178,7 +2179,6 @@ export interface The0 {
|
|
|
2178
2179
|
id: number;
|
|
2179
2180
|
min_level: number;
|
|
2180
2181
|
popup_frequency: string;
|
|
2181
|
-
popup_is_critical?: boolean;
|
|
2182
2182
|
popup_type: string;
|
|
2183
2183
|
show_on_startup: number;
|
|
2184
2184
|
slides: The0_Slide[];
|
|
@@ -2187,41 +2187,6 @@ export interface The0 {
|
|
|
2187
2187
|
export interface The0_Slide {
|
|
2188
2188
|
content_localized_key: string;
|
|
2189
2189
|
custom_title_localized_key: string;
|
|
2190
|
-
header_localized_key: string;
|
|
2191
|
-
image_url: string;
|
|
2192
|
-
link: string;
|
|
2193
|
-
link_button_key: string;
|
|
2194
|
-
slide_type: string;
|
|
2195
|
-
slide_type_2: string;
|
|
2196
|
-
timer?: string;
|
|
2197
|
-
times_to_show?: number;
|
|
2198
|
-
}
|
|
2199
|
-
export interface The1 {
|
|
2200
|
-
active_platforms: ValueClass;
|
|
2201
|
-
allow_island_tutorial: number;
|
|
2202
|
-
assets_name: string;
|
|
2203
|
-
direct_to_shop: number;
|
|
2204
|
-
end_ts: string;
|
|
2205
|
-
filter_category: null;
|
|
2206
|
-
hud_button: The1_HudButton;
|
|
2207
|
-
id: number;
|
|
2208
|
-
label_text_tid: null;
|
|
2209
|
-
label_title_tid: null;
|
|
2210
|
-
min_level: number;
|
|
2211
|
-
popup_type: string;
|
|
2212
|
-
priority: null;
|
|
2213
|
-
show_on_startup: number;
|
|
2214
|
-
slides: The1_Slide[];
|
|
2215
|
-
start_ts: string;
|
|
2216
|
-
}
|
|
2217
|
-
export interface The1_HudButton {
|
|
2218
|
-
file: string;
|
|
2219
|
-
title: string;
|
|
2220
|
-
viral_icon_tier: number;
|
|
2221
|
-
}
|
|
2222
|
-
export interface The1_Slide {
|
|
2223
|
-
content_localized_key?: string;
|
|
2224
|
-
custom_title_localized_key: string;
|
|
2225
2190
|
forceClose?: boolean;
|
|
2226
2191
|
header_localized_key: string;
|
|
2227
2192
|
image_url: string;
|
|
@@ -2262,6 +2227,34 @@ export declare enum Style {
|
|
|
2262
2227
|
export declare enum SlideType {
|
|
2263
2228
|
FullImage = "FullImage"
|
|
2264
2229
|
}
|
|
2230
|
+
export interface The1 {
|
|
2231
|
+
active_platforms: ValueClass;
|
|
2232
|
+
allow_island_tutorial: number;
|
|
2233
|
+
assets_name: string;
|
|
2234
|
+
direct_to_shop: number;
|
|
2235
|
+
end_ts: string;
|
|
2236
|
+
id: number;
|
|
2237
|
+
min_level: number;
|
|
2238
|
+
popup_frequency: string;
|
|
2239
|
+
popup_is_critical?: boolean;
|
|
2240
|
+
popup_type: string;
|
|
2241
|
+
show_on_startup: number;
|
|
2242
|
+
slides: The1_Slide[];
|
|
2243
|
+
start_ts: string;
|
|
2244
|
+
}
|
|
2245
|
+
export interface The1_Slide {
|
|
2246
|
+
content_localized_key: string;
|
|
2247
|
+
custom_title_localized_key: string;
|
|
2248
|
+
header_localized_key: string;
|
|
2249
|
+
image_url: string;
|
|
2250
|
+
link: string;
|
|
2251
|
+
link_button_key: string;
|
|
2252
|
+
slide_type: string;
|
|
2253
|
+
slide_type_2: string;
|
|
2254
|
+
link_item_id?: number;
|
|
2255
|
+
timer?: string;
|
|
2256
|
+
times_to_show?: number;
|
|
2257
|
+
}
|
|
2265
2258
|
export interface The2 {
|
|
2266
2259
|
active_platforms: ValueClass;
|
|
2267
2260
|
allow_island_tutorial: number;
|
|
@@ -2269,69 +2262,133 @@ export interface The2 {
|
|
|
2269
2262
|
direct_to_shop: number;
|
|
2270
2263
|
end_ts: string;
|
|
2271
2264
|
filter_category: null;
|
|
2265
|
+
hud_button: The2_HudButton;
|
|
2272
2266
|
id: number;
|
|
2273
2267
|
label_text_tid: null;
|
|
2274
2268
|
label_title_tid: null;
|
|
2275
2269
|
min_level: number;
|
|
2276
2270
|
popup_type: string;
|
|
2277
|
-
priority:
|
|
2271
|
+
priority: null;
|
|
2278
2272
|
show_on_startup: number;
|
|
2279
|
-
slides:
|
|
2273
|
+
slides: The0_Slide[];
|
|
2280
2274
|
start_ts: string;
|
|
2281
2275
|
}
|
|
2276
|
+
export interface The2_HudButton {
|
|
2277
|
+
file: string;
|
|
2278
|
+
title: string;
|
|
2279
|
+
viral_icon_tier: number;
|
|
2280
|
+
}
|
|
2282
2281
|
export interface The3 {
|
|
2283
2282
|
active_platforms: ValueClass;
|
|
2284
2283
|
allow_island_tutorial: number;
|
|
2285
2284
|
assets_name: string;
|
|
2286
2285
|
direct_to_shop: number;
|
|
2287
2286
|
end_ts: string;
|
|
2287
|
+
filter_category: null;
|
|
2288
|
+
hud_button: The2_HudButton;
|
|
2288
2289
|
id: number;
|
|
2290
|
+
label_text_tid: null;
|
|
2291
|
+
label_title_tid: null;
|
|
2289
2292
|
min_level: number;
|
|
2290
2293
|
popup_frequency: string;
|
|
2291
2294
|
popup_type: string;
|
|
2295
|
+
priority: null;
|
|
2292
2296
|
show_on_startup: number;
|
|
2293
2297
|
slides: The1_Slide[];
|
|
2294
2298
|
start_ts: string;
|
|
2295
2299
|
}
|
|
2296
|
-
export interface
|
|
2300
|
+
export interface The6 {
|
|
2297
2301
|
active_platforms: ValueClass;
|
|
2298
2302
|
allow_island_tutorial: number;
|
|
2299
2303
|
assets_name: string;
|
|
2300
2304
|
direct_to_shop: number;
|
|
2301
2305
|
end_ts: string;
|
|
2302
|
-
hud_button:
|
|
2306
|
+
hud_button: The2_HudButton;
|
|
2303
2307
|
id: number;
|
|
2304
2308
|
min_level: number;
|
|
2305
2309
|
popup_type: string;
|
|
2306
2310
|
show_on_startup: number;
|
|
2307
|
-
slides:
|
|
2311
|
+
slides: The1_Slide[];
|
|
2308
2312
|
start_ts: string;
|
|
2309
2313
|
}
|
|
2310
|
-
export interface
|
|
2314
|
+
export interface The7 {
|
|
2311
2315
|
active_platforms: ValueClass;
|
|
2312
2316
|
allow_island_tutorial: number;
|
|
2313
2317
|
assets_name: string;
|
|
2314
2318
|
end_ts: string;
|
|
2315
|
-
hud_button:
|
|
2319
|
+
hud_button: The7_HudButton;
|
|
2316
2320
|
id: number;
|
|
2317
2321
|
min_level: number;
|
|
2318
2322
|
popup_type: string;
|
|
2319
2323
|
show_on_startup: number;
|
|
2320
|
-
slides:
|
|
2324
|
+
slides: The1_Slide[];
|
|
2321
2325
|
start_ts: string;
|
|
2322
2326
|
}
|
|
2323
|
-
export interface
|
|
2327
|
+
export interface The7_HudButton {
|
|
2324
2328
|
file: string;
|
|
2325
2329
|
title: string;
|
|
2326
2330
|
}
|
|
2327
|
-
export interface
|
|
2328
|
-
|
|
2331
|
+
export interface The8 {
|
|
2332
|
+
active_platforms: ValueClass;
|
|
2333
|
+
allow_island_tutorial: number;
|
|
2329
2334
|
assets_name: string;
|
|
2330
|
-
|
|
2331
|
-
end_ts:
|
|
2335
|
+
direct_to_shop: number;
|
|
2336
|
+
end_ts: string;
|
|
2337
|
+
filter_category: null;
|
|
2338
|
+
id: number;
|
|
2339
|
+
label_text_tid: null;
|
|
2340
|
+
label_title_tid: null;
|
|
2332
2341
|
min_level: number;
|
|
2333
|
-
|
|
2342
|
+
popup_type: string;
|
|
2343
|
+
priority: number;
|
|
2334
2344
|
show_on_startup: number;
|
|
2345
|
+
slides: The0_Slide[];
|
|
2346
|
+
start_ts: string;
|
|
2347
|
+
}
|
|
2348
|
+
export interface Canva {
|
|
2349
|
+
id: number;
|
|
2350
|
+
assets_name: string;
|
|
2351
|
+
start_ts: number | string;
|
|
2352
|
+
end_ts: number | string;
|
|
2353
|
+
min_level?: number;
|
|
2354
|
+
slides: CanvaSlide[];
|
|
2355
|
+
show_on_startup?: number;
|
|
2356
|
+
priority?: string;
|
|
2357
|
+
}
|
|
2358
|
+
export interface CanvaSlide {
|
|
2359
|
+
custom_title_localized_key?: string;
|
|
2360
|
+
header_localized_key?: string;
|
|
2361
|
+
image_url?: string;
|
|
2362
|
+
times_to_show?: number;
|
|
2363
|
+
type?: SlideType;
|
|
2364
|
+
multiple_buttons?: MultipleButton[];
|
|
2365
|
+
bg?: string;
|
|
2366
|
+
content?: Content[];
|
|
2367
|
+
edit_mode?: number;
|
|
2368
|
+
id?: number;
|
|
2369
|
+
title_key?: string;
|
|
2370
|
+
viral_icon_key?: string;
|
|
2371
|
+
viral_icon_timer?: string;
|
|
2372
|
+
}
|
|
2373
|
+
export interface Content {
|
|
2374
|
+
height: number;
|
|
2375
|
+
rotation: number;
|
|
2376
|
+
stroke?: string;
|
|
2377
|
+
text_color?: string;
|
|
2378
|
+
text_key: string;
|
|
2379
|
+
text_size?: number;
|
|
2380
|
+
timer?: number;
|
|
2381
|
+
type: string;
|
|
2382
|
+
width: number;
|
|
2383
|
+
x: number;
|
|
2384
|
+
y: number;
|
|
2385
|
+
action?: ContentAction;
|
|
2386
|
+
style?: string;
|
|
2387
|
+
}
|
|
2388
|
+
export interface ContentAction {
|
|
2389
|
+
itemId: string;
|
|
2390
|
+
storeCategory: number;
|
|
2391
|
+
type: string;
|
|
2335
2392
|
}
|
|
2336
2393
|
export interface Perks {
|
|
2337
2394
|
abilities: Ability[];
|
|
@@ -3072,7 +3129,7 @@ export interface TowerIsland {
|
|
|
3072
3129
|
happy_hours: HappyHour[];
|
|
3073
3130
|
parameters: FogIslandParameter[];
|
|
3074
3131
|
currencies: Currency[];
|
|
3075
|
-
actions:
|
|
3132
|
+
actions: ActionElement[];
|
|
3076
3133
|
}
|
|
3077
3134
|
export interface Floor {
|
|
3078
3135
|
id: number;
|
|
@@ -3270,8 +3327,8 @@ export interface MultiplierTime {
|
|
|
3270
3327
|
multiplier_time: number;
|
|
3271
3328
|
}
|
|
3272
3329
|
export interface TreeOfLifePowerupRaritySeed {
|
|
3273
|
-
max_rarity_seeds_per_grade: number[];
|
|
3274
3330
|
rarity: Rarity;
|
|
3331
|
+
max_rarity_seeds_per_grade: number[];
|
|
3275
3332
|
}
|
|
3276
3333
|
export interface Visual {
|
|
3277
3334
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dchighs/dc-config",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A library to handle configuration for Dragon City.",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist/*",
|
|
10
|
-
"!/**/__tests__"
|
|
11
|
-
],
|
|
12
|
-
"keywords": [
|
|
13
|
-
"dragon city",
|
|
14
|
-
"dc",
|
|
15
|
-
"configuration",
|
|
16
|
-
"dc highs"
|
|
17
|
-
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsc",
|
|
20
|
-
"update-dto": "ts-node scripts/update-dto.ts"
|
|
21
|
-
},
|
|
22
|
-
"author": "Marcuth",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"type": "commonjs",
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@marcuth/env": "^0.0.1",
|
|
27
|
-
"@types/node": "^25.7.0",
|
|
28
|
-
"dotenv": "^17.4.2",
|
|
29
|
-
"quicktype-core": "^23.2.6",
|
|
30
|
-
"ts-node": "^10.9.2",
|
|
31
|
-
"typescript": "^6.0.2"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"axios": "^1.15.0"
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"@dchighs/dc-core": "^0.4.2"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dchighs/dc-config",
|
|
3
|
+
"version": "0.1.25",
|
|
4
|
+
"description": "A library to handle configuration for Dragon City.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/*",
|
|
10
|
+
"!/**/__tests__"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"dragon city",
|
|
14
|
+
"dc",
|
|
15
|
+
"configuration",
|
|
16
|
+
"dc highs"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"update-dto": "ts-node scripts/update-dto.ts"
|
|
21
|
+
},
|
|
22
|
+
"author": "Marcuth",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"type": "commonjs",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@marcuth/env": "^0.0.1",
|
|
27
|
+
"@types/node": "^25.7.0",
|
|
28
|
+
"dotenv": "^17.4.2",
|
|
29
|
+
"quicktype-core": "^23.2.6",
|
|
30
|
+
"ts-node": "^10.9.2",
|
|
31
|
+
"typescript": "^6.0.2"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"axios": "^1.15.0"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@dchighs/dc-core": "^0.4.2"
|
|
38
|
+
}
|
|
39
|
+
}
|