Difference between revisions of "Template:Meal Comparison Row"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
|-
 
|-
| {{DLC Icons|{{{1}}}}}  || {{Icon Small|silver||{{Market Value | {{Q|{{{1}}}|Market Value Base}}}}}}   
+
| {{DLC Icons|{{{1}}}}}   
| {{#if: {{Q|{{{1}}}|Resource 3 Amount}}|3|{{#if: {{Q|{{{1}}}|Resource 2 Amount}}|2|1}}}} || {{#vardefineecho: nutritionIn |{{#expr: {{Q|{{{1}}}|Resource 1 Amount}} + {{Q|{{{1}}}|Resource 2 Amount}} - 0}}}} || {{#vardefineecho: nutritionOut|{{Q|{{{1}}}|Nutrition}}}}|| {{%|{{#var:nutritionOut}}/{{#var:nutritionIn}}}} || {{Q|{{{1}}}|Taste}} || {{Ticks|{{Q|{{{1}}}|Work To Make}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
| {{Icon Small|silver||{{Market Value | {{Q|{{{1}}}|Market Value Base}}}}}}   
 +
| {{#if: {{Q|{{{1}}}|Resource 3 Amount}}|3|{{#if: {{Q|{{{1}}}|Resource 2 Amount}}|2|{{#if: {{Q|{{{1}}}|Resource 1 Amount}}|1|''n/a''}}}}}}
 +
| {{#ifexpr:{{#vardefineecho: nutritionIn |{{#expr: {{Q|{{{1}}}|Resource 1 Amount|0}} + {{Q|{{{1}}}|Resource 2 Amount|0}}}}}}>0|{{#var:nutritionIn}}|''n/a''}}  
 +
| {{#vardefineecho: nutritionOut|{{#expr:{{Q|{{{1}}}|Nutrition}}*{{Q|{{{1}}}|Product Amount|1}}}}}}
 +
| {{#ifexpr:{{#var:nutritionIn}}>0|{{%|{{#var:nutritionOut}}/{{#var:nutritionIn}}}}|''n/a''}}
 +
| {{Q|{{{1}}}|Taste}}  
 +
| {{Ticks|{{Q|{{{1}}}|Work To Make|0}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 12:07, 9 July 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

Makes the rows for the table below:

Name Market Value Ingredient Count Nutrients Required Nutrient Yield Nutrient Efficiency Taste Skill Work To Make
Simple meal Silver 15 1 0.5 0.9 180% Simple 300 ticks (5 secs)
Fine meal Silver 20 2 0.5 0.9 180% Fine 450 ticks (7.5 secs)
Lavish meal Silver 40 2 1 1 100% Lavish 800 ticks (13.33 secs)
Packaged survival meal Silver 24 2 0.6 0.9 150% Simple 450 ticks (7.5 secs)
Carnivore fine meal Silver 20 1 0.75 0.9 120% Fine 450 ticks (7.5 secs)
Carnivore lavish meal Silver 40 1 1.25 1 80% Lavish 800 ticks (13.33 secs)
Vegetarian fine meal Silver 20 1 0.75 0.9 120% Fine 450 ticks (7.5 secs)
Vegetarian lavish meal Silver 40 1 1.25 1 80% Lavish 800 ticks (13.33 secs)
Nutrient paste meal Silver 10 1 0.3 0.9 300% Awful ticks (0 secs)
Pemmican Silver 1.4 2 0.5 0.8 160% Simple 700 ticks (11.67 secs)
Kibble Silver 1.1 2 2 2.5 125% Raw 450 ticks (7.5 secs)
Chocolate Silver 3 n/a n/a 0.1 n/a Fine ticks (0 secs)
Baby food Content added by the Biotech DLC Silver 1.25 1 0.25 0.5 200% Terrible 450 ticks (7.5 secs)