Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators
3,322
edits
No edit summary |
No edit summary |
||
Line 68: | Line 68: | ||
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#vardefine:$DPS|{{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!-- | -->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#vardefine:$DPS|{{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!-- | ||
// If dpsmodifier is given, multiply the current DPS (default 1 if not set) with the modifier and set the DPS variable to that | // If dpsmodifier is given, multiply the current DPS (default 1 if not set) with the modifier and set the DPS variable to that | ||
-->{{#if:{{{dpsmodifier|}}}|{{#vardefine:$DPS | -->{{#if:{{{dpsmodifier|}}}|{{#vardefine:$DPS|{{#expr:{{#var:$DPS|1}} * {{{dpsmodifier|}}}}}}}}}<!-- | ||
// Finally, if the DPS variable exists, set the DPS property | // Finally, if the DPS variable exists, set the DPS property | ||
-->{{#varexists:$DPS|{{#set:DPS={{#var:$DPS}}}}}}<nowiki /> | -->{{#varexists:$DPS|{{#set:DPS={{#var:$DPS}}}}}}<nowiki /> |