Jump to content

The wiki is in the process of updating to the latest major game changes. Any contributions are appreciated!
Start here to learn how to edit and join our Discord server to make suggestions.

Module:GenericData/doc

From The Deadlock Wiki

This is the documentation page for Module:GenericData

Overview[edit source]

Provides access to generic/miscellaneous data from Data:GenericData.json

Functions[edit source]

get_objective_param[edit source]

Provides access to "ObjectiveParams" data.

Parameters[edit source]

  • key - key to access

Examples[edit source]

{{#invoke:GenericData|get_objective_param|Tier1GoldKill}}

1000

get_rejuv_param[edit source]

Provides access to data related to the Rejuvenator.

Note: Some values (e.g., buff stats like MaxHP) are hard-coded in the module, while others are read from the "RejuvParams" table in Data:GenericData.json. Some JSON parameters may be for obsolete mechanics.

Parameters[edit source]

  • key - The key to access (e.g., MaxHP, RejuvinatorRebirthDuration).
  • index - (OPTIONAL) The list index to access if the key's value is an array.

Examples[edit source]

{{#invoke:GenericData|get_rejuv_param|MaxHP}}

15%

{{#invoke:GenericData|get_rejuv_param|RejuvinatorRebirthDuration|1}}

240

get_tiered_item_price[edit source]

Provides access to "ItemPricePerTier" data.

Parameters[edit source]

  • tier - The list index to access, which represents the tier of the item.

Examples[edit source]

{{#invoke:GenericData|get_tiered_item_price|5}}

6400

get_trooper_gold_share_frac[edit source]

Provides access to "TrooperKillGoldShareFrac" data (soul distribution percentages when multiple players kill a lane trooper).

Parameters[edit source]

  • index - The number of players splitting the souls (1 = solo, 2 = duo, etc.).

Examples[edit source]

{{#invoke:GenericData|get_trooper_gold_share_frac|3}}

28%

get_hero_gold_share_frac[edit source]

Provides access to "HeroKillGoldShareFrac" data (soul distribution percentages when multiple players kill an enemy hero).

Parameters[edit source]

  • index - The number of players splitting the souls (1 = solo, 2 = duo, etc.).

Examples[edit source]

{{#invoke:GenericData|get_hero_gold_share_frac|4}}

21%