From 29d6462769a3d30a559bf635fe162ad2984d0874 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 12 Mar 2020 21:14:20 -0400 Subject: [PATCH] FSGotRepCredits fix --- .../backwardsCompatibility.js | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 466ef399d1c..3ba92bf958d 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -229,22 +229,24 @@ App.Update.globalVariables = function() { // FS { - if (V.FSGotRepCreditSix === 1) { - V.FSGotRepCredits = 7; - } else if (V.FSGotRepCreditFive === 1) { - V.FSGotRepCredits = 6; - } else if (V.FSGotRepCreditFour === 1) { - V.FSGotRepCredits = 5; - } else if (V.FSGotRepCreditThree === 1) { - V.FSGotRepCredits = 4; - } else if (V.FSGotRepCreditTwo === 1) { - V.FSGotRepCredits = 3; - } else if (V.FSGotRepCreditOne === 1) { - V.FSGotRepCredits = 2; - } else if (V.FSAnnounced === 1) { - V.FSGotRepCredits = 1; - } else { - V.FSGotRepCredits = 0; + if (V.FSGotRepCredits === 0) { + if (V.FSGotRepCreditSix === 1) { + V.FSGotRepCredits = 7; + } else if (V.FSGotRepCreditFive === 1) { + V.FSGotRepCredits = 6; + } else if (V.FSGotRepCreditFour === 1) { + V.FSGotRepCredits = 5; + } else if (V.FSGotRepCreditThree === 1) { + V.FSGotRepCredits = 4; + } else if (V.FSGotRepCreditTwo === 1) { + V.FSGotRepCredits = 3; + } else if (V.FSGotRepCreditOne === 1) { + V.FSGotRepCredits = 2; + } else if (V.FSAnnounced === 1) { + V.FSGotRepCredits = 1; + } else { + V.FSGotRepCredits = 0; + } } if (typeof V.arcologies[0].FSAztecRevivalist === "undefined") { for (let bci = 0; bci < V.arcologies.length; bci++) { -- GitLab