diff --git a/calculate.js b/calculate.js index 258adf1..c205bae 100644 --- a/calculate.js +++ b/calculate.js @@ -1,6 +1,6 @@ "use strict"; //Licensed under the Apache License 2.0. See license file for information. -// Ardon Income Calculator v3.0 stable. +// Ardon Income Calculator v3.1 stable. // Written by Josh Mudge // Ad Mejorem Dei Glorium @@ -35,7 +35,7 @@ function calculate() { var gold = +blocks / 1000 * 100 console.log(gold) - var infra = +infra / 1000 * 0.005 + var infra = +infra / 1000 * 0.001 console.log(infra) var one = +one / 1000 * 0.01 console.log(one) @@ -57,7 +57,10 @@ function calculate() { console.log(metro) var percent = +one + +design + +gov + +embassies + +capital + +infra + +chain + +town + +city + +metro console.log(percent) - var total = +gold * +percent + +gold + var total = +gold * +percent + console.log(total) + var total = +total + +gold + console.log(total) var total = total.toFixed(0); console.log(total) var date = Date(); diff --git a/index.html b/index.html index a78f9d4..32f965a 100644 --- a/index.html +++ b/index.html @@ -10,11 +10,11 @@
Enter the number of blocks eligable for rent excluding one "base of operations" you change. (1000 blocks = 1 emerald)