diff --git a/Ardon-income.html b/Ardon-income.html index cc8bc08..7359292 100644 --- a/Ardon-income.html +++ b/Ardon-income.html @@ -33,6 +33,18 @@ Enter 1 if you have a capital. (2.5% bonus)



+Enter the number of towns in your empire. (See: https://ltlto.com/josh/mcserver/wiki/Rent for the definition of a town.) (0.5% bonus) +

+ +

+Enter the number of cities in your empire. (See: https://ltlto.com/josh/mcserver/wiki/Rent for the definition of a city.) (1.0% bonus) +

+ +

+Enter the number of metropolises in your empire. (See: https://ltlto.com/josh/mcserver/wiki/Rent for the definition of a metropolis.) (1.5% bonus) +

+ +

diff --git a/calculate.js b/calculate.js index 48c416c..381757d 100644 --- a/calculate.js +++ b/calculate.js @@ -18,6 +18,9 @@ function calculate() { var embassies = document.getElementById("embassies").value; var capital = document.getElementById("capital").value; var infra = document.getElementById("infra").value; + var town = document.getElementById("town").value; + var city = document.getElementById("city").value; + var metro = document.getElementById("metro").value; if (blocks.match(numReg)) { @@ -44,7 +47,13 @@ function calculate() { console.log(capital) var infra = +infra * 0.005 console.log(infra) - var percent = +one + +two + +design + +embassies + +capital + var town = +town * 0.005 + console.log(town) + var city = +city * 0.01 + console.log(city) + var metro = +metro * 0.01 + console.log(metro) + var percent = +one + +design + +gov + +embassies + +capital + +infra console.log(percent) var total = +emeralds * +percent +emeralds var total = total.toFixed(4);