Toggle menu
517
2.5K
889
23.2K
Deadlock Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:HeroData/doc: Difference between revisions

From Deadlock Wiki
Sur (talk | contribs)
m added hero_key example to get_list_elem, and added info that its preferred and recommended to use hero key over hero name in english
Sur (talk | contribs)
m reference HeroData/nav and HeroData/release
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation|contents=
Also see:
* [[Module:HeroData/nav]] - For nav box purposes
* [[Module:HeroData/release]] - For determining the release status of a hero
== Overview ==
== Overview ==


Line 19: Line 24:
* '''sig_figs_or_localize''' - OPTIONAL, # of sig figs to round to if retrieving a float, or "true" if its a string that should be localized. See Localizable values section.
* '''sig_figs_or_localize''' - OPTIONAL, # of sig figs to round to if retrieving a float, or "true" if its a string that should be localized. See Localizable values section.


Note: Recommended to use hero key where possible, i.e. hero_atlas as its O(1) instead of hero name (Abrams) which is O(N).
Note: Recommended to use hero key where possible, i.e. hero_atlas as its O(1) time complexity instead of hero name (Abrams) which is O(N).


====Examples====
====Examples====
Line 136: Line 141:
* elements in WeaponTypes
* elements in WeaponTypes
* elements in RecommendedItems
* elements in RecommendedItems
}}