Widget:YieldCalc: Difference between revisions

From Ara: History Untold Wiki
No edit summary
No edit summary
Line 29: Line 29:
   let H = C + F; /* Add f to the actual amount of farms in the region */
   let H = C + F; /* Add f to the actual amount of farms in the region */


   document.getElementById('outputvalue').innerText=(Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A));
   document.getElementById('outputvalue').innerText= (
    Math.floor(A*B+B*5*C+5+(A+5*C)*(E/100)+(C-1)*5+A)
  );
}
}



Revision as of 00:30, 25 October 2024

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

Usage: ‎{{#Widget:YieldCalc}}