Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
Line 59: Line 59:
 
   {{#set:Attack 1 Part = {{{attack1part|}}} }}
 
   {{#set:Attack 1 Part = {{{attack1part|}}} }}
 
   {{#set:Attack 1 Cooldown = {{{attack1cool|}}} }}
 
   {{#set:Attack 1 Cooldown = {{{attack1cool|}}} }}
 +
  {{#vardefine: Attack1DPS | {{#expr: {{{attack1dmg|}}} / ({{{attack1cool}}} / 60) }} }}
 +
  {{#set: Attack 1 DPS = {{#var: Attack1DPS}} }}
 +
;TEST
 +
:.{{#if: {{#var: Attack1DPS}} | TRUE | FALSE}}
 
;Attack{{#if: {{{attack2dmg|}}}| 1}}
 
;Attack{{#if: {{{attack2dmg|}}}| 1}}
 
:{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{ticks|{{{attack1cool|0}}}}} }}<!--
 
:{{{attack1part|Body part?}}}<br>{{{attack1dmg|?}}} dmg ({{{attack1type|type?}}})<br>{{ticks|{{{attack1cool|0}}}}} }}<!--

Revision as of 21:59, 26 July 2016

Theaetetus


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


Template:Theaetetus/doc