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}}} }} }}
  
;TEST 4321
+
{{#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}} }}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}} }}|
 
     {{#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}} }}|
       {{#ifeq: {{#varexists: Attack1DPS}}|1|
+
       {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }} }} }} }}
        {{#vardefine: MobAverageDPS | {{#var: Attack1DPS}} }}dps1|dps0}} }} }} }}
 
 
 
;MOB AVG DPS
 
:{{#var: MobAverageDPS}}
 
 
 
 
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
 
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
  
;Attack1DPS
+
{{#ifeq: {{#varexists: MobAverageDPS}}|1|
:{{#varexists: Attack1DPS}} ({{#var: Attack1DPS|0}})
+
;Average DPS
 
+
:{{#var: MobAverageDPS}}}}
;Attack2DPS
 
:{{#varexists: Attack2DPS}} ({{#var: Attack2DPS|0}})
 
 
 
;Attack3DPS
 
:{{#varexists: Attack3DPS}} ({{#var: Attack3DPS|0}})
 
 
 
;Attack4DPS
 
:{{#varexists: Attack4DPS}} ({{#var: Attack4DPS|0}})
 
 
 
;MobAverageDPS
 
:{{#varexists: MobAverageDPS}} ({{#var: MobAverageDPS|--}})
 
  
 
{{#if: {{{mobdamage|}}}|{{#set:Melee Damage Base = {{{mobdamage|}}} }}
 
{{#if: {{{mobdamage|}}}|{{#set:Melee Damage Base = {{{mobdamage|}}} }}

Revision as of 01:25, 27 July 2016

Theaetetus


Type
[[{{{type}}}]]


Template:Theaetetus/doc