Widget:YieldCalc: Difference between revisions

From Ara: History Untold Wiki
No edit summary
No edit summary
Line 30: Line 30:
let Y = 6;
let Y = 6;


let Z = Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)1+(C-1)*5+A); /* Food yield for a single farm in the region */
let Z = Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A); /* Food yield for a single farm in the region */
document.getElementById('outputvalue').innerText= Z ;
document.getElementById('outputvalue').innerText= Z ;
}
}

Revision as of 23:32, 24 October 2024

This widget is used to display and calculate the yield with the values submitted by the user.

Usage: ‎{{#Widget:YieldCalc}}