Template:Ammo conservation

From Terraria Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Ammo conservation/doc. (edit | history)

This template is used to display the total ammo conservation achieved when combining multiple items. Ammo conservation chances are not simply added when stacked, and this template shortens the longer calculations.

Usage

{{ ammo conservation | <ammo conservation chance of item 1> | <ammo conservation chance of item 2> | ... | <ammo conservation chance of item n> }}

Unnamed parameters

Ammo conservation chances of the items, one per parameter. Values must be valid {{#expr:}} syntax (e.g. fractions, decimals, etc.) and can also be empty.

Examples

Code Result
Phantasm + Magic Quiver + Ammo Box: {{ammo conservation|2/3|1/5|1/5}} Phantasm + Magic Quiver + Ammo Box: 78.67%
{{ammo conservation|0.66667|||(15 mod 10)^sin(3*pi/2)|1/5}} 78.67%