Widget:YieldCalc: Difference between revisions
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
function yieldScript(){ | function yieldScript(){ | ||
let A = Number(document.getElementById('cityProd').value); // City Production | let A = Number(document.getElementById('cityProd').value); // City Production | ||
let B = Number(document.getElementById('regionYield').value); / Yield(Apples) of the region | let B = Number(document.getElementById('regionYield').value); // Yield(Apples) of the region | ||
let C = Number(document.getElementById('farmCount').value); // Amount of Farms in the region | let C = Number(document.getElementById('farmCount').value); // Amount of Farms in the region | ||
let E = Number(document.getElementById('percBonus').value); // Total Percentage Bonus (e.g. 50% from a Plow) | let E = Number(document.getElementById('percBonus').value); // Total Percentage Bonus (e.g. 50% from a Plow) |
Revision as of 01:31, 25 October 2024
This widget is used to display and calculate the yield with the values submitted by the user.
Usage: {{#Widget:YieldCalc}}