From f8420f2bf05c1848858487e727df56b5e19af22c Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Mon, 7 Jan 2019 23:18:18 -0500 Subject: [PATCH] Removed printCost() --- src/js/utilJS.tw | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/js/utilJS.tw b/src/js/utilJS.tw index 0dd5aff3038..dbad455c2d1 100644 --- a/src/js/utilJS.tw +++ b/src/js/utilJS.tw @@ -491,33 +491,6 @@ window.cashFormat = function(s) { return "¤"+commaNum(s); }; -window.printCost = (function() { - let V; - let r; - - function printCost(cost, upkeep, arcology) { - V = State.variables - r = ""; - if (!upkeep) { - upkeep = 0 - } - if (!arcology) { - arcology = 0 - } - r += `//Costs <span class=yellowgreen><<print cashFormat(Math.trunc(` + cost - if (arcology == 0) { - r += `*${V.upgradeMultiplierArcology}))>></span>//` - } else { - r += `))>></span>//` - } - if (upkeep == 1) { - r += `// and will incur upkeep costs//` - } - return r; - }; - return printCost; -})(); - window.isFloat = function(n){ return n === +n && n !== (n|0); }; -- GitLab