@dchighs/dc-config 0.1.23 → 0.1.24
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 +89 -69
- 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[];
|
|
@@ -2159,14 +2159,13 @@ export interface News {
|
|
|
2159
2159
|
"0": The0;
|
|
2160
2160
|
"1": The1;
|
|
2161
2161
|
"2": The2;
|
|
2162
|
-
"3":
|
|
2163
|
-
"4":
|
|
2162
|
+
"3": The0;
|
|
2163
|
+
"4": The0;
|
|
2164
2164
|
"5": The5;
|
|
2165
2165
|
"6": The6;
|
|
2166
|
-
"7":
|
|
2167
|
-
"8":
|
|
2168
|
-
"9":
|
|
2169
|
-
"10": The0;
|
|
2166
|
+
"7": The0;
|
|
2167
|
+
"8": The0;
|
|
2168
|
+
"9": The1;
|
|
2170
2169
|
canvas: Canva[];
|
|
2171
2170
|
}
|
|
2172
2171
|
export interface The0 {
|
|
@@ -2178,7 +2177,6 @@ export interface The0 {
|
|
|
2178
2177
|
id: number;
|
|
2179
2178
|
min_level: number;
|
|
2180
2179
|
popup_frequency: string;
|
|
2181
|
-
popup_is_critical?: boolean;
|
|
2182
2180
|
popup_type: string;
|
|
2183
2181
|
show_on_startup: number;
|
|
2184
2182
|
slides: The0_Slide[];
|
|
@@ -2187,41 +2185,6 @@ export interface The0 {
|
|
|
2187
2185
|
export interface The0_Slide {
|
|
2188
2186
|
content_localized_key: string;
|
|
2189
2187
|
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
2188
|
forceClose?: boolean;
|
|
2226
2189
|
header_localized_key: string;
|
|
2227
2190
|
image_url: string;
|
|
@@ -2262,76 +2225,133 @@ export declare enum Style {
|
|
|
2262
2225
|
export declare enum SlideType {
|
|
2263
2226
|
FullImage = "FullImage"
|
|
2264
2227
|
}
|
|
2265
|
-
export interface
|
|
2228
|
+
export interface The1 {
|
|
2266
2229
|
active_platforms: ValueClass;
|
|
2267
2230
|
allow_island_tutorial: number;
|
|
2268
2231
|
assets_name: string;
|
|
2269
2232
|
direct_to_shop: number;
|
|
2270
2233
|
end_ts: string;
|
|
2271
|
-
filter_category: null;
|
|
2272
2234
|
id: number;
|
|
2273
|
-
label_text_tid: null;
|
|
2274
|
-
label_title_tid: null;
|
|
2275
2235
|
min_level: number;
|
|
2236
|
+
popup_frequency: string;
|
|
2237
|
+
popup_is_critical?: boolean;
|
|
2276
2238
|
popup_type: string;
|
|
2277
|
-
priority: number | null;
|
|
2278
2239
|
show_on_startup: number;
|
|
2279
2240
|
slides: The1_Slide[];
|
|
2280
2241
|
start_ts: string;
|
|
2281
2242
|
}
|
|
2282
|
-
export interface
|
|
2243
|
+
export interface The1_Slide {
|
|
2244
|
+
content_localized_key: string;
|
|
2245
|
+
custom_title_localized_key: string;
|
|
2246
|
+
header_localized_key: string;
|
|
2247
|
+
image_url: string;
|
|
2248
|
+
link: string;
|
|
2249
|
+
link_button_key: string;
|
|
2250
|
+
slide_type: string;
|
|
2251
|
+
slide_type_2: string;
|
|
2252
|
+
timer?: string;
|
|
2253
|
+
times_to_show?: number;
|
|
2254
|
+
}
|
|
2255
|
+
export interface The2 {
|
|
2283
2256
|
active_platforms: ValueClass;
|
|
2284
2257
|
allow_island_tutorial: number;
|
|
2285
2258
|
assets_name: string;
|
|
2286
2259
|
direct_to_shop: number;
|
|
2287
2260
|
end_ts: string;
|
|
2261
|
+
filter_category: null;
|
|
2262
|
+
hud_button: The2_HudButton;
|
|
2288
2263
|
id: number;
|
|
2264
|
+
label_text_tid: null;
|
|
2265
|
+
label_title_tid: null;
|
|
2289
2266
|
min_level: number;
|
|
2290
|
-
popup_frequency: string;
|
|
2291
2267
|
popup_type: string;
|
|
2268
|
+
priority: null;
|
|
2292
2269
|
show_on_startup: number;
|
|
2293
|
-
slides:
|
|
2270
|
+
slides: The0_Slide[];
|
|
2294
2271
|
start_ts: string;
|
|
2295
2272
|
}
|
|
2273
|
+
export interface The2_HudButton {
|
|
2274
|
+
file: string;
|
|
2275
|
+
title: string;
|
|
2276
|
+
viral_icon_tier: number;
|
|
2277
|
+
}
|
|
2296
2278
|
export interface The5 {
|
|
2297
2279
|
active_platforms: ValueClass;
|
|
2298
2280
|
allow_island_tutorial: number;
|
|
2299
2281
|
assets_name: string;
|
|
2300
|
-
direct_to_shop: number;
|
|
2301
2282
|
end_ts: string;
|
|
2302
|
-
hud_button:
|
|
2283
|
+
hud_button: The5_HudButton;
|
|
2303
2284
|
id: number;
|
|
2304
2285
|
min_level: number;
|
|
2305
2286
|
popup_type: string;
|
|
2306
2287
|
show_on_startup: number;
|
|
2307
|
-
slides:
|
|
2288
|
+
slides: The1_Slide[];
|
|
2308
2289
|
start_ts: string;
|
|
2309
2290
|
}
|
|
2291
|
+
export interface The5_HudButton {
|
|
2292
|
+
file: string;
|
|
2293
|
+
title: string;
|
|
2294
|
+
}
|
|
2310
2295
|
export interface The6 {
|
|
2311
2296
|
active_platforms: ValueClass;
|
|
2312
2297
|
allow_island_tutorial: number;
|
|
2313
2298
|
assets_name: string;
|
|
2299
|
+
direct_to_shop: number;
|
|
2314
2300
|
end_ts: string;
|
|
2315
|
-
|
|
2301
|
+
filter_category: null;
|
|
2316
2302
|
id: number;
|
|
2303
|
+
label_text_tid: null;
|
|
2304
|
+
label_title_tid: null;
|
|
2317
2305
|
min_level: number;
|
|
2318
2306
|
popup_type: string;
|
|
2307
|
+
priority: number;
|
|
2319
2308
|
show_on_startup: number;
|
|
2320
2309
|
slides: The0_Slide[];
|
|
2321
2310
|
start_ts: string;
|
|
2322
2311
|
}
|
|
2323
|
-
export interface The6_HudButton {
|
|
2324
|
-
file: string;
|
|
2325
|
-
title: string;
|
|
2326
|
-
}
|
|
2327
2312
|
export interface Canva {
|
|
2328
2313
|
id: number;
|
|
2329
2314
|
assets_name: string;
|
|
2330
|
-
start_ts: number;
|
|
2331
|
-
end_ts: number;
|
|
2332
|
-
min_level
|
|
2333
|
-
slides:
|
|
2334
|
-
show_on_startup
|
|
2315
|
+
start_ts: number | string;
|
|
2316
|
+
end_ts: number | string;
|
|
2317
|
+
min_level?: number;
|
|
2318
|
+
slides: CanvaSlide[];
|
|
2319
|
+
show_on_startup?: number;
|
|
2320
|
+
}
|
|
2321
|
+
export interface CanvaSlide {
|
|
2322
|
+
custom_title_localized_key?: string;
|
|
2323
|
+
header_localized_key?: string;
|
|
2324
|
+
image_url?: string;
|
|
2325
|
+
times_to_show?: number;
|
|
2326
|
+
type?: SlideType;
|
|
2327
|
+
multiple_buttons?: MultipleButton[];
|
|
2328
|
+
bg?: string;
|
|
2329
|
+
content?: Content[];
|
|
2330
|
+
edit_mode?: number;
|
|
2331
|
+
id?: number;
|
|
2332
|
+
title_key?: string;
|
|
2333
|
+
viral_icon_key?: string;
|
|
2334
|
+
viral_icon_timer?: string;
|
|
2335
|
+
}
|
|
2336
|
+
export interface Content {
|
|
2337
|
+
height: number;
|
|
2338
|
+
rotation: number;
|
|
2339
|
+
stroke?: string;
|
|
2340
|
+
text_color?: string;
|
|
2341
|
+
text_key: string;
|
|
2342
|
+
text_size?: number;
|
|
2343
|
+
timer?: number;
|
|
2344
|
+
type: string;
|
|
2345
|
+
width: number;
|
|
2346
|
+
x: number;
|
|
2347
|
+
y: number;
|
|
2348
|
+
action?: ContentAction;
|
|
2349
|
+
style?: string;
|
|
2350
|
+
}
|
|
2351
|
+
export interface ContentAction {
|
|
2352
|
+
itemId: string;
|
|
2353
|
+
storeCategory: number;
|
|
2354
|
+
type: string;
|
|
2335
2355
|
}
|
|
2336
2356
|
export interface Perks {
|
|
2337
2357
|
abilities: Ability[];
|
|
@@ -3072,7 +3092,7 @@ export interface TowerIsland {
|
|
|
3072
3092
|
happy_hours: HappyHour[];
|
|
3073
3093
|
parameters: FogIslandParameter[];
|
|
3074
3094
|
currencies: Currency[];
|
|
3075
|
-
actions:
|
|
3095
|
+
actions: ActionElement[];
|
|
3076
3096
|
}
|
|
3077
3097
|
export interface Floor {
|
|
3078
3098
|
id: number;
|
|
@@ -3270,8 +3290,8 @@ export interface MultiplierTime {
|
|
|
3270
3290
|
multiplier_time: number;
|
|
3271
3291
|
}
|
|
3272
3292
|
export interface TreeOfLifePowerupRaritySeed {
|
|
3273
|
-
max_rarity_seeds_per_grade: number[];
|
|
3274
3293
|
rarity: Rarity;
|
|
3294
|
+
max_rarity_seeds_per_grade: number[];
|
|
3275
3295
|
}
|
|
3276
3296
|
export interface Visual {
|
|
3277
3297
|
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.24",
|
|
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
|
+
}
|