Module:HeroData/doc: Difference between revisionsGive feedback
No edit summary |
Gammaton32 (talk | contribs) No edit summary |
||
| Line 99: | Line 99: | ||
* '''scaling_type''' - "Spirit" or "Level" | * '''scaling_type''' - "Spirit" or "Level" | ||
* '''hero_var''' - Key of the hero's variable that is inside either "Spirit Scaling" or "Level Scaling", see [[Data:HeroData.json]] | * '''hero_var''' - Key of the hero's variable that is inside either "Spirit Scaling" or "Level Scaling", see [[Data:HeroData.json]] | ||
* '''sig_figs_or_localize''' - OPTIONAL, # of sig figs to round to. | |||
====Examples==== | ====Examples==== | ||
| Line 104: | Line 105: | ||
{{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage}} | {{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage}} | ||
Round to 2 sig figs | |||
<pre>{{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage|2}}</pre> | |||
{{#invoke:HeroData|get_hero_scalar|hero_atlas|Level|BulletDamage|2}} | |||
=== write_infobox === | === write_infobox === | ||