Template:DPS
From Space Station 14 Wiki
Has an alias
This template has an alternative name:
Usage
{{dps
Example
Simple
{{dps
↓
32
With rounding
{{dps
↓
≈8.3
With a damage type template
{{damage|blunt|{{dps|8|4}}}}
↓
32 blunt
Errors
No fire rate provided
{{dps
↓
Fire rate parameter (second) not provided≈Expression error: Unexpected < operator.
No damage provided
{{dps}}
↓
Damage parameter (first) not provided≈Expression error: Unexpected < operator.Calculates DPS based on damage (first parameter) and fire rate per second (second parameter). By default, the resulting value is rounded to 1 digit. If rounding happens, an approximately equal sign "≈" will be added.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Damage | 1 | no description
| Number | required |
Fire rate (per second) | 2 | no description
| Number | required |
Round | round | Digits to round.
| Number | suggested |