From cea0ce702193c13dd289a8b61f30b7e79d8ccff1 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Sun, 20 Jan 2019 21:54:09 -0500 Subject: [PATCH] fix whitespace --- devNotes/twine JS.txt | 4 ++-- src/js/economyJS.tw | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 8a9d9ace212..664f271bd94 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -2316,7 +2316,7 @@ window.getCost = function(array) { //these two apply a multiplicative effect to all costs so far. - // Calculate what the deduced expenses would be, then subtract + // Calculate what the deduced expenses would be, then subtract costSoFar = (oldCash - State.variables.cash); //How much we have spent by this point; expected to be positive. cashX(costSoFar - getEnvironmentCosts(costSoFar), "environment"); //getEnv takes total costs and makes it worse. Figure out how much worse and record it @@ -2331,7 +2331,7 @@ window.getCost = function(array) { //slave expenses window.predictTotalSlaveCosts = function(array3) { - var loopCosts = 0; + var loopCosts = 0; //slave expenses for (var slave of array3) { loopCosts += getSlaveCost(slave); diff --git a/src/js/economyJS.tw b/src/js/economyJS.tw index 41086d9a6a9..7cea434cf44 100644 --- a/src/js/economyJS.tw +++ b/src/js/economyJS.tw @@ -95,7 +95,7 @@ window.getCost = function(array) { //these two apply a multiplicative effect to all costs so far. - // Calculate what the deduced expenses would be, then subtract + // Calculate what the deduced expenses would be, then subtract costSoFar = (oldCash - State.variables.cash); //How much we have spent by this point; expected to be positive. cashX(costSoFar - getEnvironmentCosts(costSoFar), "environment"); //getEnv takes total costs and makes it worse. Figure out how much worse and record it -- GitLab