@dchighs/dc-config 0.1.165 → 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;
@@ -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[];
@@ -1719,9 +1719,11 @@ export interface News {
1719
1719
  "4": The4;
1720
1720
  "5": The5;
1721
1721
  "6": The6;
1722
- "7": The6;
1723
- "8": The5;
1722
+ "7": The10;
1723
+ "8": The10;
1724
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;
1754
- times_to_show: number;
1753
+ timer?: string;
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;
@@ -1799,8 +1802,8 @@ export interface MultipleButton {
1799
1802
  normalizedPosition: NormalizedPosition;
1800
1803
  size: SizeClass;
1801
1804
  style: Style;
1802
- spineAsset?: SpineAsset;
1803
1805
  linkItemId?: number | string;
1806
+ spineAsset?: SpineAsset;
1804
1807
  }
1805
1808
  export type AnimationPlace = "Foreground";
1806
1809
  export type Key = "tid_news_viptiers_button" | "tid_helpshift_faq_title" | "";
@@ -1815,6 +1818,34 @@ export interface SizeClass {
1815
1818
  export type SpineAsset = "pointer_animation_v2";
1816
1819
  export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1817
1820
  export type SlideType = "FullImage";
1821
+ export interface The10 {
1822
+ active_platforms: ValueClass;
1823
+ allow_island_tutorial: number;
1824
+ assets_name: string;
1825
+ direct_to_shop: number;
1826
+ end_ts: string;
1827
+ id: number;
1828
+ min_level: number;
1829
+ popup_frequency: string;
1830
+ popup_type: string;
1831
+ show_on_startup: number;
1832
+ slides: The1_Slide[];
1833
+ start_ts: string;
1834
+ }
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
+ }
1818
1849
  export interface The2 {
1819
1850
  active_platforms: ValueClass;
1820
1851
  allow_island_tutorial: number;
@@ -1859,25 +1890,18 @@ export interface The4 {
1859
1890
  direct_to_shop: number;
1860
1891
  end_ts: string;
1861
1892
  filter_category: null;
1893
+ hud_button: The1_HudButton;
1862
1894
  id: number;
1863
1895
  label_text_tid: null;
1864
1896
  label_title_tid: null;
1865
1897
  min_level: number;
1898
+ popup_frequency: string;
1866
1899
  popup_type: string;
1867
- priority: number;
1900
+ priority: null;
1868
1901
  show_on_startup: number;
1869
- slides: The4_Slide[];
1902
+ slides: The0_Slide[];
1870
1903
  start_ts: string;
1871
1904
  }
1872
- export interface The4_Slide {
1873
- content_localized_key: string;
1874
- custom_title_localized_key: string;
1875
- header_localized_key: string;
1876
- image_url: string;
1877
- multiple_buttons: MultipleButton[];
1878
- times_to_show: number;
1879
- type: SlideType;
1880
- }
1881
1905
  export interface The5 {
1882
1906
  active_platforms: ValueClass;
1883
1907
  allow_island_tutorial: number;
@@ -1890,21 +1914,33 @@ export interface The5 {
1890
1914
  label_title_tid: null;
1891
1915
  min_level: number;
1892
1916
  popup_type: string;
1893
- priority: number | null;
1917
+ priority: number;
1894
1918
  show_on_startup: number;
1895
- slides: The1_Slide[];
1919
+ slides: The5_Slide[];
1896
1920
  start_ts: string;
1897
1921
  }
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
+ }
1898
1931
  export interface The6 {
1899
1932
  active_platforms: ValueClass;
1900
1933
  allow_island_tutorial: number;
1901
1934
  assets_name: string;
1902
1935
  direct_to_shop: number;
1903
1936
  end_ts: string;
1937
+ filter_category: null;
1904
1938
  id: number;
1939
+ label_text_tid: null;
1940
+ label_title_tid: null;
1905
1941
  min_level: number;
1906
- popup_frequency: string;
1907
1942
  popup_type: string;
1943
+ priority: number | null;
1908
1944
  show_on_startup: number;
1909
1945
  slides: The1_Slide[];
1910
1946
  start_ts: string;
@@ -1917,6 +1953,7 @@ export interface Canva {
1917
1953
  min_level?: number;
1918
1954
  slides: CanvaSlide[];
1919
1955
  show_on_startup?: number;
1956
+ priority?: string;
1920
1957
  }
1921
1958
  export interface CanvaSlide {
1922
1959
  custom_title_localized_key?: string;
@@ -1934,19 +1971,19 @@ export interface CanvaSlide {
1934
1971
  viral_icon_timer?: string;
1935
1972
  }
1936
1973
  export interface Content {
1974
+ action?: ContentAction;
1937
1975
  height: number;
1938
1976
  rotation: number;
1939
- stroke?: string;
1940
- text_color?: string;
1977
+ style?: string;
1941
1978
  text_key: string;
1942
- text_size?: number;
1943
- timer?: number;
1944
1979
  type: string;
1945
1980
  width: number;
1946
1981
  x: number;
1947
1982
  y: number;
1948
- action?: ContentAction;
1949
- style?: string;
1983
+ stroke?: string;
1984
+ text_color?: string;
1985
+ text_size?: number;
1986
+ timer?: number;
1950
1987
  }
1951
1988
  export interface ContentAction {
1952
1989
  itemId: string;
@@ -2749,3 +2786,28 @@ export interface TreeOfLifeRecall {
2749
2786
  }[];
2750
2787
  multiplier_times: MultiplierTime[];
2751
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.165",
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",