Difference between revisions of "Template:Plant/Needed Per Colonist"

From RimWorld Wiki
Jump to navigation Jump to search
(Uses {Plant/Max Yield Per Day} like the old code and no longer calculate it self)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine: yield   | {{Q| {{{1}}} | Harvest Yield Max }}
+
  {{#vardefine: yield     | {{Plant/Max Yield Per Day| {{{1|Rice Plant}}} | {{{2|1}}} }}
}}{{#vardefine: days    | {{Q| {{{1}}} | Grow Days }}
+
}}{{#vardefine: harvest  | {{Q| {{{1|Rice Plant}}} | Harvested Product }}
}}{{#vardefine: fmin    | {{Q| {{{1}}} | Fertility Min }}
+
}}{{#vardefine: nutrition | {{Q| {{#var: harvest}} | Nutrition }}
}}{{#vardefine: ffactor | {{Q| {{{1}}} | Fertility Factor Growth Rate }}
+
}}{{#vardefine: hunger    | 0.8
}}{{#vardefine: resting | 0.45
+
}}{{#expr: {{#var:hunger}} / ({{#var: yield}} * {{#var: nutrition}}) round 0 }}
}}{{#ifeq: {{#show: {{{1}}}| ?In Hydroponic | link = none }}|False | - | {{#expr: ceil( 0.8 /( {{#var: yield}} * (1 - {{#var:resting}}) * (({{{2|1}}} * {{#var: ffactor}}) + 1 - {{#var: ffactor}}) / {{#var: days}}  * 0.05 )) }}
 
 
 
<noinclude>ifeq gaat na ofdat de plant 'In Hydroponic' kan groeien, false wordt als gebruikt om te vergelijken, als het false is wordt  '-' terug gegeven ander wordt de formule uitkomst terug gegeven </noinclude>
 

Latest revision as of 19:43, 27 September 2016

 Expression error: Unexpected < operator.