Module:HeroData/doc: Difference between revisions

Jump to navigation Jump to search
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 Parameters: phrasing for note
Line 19: Line 19:
* '''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====