Editing Module:GenericData/doc

Jump to navigation Jump to search
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.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 10: Line 10:


===Examples===
===Examples===
<code><nowiki>{{#invoke:GenericData|get_objective_param|Tier1GoldKill}}</nowiki></code>
<code><nowiki>{{#invoke:GenericData|get_objective_param|GoldPerOrb}}</nowiki></code>


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


==get_rejuv_param==
==get_rejuv_param==
Provides access to data related to the Rejuvenator.
Provides access to "RejuvParams" data.
 
'''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===
===Parameters===
* '''key''' - The key to access (e.g., <code>MaxHP</code>, <code>RejuvinatorRebirthDuration</code>).
* '''key''' - key to access
* '''index''' - (OPTIONAL) The list index to access if the key's value is an array.
* '''midboss_deaths''' - (OPTIONAL) list index to access that represents how many times midboss has died, if the provided key's value is a list


===Examples===
===Examples===
<code><nowiki>{{#invoke:GenericData|get_rejuv_param|MaxHP}}</nowiki></code>
<code><nowiki>{{#invoke:GenericData|get_rejuv_param|RejuvinatorExpirationWarningTiming}}</nowiki></code>


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


<code><nowiki>{{#invoke:GenericData|get_rejuv_param|RejuvinatorRebirthDuration|1}}</nowiki></code>
<code><nowiki>{{#invoke:GenericData|get_rejuv_param|TrooperHealthMult|3}}</nowiki></code>


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


==get_tiered_item_price==
==get_tiered_item_price==
Line 36: Line 34:


===Parameters===
===Parameters===
* '''tier''' - The list index to access, which represents the tier of the item.
* '''tier''' - list index to access that represents the tier of the item


===Examples===
===Examples===
Line 43: Line 41:
{{#invoke:GenericData|get_tiered_item_price|5}}
{{#invoke:GenericData|get_tiered_item_price|5}}


==get_trooper_gold_share_frac==
==get_lane_phase_gold_share_frac==
Provides access to "TrooperKillGoldShareFrac" data (soul distribution percentages when multiple players kill a lane trooper).
Provides access to "LanePhaseGoldShareFrac" 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===
===Parameters===
* '''index''' - The number of players splitting the souls (1 = solo, 2 = duo, etc.).
* '''index''' - Number of players splitting the souls (1 = solo, 2 = duo, etc.)


===Examples===
===Examples===
<code><nowiki>{{#invoke:GenericData|get_hero_gold_share_frac|4}}</nowiki></code>
<code><nowiki>{{#invoke:GenericData|get_lane_phase_gold_share_frac|1}}</nowiki></code>
 
{{#invoke:GenericData|get_lane_phase_gold_share_frac|1}}
{{#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_lane_phase_gold_share_frac|2}}</nowiki></code>
<code><nowiki>{{#invoke:GenericData|get_streetbrawl_param|m_iScoreToWin}}</nowiki></code>
{{#invoke:GenericData|get_lane_phase_gold_share_frac|2}}


{{#invoke:GenericData|get_streetbrawl_param|m_iScoreToWin}}
<code><nowiki>{{#invoke:GenericData|get_lane_phase_gold_share_frac|3}}</nowiki></code>
{{#invoke:GenericData|get_lane_phase_gold_share_frac|3}}
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: