@dchighs/dc-config 0.1.164 → 0.1.166

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.
@@ -44,6 +44,7 @@ export interface GameDataConfig {
44
44
  dragon_mastery: DragonMastery;
45
45
  runner_island: RunnerIsland;
46
46
  perks: Perks;
47
+ unlock_system: UnlockSystem;
47
48
  }
48
49
  export interface AssetVersioning {
49
50
  dragons: BuildingElement[];
@@ -140,9 +141,9 @@ export interface DiscountUid {
140
141
  }
141
142
  export interface IapEliteDiscountUidAvailability {
142
143
  from: string;
143
- dur: Dur;
144
+ dur: PurpleDur;
144
145
  }
145
- export type Dur = "7d" | "10d" | "14d" | "15d" | "28d" | "29d" | "42d";
146
+ export type PurpleDur = "7d" | "10d" | "14d" | "15d" | "28d" | "29d" | "42d";
146
147
  export type IapEliteDiscountUidIap = "elite_pass_promo_31_99" | "elite_pass_59_99" | "blackfriday_31_99" | "elite_upgrade_promo_23_99" | "special_ebp_upgrade_discount_39_99" | "blackfriday_21_99" | "battle_pass_19_99" | "battle_pass_7_99";
147
148
  export type IapEliteUid = "battle_pass_29_99" | "elite_upgrade_19_99" | "elite_pass_39_99" | "elite_pass_89_99" | "blackfriday_49_99" | "elite_pass_promo_31_99";
148
149
  export type IapEliteUpgradeUid = "battle_pass_19_99" | "battle_pass_39_99" | "elite_upgrade_29_99" | "special_ebp_upgrade_59_99" | "blackfriday_34_99" | "elite_pass_promo_23_99";
@@ -162,7 +163,7 @@ export interface Rules {
162
163
  level?: number;
163
164
  rarity?: Rarity;
164
165
  }
165
- export type ElementType = "w" | "e" | "f" | "el" | "m" | "p" | "i" | "d" | "wd" | "li" | "wr" | "pr" | "l" | "pu" | "bt" | "so" | "mg" | "ch" | "hp" | "dr" | "ti" | "-" | "*" | "SMALL" | "MEDIUM" | "LARGE" | "SUPER" | "n" | "ph";
166
+ export type ElementType = "e" | "w" | "f" | "el" | "m" | "p" | "i" | "d" | "wd" | "li" | "wr" | "l" | "ti" | "pu" | "mg" | "hp" | "pr" | "ch" | "bt" | "dr" | "so" | "an" | "-" | "*" | "SMALL" | "MEDIUM" | "LARGE" | "SUPER" | "n" | "ph";
166
167
  export type Rarity = "C" | "R" | "V" | "E" | "L" | "H" | "M";
167
168
  export type CollectibleActionType = "COMBAT_ARENA" | "BREED" | "COLLECT_FOOD" | "LEVELUP_DRAGON" | "COLLECT_GOLD" | "FEED" | "HATCH_EGG" | "SPEND_EVENT_POINTS" | "SPEND_PUZZLE_TOKENS" | "SPEND_RUNNER_TOKENS" | "COMPLETE_HEROIC_NODE" | "WATCH_DRAGONTV_AD" | "FINISH_TRAINING" | "UPGRADE_HABITAT" | "CLAIM_ALLIANCE_CHEST" | "SUMMON_DRAGON" | "RECALL_DRAGON" | "DRAGON_POWER_UP_UPGRADE" | "COMPLETE_MDR_NODE" | "ACTIVATE_DRAGON_TOWER" | "RENAME_DRAGON" | "COMBAT_QUEST" | "COMBAT_LEAGUE" | "START_WIZARDS_CAVE_TRY" | "SPEND_GEMS_ON_WIZARDS_CAVE" | "REACH_STAGE_ON_WIZARDS_CAVE";
168
169
  export interface ElitePass {
@@ -521,7 +522,7 @@ export interface Dragon {
521
522
  group_type: DragonGroupType;
522
523
  order: number;
523
524
  level: number;
524
- attributes: AttributeElement[];
525
+ attributes: ElementType[];
525
526
  production_per_hour: ProductionPerHour;
526
527
  summon_enabled: number;
527
528
  summon_min_level: number;
@@ -553,7 +554,6 @@ export interface Dragon {
553
554
  description: string;
554
555
  description_tid: string;
555
556
  }
556
- export type AttributeElement = "an" | "bt" | "e" | "mg" | "w" | "ch" | "p" | "f" | "el" | "m" | "i" | "li" | "d" | "hp" | "dr" | "so";
557
557
  export type DragonGroupType = "DWDRAGON";
558
558
  export interface ProductionPerHour {
559
559
  p: number;
@@ -713,12 +713,12 @@ export interface CostElement {
713
713
  export interface ItemsUnitsAttributeModifier {
714
714
  id: number;
715
715
  behaviour: Behaviour;
716
- attribute: ItemsUnitsAttributeModifierAttribute;
716
+ attribute: Attribute;
717
717
  value: number[] | number;
718
718
  only_if_equipped: boolean;
719
719
  index?: number;
720
720
  }
721
- export type ItemsUnitsAttributeModifierAttribute = "attacks" | "base_attack" | "trainable_attacks" | "base_life" | "passive_skills" | "post_skills" | "speed" | "background_vfx" | "foreground_vfx";
721
+ export type Attribute = "attacks" | "base_attack" | "trainable_attacks" | "base_life" | "passive_skills" | "post_skills" | "speed" | "background_vfx" | "foreground_vfx";
722
722
  export type Behaviour = "REPLACE" | "REPLACE_BY_INDEX" | "MULTIPLY";
723
723
  export interface BattlesConfigElement {
724
724
  id: number;
@@ -964,11 +964,11 @@ export interface FogIsland {
964
964
  squares: FogIslandSquare[];
965
965
  currencies: Currency[];
966
966
  rewards: FogIslandReward[];
967
- actions: Action[];
967
+ actions: ActionElement[];
968
968
  hints: Hint[];
969
969
  parameters: FogIslandParameter[];
970
970
  }
971
- export interface Action {
971
+ export interface ActionElement {
972
972
  id: number;
973
973
  type: ActionType;
974
974
  tid_name: ActionTidName;
@@ -1141,7 +1141,7 @@ export interface GridIsland {
1141
1141
  encounters: Encounter[];
1142
1142
  enemies: EnemyElement[];
1143
1143
  currencies: Currency[];
1144
- actions: Action[];
1144
+ actions: ActionElement[];
1145
1145
  parameters: FogIslandParameter[];
1146
1146
  }
1147
1147
  export interface Decoration {
@@ -1160,7 +1160,7 @@ export interface Encounter {
1160
1160
  fight_background?: string;
1161
1161
  fight_background_id: FightBackgroundID;
1162
1162
  }
1163
- export type FightBackgroundID = "bg_battle_background_gi_treasurehunt" | "bg_battle_background_hr_medievalholidays" | "bg_battle_background_mr_108_mythical_gelbarrier" | "bg_battle_background_hr_clashofthenorth" | "bg_battle_background_mr_109_mythical_porpoise" | "bg_battle_background_hr_halloween26" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries" | "bg_battle_background_mi_fall_from_grace" | "bg_battle_background_mi_norsegods" | "bg_battle_background_mi_halloween25";
1163
+ export type FightBackgroundID = "bg_battle_background_gi_treasurehunt" | "bg_battle_background_hr_medievalholidays" | "bg_battle_background_mr_108_mythical_gelbarrier" | "bg_battle_background_hr_clashofthenorth" | "bg_battle_background_mr_109_mythical_porpoise" | "bg_battle_background_mr_110_mythical_imperviousdiamond" | "bg_battle_background_hr_halloween26" | "bg_battle_background_mi_mystery_in_paradise" | "bg_battle_background_mi_dragonmysteries" | "bg_battle_background_mi_fall_from_grace" | "bg_battle_background_mi_norsegods" | "bg_battle_background_mi_halloween25";
1164
1164
  export interface EnemyElement {
1165
1165
  id: number;
1166
1166
  dragon_ids: number[];
@@ -1228,7 +1228,7 @@ export type PopupType = "/HelpView/DeityWorld" | "Default" | "DefaultCustomSlide
1228
1228
  export type SizeEnum = "Default" | "FullscreenOverlay";
1229
1229
  export interface HelpViewSlide {
1230
1230
  header_localized_key?: string;
1231
- content_localized_key?: ContentLocalizedKey;
1231
+ content_localized_key?: PurpleContentLocalizedKey;
1232
1232
  image_url?: string;
1233
1233
  custom_title_localized_key?: string;
1234
1234
  slide_type: string;
@@ -1239,7 +1239,7 @@ export interface HelpViewSlide {
1239
1239
  additional_info_img_url?: string;
1240
1240
  }
1241
1241
  export type AnimationNameEnum = "anim1";
1242
- export type ContentLocalizedKey = "" | "tid_piggy_bank_best_deal_message" | "tid_db_mastery_help_screen_1" | "tid_db_collections_help_screen_1" | "tid_db_collections_help_screen_2" | "tid_vip_tier_help_slide_1_content_{}" | "tid_vip_tier_help_slide_2_content_{}" | "tid_titans_help_slide_1_content_{}" | "tid_titans_help_slide_2_content_{}";
1242
+ export type PurpleContentLocalizedKey = "" | "tid_piggy_bank_best_deal_message" | "tid_db_mastery_help_screen_1" | "tid_db_collections_help_screen_1" | "tid_db_collections_help_screen_2" | "tid_vip_tier_help_slide_1_content_{}" | "tid_vip_tier_help_slide_2_content_{}" | "tid_titans_help_slide_1_content_{}" | "tid_titans_help_slide_2_content_{}";
1243
1243
  export interface HeroicRaces {
1244
1244
  islands: HeroicRacesIsland[];
1245
1245
  rewards: HeroicRacesReward[];
@@ -1627,7 +1627,7 @@ export interface MazeIsland {
1627
1627
  encounters: Encounter[];
1628
1628
  enemies: EnemyElement[];
1629
1629
  happy_hours: unknown[];
1630
- actions: Action[];
1630
+ actions: ActionElement[];
1631
1631
  clouds: Cloud[];
1632
1632
  currencies: Currency[];
1633
1633
  parameters: FogIslandParameter[];
@@ -1719,9 +1719,11 @@ export interface News {
1719
1719
  "4": The4;
1720
1720
  "5": The5;
1721
1721
  "6": The6;
1722
- "7": The5;
1723
- "8": The6;
1724
- "9": The9;
1722
+ "7": The10;
1723
+ "8": The10;
1724
+ "9": The6;
1725
+ "10": The10;
1726
+ "11": The11;
1725
1727
  canvas: Canva[];
1726
1728
  }
1727
1729
  export interface The0 {
@@ -1742,16 +1744,17 @@ export interface The0_HudButton {
1742
1744
  title: string;
1743
1745
  }
1744
1746
  export interface The0_Slide {
1745
- content_localized_key: string;
1746
1747
  custom_title_localized_key: string;
1747
- header_localized_key: string;
1748
1748
  image_url: string;
1749
1749
  link: string;
1750
1750
  link_button_key: string;
1751
1751
  slide_type: string;
1752
1752
  slide_type_2: string;
1753
- timer: string;
1753
+ timer?: string;
1754
1754
  times_to_show?: number;
1755
+ content_localized_key?: string;
1756
+ header_localized_key?: string;
1757
+ link_item_id?: number;
1755
1758
  }
1756
1759
  export interface The1 {
1757
1760
  active_platforms: ValueClass;
@@ -1779,7 +1782,7 @@ export interface The1_HudButton {
1779
1782
  viral_icon_tier: number;
1780
1783
  }
1781
1784
  export interface The1_Slide {
1782
- content_localized_key?: string;
1785
+ content_localized_key: FluffyContentLocalizedKey;
1783
1786
  custom_title_localized_key: string;
1784
1787
  forceClose?: boolean;
1785
1788
  header_localized_key: string;
@@ -1788,6 +1791,7 @@ export interface The1_Slide {
1788
1791
  times_to_show: number;
1789
1792
  type: SlideType;
1790
1793
  }
1794
+ export type FluffyContentLocalizedKey = "" | "tid_news_rhinodillo_desc" | "tid_news_flyingbroomsticks_desc";
1791
1795
  export interface MultipleButton {
1792
1796
  animation: AnimationNameEnum;
1793
1797
  animationPlace: AnimationPlace;
@@ -1798,8 +1802,8 @@ export interface MultipleButton {
1798
1802
  normalizedPosition: NormalizedPosition;
1799
1803
  size: SizeClass;
1800
1804
  style: Style;
1801
- spineAsset?: SpineAsset;
1802
1805
  linkItemId?: number | string;
1806
+ spineAsset?: SpineAsset;
1803
1807
  }
1804
1808
  export type AnimationPlace = "Foreground";
1805
1809
  export type Key = "tid_news_viptiers_button" | "tid_helpshift_faq_title" | "";
@@ -1814,26 +1818,35 @@ export interface SizeClass {
1814
1818
  export type SpineAsset = "pointer_animation_v2";
1815
1819
  export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1816
1820
  export type SlideType = "FullImage";
1817
- export interface The2 {
1821
+ export interface The10 {
1818
1822
  active_platforms: ValueClass;
1819
1823
  allow_island_tutorial: number;
1820
1824
  assets_name: string;
1821
1825
  direct_to_shop: number;
1822
1826
  end_ts: string;
1823
- filter_category: null;
1824
- hud_button: The1_HudButton;
1825
1827
  id: number;
1826
- label_text_tid: null;
1827
- label_title_tid: null;
1828
1828
  min_level: number;
1829
1829
  popup_frequency: string;
1830
1830
  popup_type: string;
1831
- priority: null;
1832
1831
  show_on_startup: number;
1833
1832
  slides: The1_Slide[];
1834
1833
  start_ts: string;
1835
1834
  }
1836
- export interface The3 {
1835
+ export interface The11 {
1836
+ active_platforms: ValueClass;
1837
+ allow_island_tutorial: number;
1838
+ assets_name: string;
1839
+ direct_to_shop: number;
1840
+ end_ts: string;
1841
+ hud_button: The1_HudButton;
1842
+ id: number;
1843
+ min_level: number;
1844
+ popup_type: string;
1845
+ show_on_startup: number;
1846
+ slides: The0_Slide[];
1847
+ start_ts: string;
1848
+ }
1849
+ export interface The2 {
1837
1850
  active_platforms: ValueClass;
1838
1851
  allow_island_tutorial: number;
1839
1852
  assets_name: string;
@@ -1845,91 +1858,137 @@ export interface The3 {
1845
1858
  label_text_tid: null;
1846
1859
  label_title_tid: null;
1847
1860
  min_level: number;
1861
+ popup_frequency: string;
1848
1862
  popup_type: string;
1849
1863
  priority: null;
1850
1864
  show_on_startup: number;
1851
1865
  slides: The1_Slide[];
1852
1866
  start_ts: string;
1853
1867
  }
1854
- export interface The4 {
1868
+ export interface The3 {
1855
1869
  active_platforms: ValueClass;
1856
1870
  allow_island_tutorial: number;
1857
1871
  assets_name: string;
1858
1872
  direct_to_shop: number;
1859
1873
  end_ts: string;
1860
1874
  filter_category: null;
1875
+ hud_button: The1_HudButton;
1861
1876
  id: number;
1862
1877
  label_text_tid: null;
1863
1878
  label_title_tid: null;
1864
1879
  min_level: number;
1865
1880
  popup_type: string;
1866
- priority: number;
1881
+ priority: null;
1867
1882
  show_on_startup: number;
1868
- slides: The4_Slide[];
1883
+ slides: The1_Slide[];
1869
1884
  start_ts: string;
1870
1885
  }
1871
- export interface The4_Slide {
1872
- content_localized_key: string;
1873
- custom_title_localized_key: string;
1874
- header_localized_key: string;
1875
- image_url: string;
1876
- multiple_buttons: MultipleButton[];
1877
- times_to_show: number;
1878
- type: SlideType;
1879
- }
1880
- export interface The5 {
1886
+ export interface The4 {
1881
1887
  active_platforms: ValueClass;
1882
1888
  allow_island_tutorial: number;
1883
1889
  assets_name: string;
1884
1890
  direct_to_shop: number;
1885
1891
  end_ts: string;
1886
1892
  filter_category: null;
1893
+ hud_button: The1_HudButton;
1887
1894
  id: number;
1888
1895
  label_text_tid: null;
1889
1896
  label_title_tid: null;
1890
1897
  min_level: number;
1898
+ popup_frequency: string;
1891
1899
  popup_type: string;
1892
- priority: number | null;
1900
+ priority: null;
1893
1901
  show_on_startup: number;
1894
- slides: The1_Slide[];
1902
+ slides: The0_Slide[];
1895
1903
  start_ts: string;
1896
1904
  }
1897
- export interface The6 {
1905
+ export interface The5 {
1898
1906
  active_platforms: ValueClass;
1899
1907
  allow_island_tutorial: number;
1900
1908
  assets_name: string;
1901
1909
  direct_to_shop: number;
1902
1910
  end_ts: string;
1911
+ filter_category: null;
1903
1912
  id: number;
1913
+ label_text_tid: null;
1914
+ label_title_tid: null;
1904
1915
  min_level: number;
1905
- popup_frequency: string;
1906
1916
  popup_type: string;
1917
+ priority: number;
1907
1918
  show_on_startup: number;
1908
- slides: The1_Slide[];
1919
+ slides: The5_Slide[];
1909
1920
  start_ts: string;
1910
1921
  }
1911
- export interface The9 {
1922
+ export interface The5_Slide {
1923
+ content_localized_key: string;
1924
+ custom_title_localized_key: string;
1925
+ header_localized_key: string;
1926
+ image_url: string;
1927
+ multiple_buttons: MultipleButton[];
1928
+ times_to_show: number;
1929
+ type: SlideType;
1930
+ }
1931
+ export interface The6 {
1912
1932
  active_platforms: ValueClass;
1913
1933
  allow_island_tutorial: number;
1914
1934
  assets_name: string;
1915
1935
  direct_to_shop: number;
1916
1936
  end_ts: string;
1917
- hud_button: The1_HudButton;
1937
+ filter_category: null;
1918
1938
  id: number;
1939
+ label_text_tid: null;
1940
+ label_title_tid: null;
1919
1941
  min_level: number;
1920
1942
  popup_type: string;
1943
+ priority: number | null;
1921
1944
  show_on_startup: number;
1922
- slides: The0_Slide[];
1945
+ slides: The1_Slide[];
1923
1946
  start_ts: string;
1924
1947
  }
1925
1948
  export interface Canva {
1926
1949
  id: number;
1927
1950
  assets_name: string;
1928
- start_ts: number;
1929
- end_ts: number;
1930
- min_level: number;
1931
- slides: The1_Slide[];
1932
- show_on_startup: number;
1951
+ start_ts: number | string;
1952
+ end_ts: number | string;
1953
+ min_level?: number;
1954
+ slides: CanvaSlide[];
1955
+ show_on_startup?: number;
1956
+ priority?: string;
1957
+ }
1958
+ export interface CanvaSlide {
1959
+ custom_title_localized_key?: string;
1960
+ header_localized_key?: string;
1961
+ image_url?: string;
1962
+ times_to_show?: number;
1963
+ type?: SlideType;
1964
+ multiple_buttons?: MultipleButton[];
1965
+ bg?: string;
1966
+ content?: Content[];
1967
+ edit_mode?: number;
1968
+ id?: number;
1969
+ title_key?: string;
1970
+ viral_icon_key?: string;
1971
+ viral_icon_timer?: string;
1972
+ }
1973
+ export interface Content {
1974
+ action?: ContentAction;
1975
+ height: number;
1976
+ rotation: number;
1977
+ style?: string;
1978
+ text_key: string;
1979
+ type: string;
1980
+ width: number;
1981
+ x: number;
1982
+ y: number;
1983
+ stroke?: string;
1984
+ text_color?: string;
1985
+ text_size?: number;
1986
+ timer?: number;
1987
+ }
1988
+ export interface ContentAction {
1989
+ itemId: string;
1990
+ storeCategory: number;
1991
+ type: string;
1933
1992
  }
1934
1993
  export interface Perks {
1935
1994
  abilities: Ability[];
@@ -2527,7 +2586,7 @@ export interface TowerIsland {
2527
2586
  happy_hours: HappyHour[];
2528
2587
  parameters: FogIslandParameter[];
2529
2588
  currencies: Currency[];
2530
- actions: Action[];
2589
+ actions: ActionElement[];
2531
2590
  }
2532
2591
  export interface Floor {
2533
2592
  id: number;
@@ -2703,8 +2762,8 @@ export interface MultiplierTime {
2703
2762
  multiplier_time: number;
2704
2763
  }
2705
2764
  export interface TreeOfLifePowerupRaritySeed {
2706
- max_rarity_seeds_per_grade: number[];
2707
2765
  rarity: Rarity;
2766
+ max_rarity_seeds_per_grade: number[];
2708
2767
  }
2709
2768
  export interface Visual {
2710
2769
  id: number;
@@ -2727,3 +2786,28 @@ export interface TreeOfLifeRecall {
2727
2786
  }[];
2728
2787
  multiplier_times: MultiplierTime[];
2729
2788
  }
2789
+ export interface UnlockSystem {
2790
+ unlocks: Unlock[];
2791
+ }
2792
+ export interface Unlock {
2793
+ id: string;
2794
+ enabled: boolean;
2795
+ availability?: UnlockAvailability[];
2796
+ player_segmentation: number;
2797
+ user_level?: number;
2798
+ obtain_currency?: {
2799
+ [key: string]: number;
2800
+ }[];
2801
+ segmentation_operator?: string;
2802
+ live_segmentation?: string;
2803
+ player_segmentation_type?: string;
2804
+ }
2805
+ export interface UnlockAvailability {
2806
+ from: string;
2807
+ to?: string;
2808
+ dur?: FluffyDur;
2809
+ cycle?: Cycle;
2810
+ until?: string;
2811
+ }
2812
+ export type Cycle = "42d" | "1d";
2813
+ export type FluffyDur = "1d" | "1w" | "28d" | "7d" | "196d" | "8d" | "4d" | "10d" | "14d" | "180d" | "84d" | "3d";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config",
3
- "version": "0.1.164",
3
+ "version": "0.1.166",
4
4
  "description": "A library to handle configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",