@dchighs/dc-config 0.1.128 → 0.1.129

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.
@@ -719,7 +719,7 @@ export interface ItemsUnitsAttributeModifier {
719
719
  index?: number;
720
720
  }
721
721
  export type ItemsUnitsAttributeModifierAttribute = "attacks" | "base_attack" | "trainable_attacks" | "base_life" | "passive_skills" | "post_skills" | "speed" | "background_vfx" | "foreground_vfx";
722
- export type Behaviour = "REPLACE" | "REPLACE_BY_INDEX" | "MULTIPLY";
722
+ export type Behaviour = "REPLACE" | "REPLACE_BY_INDEX" | "MULTIPLY" | "ADD_ARRAY";
723
723
  export interface BattlesConfigElement {
724
724
  id: number;
725
725
  name: string;
@@ -960,11 +960,11 @@ export interface FogIsland {
960
960
  squares: FogIslandSquare[];
961
961
  currencies: Currency[];
962
962
  rewards: FogIslandReward[];
963
- actions: Action[];
963
+ actions: ActionElement[];
964
964
  hints: Hint[];
965
965
  parameters: FogIslandParameter[];
966
966
  }
967
- export interface Action {
967
+ export interface ActionElement {
968
968
  id: number;
969
969
  type: string;
970
970
  tid_name: string;
@@ -1134,7 +1134,7 @@ export interface GridIsland {
1134
1134
  encounters: Encounter[];
1135
1135
  enemies: EnemyElement[];
1136
1136
  currencies: Currency[];
1137
- actions: Action[];
1137
+ actions: ActionElement[];
1138
1138
  parameters: FogIslandParameter[];
1139
1139
  }
1140
1140
  export interface Decoration {
@@ -1618,7 +1618,7 @@ export interface MazeIsland {
1618
1618
  encounters: Encounter[];
1619
1619
  enemies: EnemyElement[];
1620
1620
  happy_hours: unknown[];
1621
- actions: Action[];
1621
+ actions: ActionElement[];
1622
1622
  clouds: Cloud[];
1623
1623
  currencies: Currency[];
1624
1624
  parameters: FogIslandParameter[];
@@ -1706,8 +1706,9 @@ export interface News {
1706
1706
  "2": The2;
1707
1707
  "3": The3;
1708
1708
  "4": The4;
1709
- "5": The5;
1710
- "6": The5;
1709
+ "5": The3;
1710
+ "6": The4;
1711
+ "7": The4;
1711
1712
  canvas: Canva[];
1712
1713
  }
1713
1714
  export interface The0 {
@@ -1736,29 +1737,30 @@ export interface The0_HudButton {
1736
1737
  viral_icon_tier: number;
1737
1738
  }
1738
1739
  export interface The0_Slide {
1739
- content_localized_key?: string;
1740
+ content_localized_key: string;
1740
1741
  custom_title_localized_key: string;
1741
1742
  forceClose?: boolean;
1742
1743
  header_localized_key: string;
1743
1744
  image_url: string;
1744
1745
  multiple_buttons: MultipleButton[];
1745
1746
  times_to_show: number;
1746
- type: SlideType;
1747
+ type: string;
1747
1748
  }
1748
1749
  export interface MultipleButton {
1749
1750
  animation: AnimationNameEnum;
1750
1751
  animationPlace: AnimationPlace;
1751
1752
  forceClose: boolean;
1752
1753
  glint: boolean;
1753
- key: string;
1754
+ key: Key;
1754
1755
  link: string;
1755
1756
  normalizedPosition: NormalizedPosition;
1756
1757
  size: SizeClass;
1757
- style: string;
1758
+ style: Style;
1758
1759
  linkItemId?: number;
1759
1760
  spineAsset?: SpineAsset;
1760
1761
  }
1761
1762
  export type AnimationPlace = "Foreground";
1763
+ export type Key = "tid_news_viptiers_button" | "tid_helpshift_faq_title" | "";
1762
1764
  export interface NormalizedPosition {
1763
1765
  x: number;
1764
1766
  y: number;
@@ -1768,7 +1770,7 @@ export interface SizeClass {
1768
1770
  w: number;
1769
1771
  }
1770
1772
  export type SpineAsset = "pointer_animation_v2";
1771
- export type SlideType = "FullImage";
1773
+ export type Style = "YellowLarge" | "BlueLarge" | "Transparent";
1772
1774
  export interface The1 {
1773
1775
  active_platforms: ValueClass;
1774
1776
  allow_island_tutorial: number;
@@ -1796,7 +1798,7 @@ export interface The1_Slide {
1796
1798
  slide_type: string;
1797
1799
  slide_type_2: string;
1798
1800
  timer: string;
1799
- times_to_show?: number;
1801
+ times_to_show: number;
1800
1802
  }
1801
1803
  export interface The2 {
1802
1804
  active_platforms: ValueClass;
@@ -1804,59 +1806,45 @@ export interface The2 {
1804
1806
  assets_name: string;
1805
1807
  direct_to_shop: number;
1806
1808
  end_ts: string;
1809
+ filter_category: null;
1807
1810
  hud_button: The0_HudButton;
1808
1811
  id: number;
1812
+ label_text_tid: null;
1813
+ label_title_tid: null;
1809
1814
  min_level: number;
1810
1815
  popup_type: string;
1811
- show_on_startup: number;
1812
- slides: The1_Slide[];
1813
- start_ts: string;
1814
- }
1815
- export interface The3 {
1816
- active_platforms: ValueClass;
1817
- allow_island_tutorial: number;
1818
- assets_name: string;
1819
- direct_to_shop: number;
1820
- end_ts: string;
1821
- id: number;
1822
- min_level: number;
1823
- popup_frequency: string;
1824
- popup_type: string;
1816
+ priority: null;
1825
1817
  show_on_startup: number;
1826
1818
  slides: The0_Slide[];
1827
1819
  start_ts: string;
1828
1820
  }
1829
- export interface The4 {
1821
+ export interface The3 {
1830
1822
  active_platforms: ValueClass;
1831
1823
  allow_island_tutorial: number;
1832
1824
  assets_name: string;
1833
1825
  direct_to_shop: number;
1834
1826
  end_ts: string;
1835
1827
  filter_category: null;
1836
- hud_button: The0_HudButton;
1837
1828
  id: number;
1838
1829
  label_text_tid: null;
1839
1830
  label_title_tid: null;
1840
1831
  min_level: number;
1841
1832
  popup_type: string;
1842
- priority: null;
1833
+ priority: number | null;
1843
1834
  show_on_startup: number;
1844
1835
  slides: The0_Slide[];
1845
1836
  start_ts: string;
1846
1837
  }
1847
- export interface The5 {
1838
+ export interface The4 {
1848
1839
  active_platforms: ValueClass;
1849
1840
  allow_island_tutorial: number;
1850
1841
  assets_name: string;
1851
1842
  direct_to_shop: number;
1852
1843
  end_ts: string;
1853
- filter_category: null;
1854
1844
  id: number;
1855
- label_text_tid: null;
1856
- label_title_tid: null;
1857
1845
  min_level: number;
1846
+ popup_frequency: string;
1858
1847
  popup_type: string;
1859
- priority: null;
1860
1848
  show_on_startup: number;
1861
1849
  slides: The0_Slide[];
1862
1850
  start_ts: string;
@@ -1864,11 +1852,46 @@ export interface The5 {
1864
1852
  export interface Canva {
1865
1853
  id: number;
1866
1854
  assets_name: string;
1867
- start_ts: number;
1868
- end_ts: number;
1869
- min_level: number;
1870
- slides: The0_Slide[];
1871
- show_on_startup: number;
1855
+ start_ts: number | string;
1856
+ end_ts: number | string;
1857
+ min_level?: number;
1858
+ slides: CanvaSlide[];
1859
+ show_on_startup?: number;
1860
+ }
1861
+ export interface CanvaSlide {
1862
+ custom_title_localized_key?: string;
1863
+ header_localized_key?: string;
1864
+ image_url?: string;
1865
+ times_to_show?: number;
1866
+ type?: string;
1867
+ multiple_buttons?: MultipleButton[];
1868
+ bg?: string;
1869
+ content?: Content[];
1870
+ edit_mode?: number;
1871
+ id?: number;
1872
+ title_key?: string;
1873
+ viral_icon_key?: string;
1874
+ viral_icon_timer?: string;
1875
+ }
1876
+ export interface Content {
1877
+ height: number;
1878
+ rotation: number;
1879
+ stroke?: string;
1880
+ text_color?: string;
1881
+ text_key: string;
1882
+ text_size?: number;
1883
+ timer?: number;
1884
+ type: string;
1885
+ width: number;
1886
+ x: number;
1887
+ y: number;
1888
+ action?: ContentAction;
1889
+ style?: string;
1890
+ }
1891
+ export interface ContentAction {
1892
+ itemId: string;
1893
+ storeCategory: number;
1894
+ type: string;
1872
1895
  }
1873
1896
  export interface Perks {
1874
1897
  abilities: Ability[];
@@ -2458,7 +2481,7 @@ export interface TowerIsland {
2458
2481
  happy_hours: HappyHour[];
2459
2482
  parameters: FogIslandParameter[];
2460
2483
  currencies: Currency[];
2461
- actions: Action[];
2484
+ actions: ActionElement[];
2462
2485
  }
2463
2486
  export interface Floor {
2464
2487
  id: number;
@@ -2634,8 +2657,8 @@ export interface MultiplierTime {
2634
2657
  multiplier_time: number;
2635
2658
  }
2636
2659
  export interface TreeOfLifePowerupRaritySeed {
2637
- max_rarity_seeds_per_grade: number[];
2638
2660
  rarity: Rarity;
2661
+ max_rarity_seeds_per_grade: number[];
2639
2662
  }
2640
2663
  export interface Visual {
2641
2664
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dchighs/dc-config",
3
- "version": "0.1.128",
3
+ "version": "0.1.129",
4
4
  "description": "A library to handle configuration for Dragon City.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",