From 4525ac43d120f4b7d02a336580352fb665065df9 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 30 Aug 2020 21:24:52 -0400 Subject: [PATCH] fix --- src/markets/schools/schools.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/markets/schools/schools.js b/src/markets/schools/schools.js index 14adcdc863a..0d56fb6a144 100644 --- a/src/markets/schools/schools.js +++ b/src/markets/schools/schools.js @@ -163,7 +163,12 @@ App.Markets.TCR = function() { r.push(`You can't help but notice the number of bulls lining up along the fence sniffing at you.`); } App.UI.DOM.appendNewElement("p", el, r.join(" ")); - + let costMod = 1; + if (V.HA.schoolSale !== 0) { + costMod = 0.5; + } else if (V.HA.schoolUpgrade !== 0) { + costMod = 0.8; + } el.append( App.UI.buyingFromSchoolControls("TCR", costMod, "cow", "cattle") ); -- GitLab