From d1ce7322c50f320e3fd21c4eb79e03a25a9de635 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Sun, 30 Aug 2020 20:08:02 -0400 Subject: [PATCH] correct arcade costs --- src/js/economyJS.js | 3 ++- src/uncategorized/arcade.tw | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/economyJS.js b/src/js/economyJS.js index 2f791dedcd5..6c7a2f5b4e7 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -544,7 +544,8 @@ globalThis.calculateCosts = (function() { } function getArcadeCosts() { - return (0.05 + 0.02 * V.arcadeUpgradeInjectors + 0.05 * V.arcadeUpgradeCollectors + 0.02 * V.arcadeUpgradeHealth) * (V.arcade * V.facilityCost); + const healthUpgrade = V.arcadeUpgradeHealth >= 0 ? V.arcadeUpgradeHealth : 0; + return (0.05 + (0.02 * V.arcadeUpgradeInjectors) + (0.05 * V.arcadeUpgradeCollectors) + (0.02 * healthUpgrade)) * (V.arcade * V.facilityCost); } function getClubCosts() { diff --git a/src/uncategorized/arcade.tw b/src/uncategorized/arcade.tw index 505e3c60b7c..4ec0d543d46 100644 --- a/src/uncategorized/arcade.tw +++ b/src/uncategorized/arcade.tw @@ -146,7 +146,10 @@ <<else>> The arcade can be upgraded to include curative injectors in order to keep inmates from succumbing under the harsh treatment. You are assured the inmates won't like their time in the arcade any better, it is purely intended to keep them functional and ready for use around the clock. It comes equipped with two settings. <div class="choices"> - [[Install curative injectors|Arcade][$arcadeUpgradeHealth = 1]] + [[Install curative injectors|Arcade][cashX(forceNeg(_Tmult1), "capEx"), $arcadeUpgradeHealth = 1]] + </div> + <div class="note"> + Costs <<print cashFormat(_Tmult1)>> and will increase upkeep costs </div> <</if>> </div> -- GitLab