Template:FarmingCrops/row: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 2: Line 2:
<includeonly><tr>
<includeonly><tr>
<td>[[File:FarmCrop{{#var:index}}.png]]{{{name|Apple}}}</td>
<td>[[File:FarmCrop{{#var:index}}.png]]{{{name|Apple}}}</td>
<td>{{#switch:{{#lowercase:{{{seedtype|Basic}}}}}
<td>{{#invoke:CropCals|evochance|Type={{#lowercase:{{{seedtype|Basic}}}}}|CropIndex={{#var:index}}}}
|basic={{#vardefine:chancebase|0.3}}{{#vardefine:decay|0.75}}{{#vardefine:typeindex|0}}
<!--{{#expr:{{#formatnum:{{#var:chancebase}}}} * {{#expr:{{#formatnum:{{#var:decay}}}} ^ {{#formatnum:{{#var:index}}}} }} }}--></td>
|earthy={{#vardefine:chancebase|0.12}}{{#vardefine:decay|0.63}}{{#vardefine:typeindex|1}}
|bulbo={{#vardefine:chancebase|0.04}}{{#vardefine:decay|0.3}}{{#vardefine:typeindex|2}}
|sushi={{#vardefine:chancebase|0.01}}{{#vardefine:decay|0.4}}{{#vardefine:typeindex|3}}
|mushie={{#vardefine:chancebase|0.003}}{{#vardefine:decay|0.2}}{{#vardefine:typeindex|4}}
|glassy={{#vardefine:chancebase|0.0005}}{{#vardefine:decay|0.05}}{{#vardefine:typeindex|5}}
}}
{{#expr:{{#formatnum:{{#var:chancebase}}}} * {{#expr:{{#formatnum:{{#var:decay}}}} ^ {{#formatnum:{{#var:index}}}} }} }}</td>
<td>
<td>
{{#expr:{{#expr:14400 * {{#expr:1.5 ^ {{#var:typeindex}} }} }} / 3600}} Hours.{{#vardefine:index|{{#expr:{{#var:index}}+1}} }}</td></tr></includeonly>
{{#expr:{{#expr:14400 * {{#expr:1.5 ^ {{#var:typeindex}} }} }} / 3600}} Hours.{{#vardefine:index|{{#expr:{{#var:index}}+1}} }}</td></tr></includeonly>

Revision as of 16:18, 26 February 2024