From d3a663b928c6de0833f44ae02a8c93903f0b6a42 Mon Sep 17 00:00:00 2001 From: Anu <barrychahal@gmail.com> Date: Fri, 8 Jan 2021 15:30:27 -0800 Subject: [PATCH] As per svornost --- src/Corporation/corporateLedger.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Corporation/corporateLedger.js b/src/Corporation/corporateLedger.js index dcc17d3418d..c0038e47193 100644 --- a/src/Corporation/corporateLedger.js +++ b/src/Corporation/corporateLedger.js @@ -75,13 +75,14 @@ App.Corporate.writeLedger = function(ledger, week) { } createRow(tbody, "td", "Overhead", forceNeg(ledger.overhead)); let econNote = ''; - if (V.difficultySwitch == 0) { - } else if (ledger.economy > 100) { - econNote = "* Profits benefited from a strong economy."; - } else if (ledger.economy > 60) { - econNote = "* Profits were lowered by the weak economy."; - } else { - econNote = "* Profits were severely depressed by the failing economy."; + if (V.difficultySwitch > 0) { + if (ledger.economy > 100) { + econNote = "* Profits benefited from a strong economy."; + } else if (ledger.economy > 60) { + econNote = "* Profits were lowered by the weak economy."; + } else { + econNote = "* Profits were severely depressed by the failing economy."; + } } createRow(tbody, "td", "Profit", ledger.profit, econNote); -- GitLab