More bug fixes

This commit is contained in:
Josh Mudge 2017-09-15 22:10:51 -06:00
parent ce2af7e5fa
commit 460635533f
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ function calculate() {
console.log(one)
var design = +design / 1000 * 0.015
console.log(design)
var gov = +gov / 1000 * 0.02
var gov = +gov * 0.02
console.log(gov)
var embassies = +embassies * 0.01
var embassies = +embassies * 0.02
console.log(embassies)
var capital = +capital * 0.025
console.log(capital)
@ -58,7 +58,7 @@ function calculate() {
//var percent = +percent / 100
console.log(percent)
var total = +emeralds * +percent + +emeralds
var total = total.toFixed(4);
var total = total.toFixed(3);
console.log(total)
var date = Date();
console.log(date)