Template:RitsuTest: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 27: Line 27:


<!-- total damage calculation, missing dmg specified as 0 to omit the need to write multiple conditions -->
<!-- total damage calculation, missing dmg specified as 0 to omit the need to write multiple conditions -->
{{#vardefine: total_damage |{{#expr: ({{#var:dmg1}} * {{#var:hits1}}) + ({{#var:dmg2}} * {{#var:hits2}}) + ({{#var:dmg3}} * {{#var:hits3}}) + {{#var:dmg4}} * {{#var:hits4}} + {{#var:dmg5}} * {{#var:hits5}} }} }}
{{#vardefine: total_damage |{{#expr: ({{#var:dmg1}} * {{#var:hits1}}) + ({{#var:dmg2}} * {{#var:hits2}}) + ({{#var:dmg3}} * {{#var:hits3}}) + ({{#var:dmg4}} * {{#var:hits4}}) + ({{#var:dmg5}} * {{#var:hits5}}) }} }}
<!-- with useful, if exists -->
<!-- with useful, if exists -->
{{#if:{{{useful|}}}
{{#if:{{{useful|}}}

Revision as of 13:06, 13 March 2022