Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 100: Line 100:
 
;TEST 4321
 
;TEST 4321
 
:{{#ifeq: {{#varexists: Attack4DPS}}|1|
 
:{{#ifeq: {{#varexists: Attack4DPS}}|1|
   {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}dps4|
+
   {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}dps4|
 
   {{#ifeq: {{#varexists: Attack3DPS}}|1|
 
   {{#ifeq: {{#varexists: Attack3DPS}}|1|
     {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 round 2}} }}dps3|
+
     {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 round 2}} }}dps3|
 
     {{#ifeq: {{#varexists: Attack2DPS}}|1|
 
     {{#ifeq: {{#varexists: Attack2DPS}}|1|
       {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 round 2}} }}dps2|
+
       {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 round 2}} }}dps2|
 
       {{#ifeq: {{#varexists: Attack1DPS}}|1|
 
       {{#ifeq: {{#varexists: Attack1DPS}}|1|
         {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }}dps1|dps0}} }} }} }}
+
         {{#vardefine: MobAverageDPS | {{#var: Attack1DPS}} }}dps1|dps0}} }} }} }}
  
 
;MOB AVG DPS
 
;MOB AVG DPS

Revision as of 00:29, 27 July 2016

Theaetetus


Type
[[{{{type}}}]]
TEST 4321
dps0
MOB AVG DPS
Attack1DPS
(0)
Attack2DPS
(0)
Attack3DPS
(0)
Attack4DPS
(0)
MobAverageDPS
(--)


Template:Theaetetus/doc