Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
let Z = Number(Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A)); // Resulting production of a single farm | let Z = Number(Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A)); // Resulting production of a single farm | ||
let Y = Z / 25; // Resulting food yield of that production of a single farm | let Y = Z / 25; // Resulting food yield of that production of a single farm | ||
let O = | let O = Z * C / 25; // Resulting food yield of that production of the entire region | ||
document.getElementById('outputvalue').innerText= Y ; | document.getElementById('outputvalue').innerText= Y ; |
Revision as of 01:29, 25 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}