Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 99: Line 99:
  
 
{{#ifeq: {{#varexists: Attack4DPS}}|1|
 
{{#ifeq: {{#varexists: Attack4DPS}}|1|
   {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}|
+
   {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}|
 
   {{#ifeq: {{#varexists: Attack3DPS}}|1|
 
   {{#ifeq: {{#varexists: Attack3DPS}}|1|
     {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 round 2}} }}|
+
     {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 round 2}} }}|
 
     {{#ifeq: {{#varexists: Attack2DPS}}|1|
 
     {{#ifeq: {{#varexists: Attack2DPS}}|1|
       {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 round 2}} }}|
+
       {{#vardefine: MobAverageDPS | {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 round 2}} }}|
       {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }} }} }} }}
+
       {{#vardefine: MobAverageDPS | {{#var: Attack1DPS}} }} }} }} }}
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
+
{{#set: Mob Average DPS | {{#var: MobAverageDPS}} }}
  
 
{{#ifeq: {{#varexists: MobAverageDPS}}|1|
 
{{#ifeq: {{#varexists: MobAverageDPS}}|1|

Revision as of 01:30, 27 July 2016

Theaetetus


Type
[[{{{type}}}]]
Average DPS


Template:Theaetetus/doc