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)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine: yield   | {{Q| {{{1|Rice Plant}}} | Maximum Yield}}
+
  {{#vardefine: yield     | {{Plant/Max Yield Per Day| {{{1|Rice Plant}}} | {{{2|1}}} }}
}}{{#vardefine: days    | {{Q| {{{1|Rice Plant}}} | Growth Time }}
+
}}{{#vardefine: harvest  | {{Q| {{{1|Rice Plant}}} | Harvested Product }}
}}{{#vardefine: fmin    | {{Q| {{{1|Rice Plant}}} | Fertility Min }}
+
}}{{#vardefine: nutrition | {{Q| {{#var: harvest}} | Nutrition }}
}}{{#vardefine: ffactor | {{Q| {{{1|Rice Plant}}} | Fertility Factor}}
+
}}{{#vardefine: hunger    | 0.8
}}{{#vardefine: fertility | {{#expr:{{{3|1.0}}} - 1 }}
+
}}{{#expr: {{#var:hunger}} / ({{#var: yield}} * {{#var: nutrition}}) round 0 }}
}}{{#vardefine: resting | 0.45}}
 
{{#ifeq: {{#show: {{{1|Rice Plant}}}| ?In Hydroponic | link = none }}|False | 0 | {{#expr: ceil( 0.8 /( {{#var: yield}} * (1 - {{#var:resting}}) * (({{#var:fertility}} * {{#var: ffactor}}) + 1) / {{#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.