Editing Template:Plant/Needed Per Colonist
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{#vardefine: yield | {{Q| {{{1|Rice Plant}}} | Maximum Yield}} | |
− | }}{{#vardefine: | + | }}{{#vardefine: days | {{Q| {{{1|Rice Plant}}} | Growth Time }} |
− | }}{{#vardefine: | + | }}{{#vardefine: fmin | {{Q| {{{1|Rice Plant}}} | Fertility Min }} |
− | }}{{#vardefine: | + | }}{{#vardefine: ffactor | {{Q| {{{1|Rice Plant}}} | Fertility Factor}} |
− | }}{{#expr: {{#var: | + | }}{{#vardefine: fertility | {{#expr:{{{2|1.0}}} - 1 }} |
+ | }}{{#vardefine: resting | 0.45}} | ||
+ | {{#ifeq: {{#show: {{{1|Rice Plant}}}| ?In Ground | 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 Ground ' kan groeien, false wordt als gebruikt om te vergelijken, als het false is wordt '-' terug gegeven ander wordt de formule uitkomst terug gegeven </noinclude> |