diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 3e0949a58dc0bea55b139bcc21011a9d71bb29b2..1ef521d24d94d73e2919081272e7956463705cee 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -831,24 +831,16 @@ App.Update.globalVariables = function(node) { if ((typeof V.FSChineseRevivalistLaw !== "undefined") && V.FSChineseRevivalistLaw !== 0) { V.arcologies[0].FSChineseRevivalistLaw = V.FSChineseRevivalistLaw; } - if ((typeof V.FSAntebellumRevivalist !== "undefined") && V.FSAntebellumRevivalist !== "unset") { - V.arcologies[0].FSAntebellumRevivalist = V.FSAntebellumRevivalist; - } else if (typeof V.arcologies[0].FSAntebellumRevivalist === "undefined") { + if (typeof V.arcologies[0].FSAntebellumRevivalist === "undefined") { V.arcologies[0].FSAntebellumRevivalist = "unset"; } - if ((typeof V.FSAntebellumRevivalistSMR !== "undefined") && V.FSAntebellumRevivalistSMR !== 0) { - V.arcologies[0].FSAntebellumRevivalistSMR = V.FSAntebellumRevivalistSMR; - } else if (typeof V.arcologies[0].FSAntebellumRevivalistSMR === "undefined") { + if (typeof V.arcologies[0].FSAntebellumRevivalistSMR === "undefined") { V.arcologies[0].FSAntebellumRevivalistSMR = 0; } - if ((typeof V.FSAntebellumRevivalistLaw1 !== "undefined") && V.FSAntebellumRevivalistLaw1 !== 0) { - V.arcologies[0].FSAntebellumRevivalistLaw1 = V.FSAntebellumRevivalistLaw1; - } else if (typeof V.arcologies[0].FSAntebellumRevivalistLaw1 === "undefined") { + if (typeof V.arcologies[0].FSAntebellumRevivalistLaw1 === "undefined") { V.arcologies[0].FSAntebellumRevivalistLaw1 = 0; } - if ((typeof V.FSAntebellumRevivalistLaw2 !== "undefined") && V.FSAntebellumRevivalistLaw2 !== 0) { - V.arcologies[0].FSAntebellumRevivalistLaw2 = V.FSAntebellumRevivalistLaw2; - } else if (typeof V.arcologies[0].FSAntebellumRevivalistLaw2 === "undefined") { + if (typeof V.arcologies[0].FSAntebellumRevivalistLaw2 === "undefined") { V.arcologies[0].FSAntebellumRevivalistLaw2 = 0; } delete V.arcologies[0].FSNullLaw;