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