Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 97: Line 97:
 
:{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{ticks|{{{attack4cool|0}}}}} }}<!--
 
:{{{attack4part|Body part?}}}<br>{{{attack4dmg|?}}} dmg ({{{attack4type|type?}}})<br>{{ticks|{{{attack4cool|0}}}}} }}<!--
 
-->{{#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|
 +
  {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}} + {{#var: Attack4DPS}})/4 round 2}} }}|
 +
  {{#ifeq: {{#varexists: Attack3DPS}}|1|
 +
    {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}} + {{#var: Attack3DPS}})/3 round 2}} }}|
 +
    {{#ifeq: {{#varexists: Attack2DPS}}|1|
 +
      {{#vardefine: MobAverageDPS = {{#expr: ({{#var: Attack1DPS}} + {{#var: Attack2DPS}})/2 round 2}} }}|
 +
      {{#vardefine: MobAverageDPS = {{#var: Attack1DPS}} }} }}
  
 
;Attack1DPS
 
;Attack1DPS

Revision as of 23:04, 26 July 2016

Theaetetus


Type
[[{{{type}}}]]
{{#ifeq: |1| | {{#ifeq: |1| |
Attack1DPS
(0)
Attack2DPS
(0)
Attack3DPS
(0)
Attack4DPS
(0)
ALL TIMES
Expression error: Unexpected * operator.


Template:Theaetetus/doc