Difference between revisions of "User:Theaetetus/sandbox2"

From RimWorld Wiki
Jump to navigation Jump to search
(Reverting to Infobox Main current)
Line 104: Line 104:
 
     {{#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}} }}|
       {{#ifeq: {{#varexists: Attack1DPS}}|1|
+
       {{#vardefine: MobAverageDPS | {{#var: Attack1DPS}} }} }} }} }}
        {{#vardefine: MobAverageDPS | {{#var: Attack1DPS}} }} }} }} }}
+
{{#set: Mob Average DPS | {{#var: MobAverageDPS}} }}
  
 
{{#ifeq: {{#varexists: MobAverageDPS}}|1|
 
{{#ifeq: {{#varexists: MobAverageDPS}}|1|
{{#set: Mob Average DPS = {{#var: MobAverageDPS}} }}
 
 
;Average DPS
 
;Average DPS
 
:{{#var: MobAverageDPS}}}}
 
:{{#var: MobAverageDPS}}}}
Line 151: Line 150:
  
 
{{#if: {{{bodysize|}}}|
 
{{#if: {{{bodysize|}}}|
   {{#set: Body Size = {{{bodysize|}}} }}
+
   {{#set:Body Size = {{{bodysize|}}} }}
  <!-- This section only for when meat yield is overridden in the XML def-->
+
    {{#if: {{{meatyield|}}}|
  <!-- As of A14, only Thrumbo, Scyther and Centipede should have this param specified -->
+
      {{#set:Meat Yield = {{{meatyield|}}} }}|
  {{#if: {{{meatyield|}}}|
+
      {{#set:Meat Yield = {{#expr: 90 * {{{bodysize|}}} round0}} }} }}
    {{#set: Meat Yield = {{{meatyield|}}} }}
+
  {{#set:Carrying Capacity = {{#expr: 75 * {{{bodysize|}}} round0}} }}
 
;Meat Yield
 
;Meat Yield
:{{{meatyield|}}}|
+
:{{#show: {{PAGENAME}}|?Meat Yield |link=none}}
  <!-- Section end -->
+
{{#if: {{{leathername|}}}|{{#set:Leather Yield = {{#expr: 20 * {{{bodysize|}}} round0}} }}
    {{#vardefine: MeatYield | {{#expr: 90 * {{{bodysize|}}} round0}} }}
+
;Leather Yield
    {{#set: Meat Yield = {{#var: MeatYield}} }}
+
:{{#show: {{PAGENAME}}|?Leather Yield |link=none}} [[{{{leathername|}}}]] }}
;Meat Yield
 
:{{#var: MeatYield}}}}
 
  {{#vardefine: CarryingCapacity | {{#expr: 75 * {{{bodysize|}}} round0}} }}
 
  {{#set: Carrying Capacity = {{#var: CarryingCapacity}} }
 
 
;Carrying Capacity
 
;Carrying Capacity
:{{#var: CarryingCapacity}}
+
:{{#show: {{PAGENAME}}|?Carrying Capacity |link=none}}
  {{#if: {{{leathername|}}}|
+
}}
    {{#vardefine: LeatherYield | {{#expr: 20 * {{{bodysize|}}} round0}} }}
 
    {{#set: Leather Yield = {{#var: LeatherYield}} }}
 
;Leather Yield
 
:{{#var: LeatherYield}}}}}}
 
  
 
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }}
 
{{#if: {{{manhunter|}}}|{{#set:Turn Manhunter Chance When Attacked = {{{manhunter|}}} }}

Revision as of 03:04, 27 July 2016

Theaetetus


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


Template:Theaetetus/doc