Template:Charge

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

This template is used to automatically generate the values for charge durations for Draedon's Arsenal weapons.

Usage

The first three unnamed parameters represent the charge per use, maximum charge and usetime respectively. Specifying the holdout parameter changes the definition of the first unnamed parameter to be the charge per frame instead,

Examples

{{charge|0.05|50|24}} → The weapon consumes 0.05 units of charge per use and has a maximum charge of 50. As such, the weapon can be used continuously from full charge 1000 times, or for 6 minutes and 40 seconds.

{{charge|0.002|85|16|holdout=yes}} → The weapon consumes 0.002 units of charge for each frame the weapon is held (totaling 0.032 units of charge per use) and has a maximum charge of 85. As such, the weapon can be used continuously from full charge for 11 minutes and 48 seconds.