Home
Random
Log in
Settings
About the Deadlock Wiki
Search
Editing
Module
:
GenericData/doc
Give feedback
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
=Overview= Provides access to generic/miscellaneous data from [[Data:GenericData.json]] =Functions= ==get_objective_param== Provides access to "ObjectiveParams" data. ===Parameters=== * '''key''' - key to access ===Examples=== <code><nowiki>{{#invoke:GenericData|get_objective_param|Tier1GoldKill}}</nowiki></code> {{#invoke:GenericData|get_objective_param|Tier1GoldKill}} ==get_rejuv_param== Provides access to data related to the Rejuvenator. '''Note:''' Some values (e.g., buff stats like <code>MaxHP</code>) 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=== * '''key''' - The key to access (e.g., <code>MaxHP</code>, <code>RejuvinatorRebirthDuration</code>). * '''index''' - (OPTIONAL) The list index to access if the key's value is an array. ===Examples=== <code><nowiki>{{#invoke:GenericData|get_rejuv_param|MaxHP}}</nowiki></code> {{#invoke:GenericData|get_rejuv_param|MaxHP}} <code><nowiki>{{#invoke:GenericData|get_rejuv_param|RejuvinatorRebirthDuration|1}}</nowiki></code> {{#invoke:GenericData|get_rejuv_param|RejuvinatorRebirthDuration|1}} ==get_tiered_item_price== Provides access to "ItemPricePerTier" data. ===Parameters=== * '''tier''' - The list index to access, which represents the tier of the item. ===Examples=== <code><nowiki>{{#invoke:GenericData|get_tiered_item_price|5}}</nowiki></code> {{#invoke:GenericData|get_tiered_item_price|5}} ==get_trooper_gold_share_frac== Provides access to "TrooperKillGoldShareFrac" data (soul distribution percentages when multiple players kill a lane trooper). ===Parameters=== * '''index''' - The number of players splitting the souls (1 = solo, 2 = duo, etc.). ===Examples=== <code><nowiki>{{#invoke:GenericData|get_trooper_gold_share_frac|3}}</nowiki></code> {{#invoke:GenericData|get_trooper_gold_share_frac|3}} ==get_hero_gold_share_frac== Provides access to "HeroKillGoldShareFrac" data (soul distribution percentages when multiple players kill an enemy hero). ===Parameters=== * '''index''' - The number of players splitting the souls (1 = solo, 2 = duo, etc.). ===Examples=== <code><nowiki>{{#invoke:GenericData|get_hero_gold_share_frac|4}}</nowiki></code> {{#invoke:GenericData|get_hero_gold_share_frac|4}} ==get_streetbrawl_param== Provides access to "StreetBrawl" data (respawn times, gold per round, objective health, etc.). ===Parameters=== * '''key''' - The key to access (e.g., <code>m_vecGoldPerRound</code>, <code>m_iScoreToWin</code>). * '''index''' - (OPTIONAL) The list index to access if the key's value is an array (e.g., <code>1</code> for Round 1). If omitted, returns a comma-separated list of all values. ===Examples=== <code><nowiki>{{#invoke:GenericData|get_streetbrawl_param|m_iScoreToWin}}</nowiki></code> {{#invoke:GenericData|get_streetbrawl_param|m_iScoreToWin}}
Summary:
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Pages included on this page:
Module:GenericData
(
edit
)
Data:GenericData.json
(
view source
) (⧼restriction-level-bot+⧽)