Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 98: Line 98:
 
-->{{#if: {{{attack4stun|}}}|{{#set:Attack 4 Stun = {{{attack4stun|}}}}}<br>Stun for {{ticks|{{{attack4stun|0}}} }} }}
 
-->{{#if: {{{attack4stun|}}}|{{#set:Attack 4 Stun = {{{attack4stun|}}}}}<br>Stun for {{ticks|{{{attack4stun|0}}} }} }}
  
{{#ifeq: {{#varexists: Attack4DPS}}|1|
+
;TEST 4321
   {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}|
+
:{{#ifeq: {{#varexists: Attack4DPS}}|1|
 +
   {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}4|
 
   {{#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}} }}3|
 
     {{#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}} }}2|
       {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }} }} }} }}
+
       {{#ifeq: {{#varexists: Attack1DPS}}|1|
 +
        {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }}|dps0}} }} }} }}
 
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
 
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
  

Revision as of 23:11, 26 July 2016

Theaetetus


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


Template:Theaetetus/doc