Difference between revisions of "Template:Item/Resource"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{ #vardefine: name | {{{?Name | Packaged Survival Meal}}} }}{{#vardefine: value | {{Q| {{#var:name}} | Market Value Base }} }}{{#vardefine: nutrit...")
 
Line 5: Line 5:
 
}}{{#vardefine: deterioration | {{Q| {{#var:name}} | Deterioration Rate Base }}
 
}}{{#vardefine: deterioration | {{Q| {{#var:name}} | Deterioration Rate Base }}
 
}}{{#vardefine: hitpoints    | {{Q| {{#var:name}} | Max Health Base }}
 
}}{{#vardefine: hitpoints    | {{Q| {{#var:name}} | Max Health Base }}
}}{{#vardefine: lasts        | {{#expr: {{#var:hitpoints}} / {{#var:deterioration}} }}
+
}}{{#vardefine: lasts        | {{#ifexpr: {{#var:deterioration}} > 0 | {{#expr: {{#var:hitpoints}} / {{#var:deterioration}} }} | forever }}
 
}}<div style='float: left; width: 15em; margin: 1em; padding: 0.25em'
 
}}<div style='float: left; width: 15em; margin: 1em; padding: 0.25em'
 
><div style='border-bottom: 3px solid #080'
 
><div style='border-bottom: 3px solid #080'

Revision as of 14:39, 7 April 2015

[[|none|32px|link= Packaged Survival Meal ]]
Packaged Survival Meal
  • ' silver
  • ' nutrition
  • ' per stack
  • lasts Expression error: Unexpected > operator.' days outside