Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Suppressors, Administrators
3,324
edits
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
{{!}} class="infobox-detail" {{!}} <span title="Attacks per second ({{{attackspeed}}} ms)">{{#var:$attackspeed}}</span> {{#set:Attackspeed={{#var:$attackspeed}}}}<!-- | {{!}} class="infobox-detail" {{!}} <span title="Attacks per second ({{{attackspeed}}} ms)">{{#var:$attackspeed}}</span> {{#set:Attackspeed={{#var:$attackspeed}}}}<!-- | ||
// If we have set attack speed and damage, set the DPS too | // If we have set attack speed and damage, set the DPS too | ||
-->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<nowiki /> | -->{{#if:{{#show:{{FULLPAGENAME}}|?Damage=}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?Damage=}} * {{#var:$attackspeed}}}}}}}}<!-- | ||
// If dpsmodifier is given, multiply the dps | |||
-->{{#if:{{{dpsmodifier|}}}|{{#set:DPS={{#expr:{{#show:{{FULLPAGENAME}}|?DPS=|default=1}} * {{{dpsmodifier|}}}}}}}}}<!-- | |||
<nowiki /> | |||
}}<nowiki /> | }}<nowiki /> | ||
{{#if:{{{attackcooldown|}}} |<nowiki /> | {{#if:{{{attackcooldown|}}} |<nowiki /> |