diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 1dd0a392e1dff98130605196efead6502199912d..8ca2521f28b86282376f842aaa68b0cf6da51304 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -1019,9 +1019,7 @@ App.Update.generalBC = function() { if (typeof V.arcologies[0].childhoodFertilityInducedNCSResearch === "undefined") { V.arcologies[0].childhoodFertilityInducedNCSResearch = 0; } - if (V.arcologies[0].childFertilityInducedNCSResearch) { - delete V.arcologies[0].childFertilityInducedNCSResearch; - } + delete V.arcologies[0].childFertilityInducedNCSResearch; if (typeof V.UterineRestraintMesh === "undefined") { V.UterineRestraintMesh = 0; } @@ -1458,10 +1456,7 @@ App.Update.generalBC = function() { } else if (typeof V.arcologies[0].FSGenderFundamentalistSMR === "undefined") { V.arcologies[0].FSGenderFundamentalistSMR = 0; } - if (typeof V.arcologies[0].FSGenderFundamentalistLaw !== "undefined") { - delete V.arcologies[0].FSGenderFundamentalistLaw; - } - + delete V.arcologies[0].FSGenderFundamentalistLaw; if ((typeof V.FSGenderRadicalist !== "undefined") && V.FSGenderRadicalist !== "unset") { V.arcologies[0].FSGenderRadicalist = V.FSGenderRadicalist; delete V.FSGenderRadicalist; @@ -1477,12 +1472,8 @@ App.Update.generalBC = function() { if (typeof V.arcologies[0].FSGenderRadicalistLawFuta === "undefined") { V.arcologies[0].FSGenderRadicalistLawFuta = 0; } - if (typeof V.arcologies[0].FSGenderRadicalistLawDicks !== "undefined") { - delete V.arcologies[0].FSGenderRadicalistLawDicks; - } - if (typeof V.arcologies[0].FSGenderRadicalistSMR !== "undefined") { - delete V.arcologies[0].FSGenderRadicalistSMR; - } + delete V.arcologies[0].FSGenderRadicalistLawDicks; + delete V.arcologies[0].FSGenderRadicalistSMR; if ((typeof V.FSBodyPurist !== "undefined") && V.FSBodyPurist !== "unset") { V.arcologies[0].FSBodyPurist = V.FSBodyPurist; @@ -1525,9 +1516,7 @@ App.Update.generalBC = function() { } else if (typeof V.arcologies[0].FSTransformationFetishistSMR === "undefined") { V.arcologies[0].FSTransformationFetishistSMR = 0; } - if (typeof V.arcologies[0].FSTransformationFetishistLaw !== "undefined") { - delete V.arcologies[0].FSTransformationFetishistLaw; - } + delete V.arcologies[0].FSTransformationFetishistLaw; if ((typeof V.FSAssetExpansionist !== "undefined") && V.FSAssetExpansionist !== "unset") { V.arcologies[0].FSAssetExpansionist = V.FSAssetExpansionist; @@ -1542,9 +1531,7 @@ App.Update.generalBC = function() { } else if (typeof V.arcologies[0].FSAssetExpansionistSMR === "undefined") { V.arcologies[0].FSAssetExpansionistSMR = 0; } - if (typeof V.arcologies[0].FSAssetExpansionistLaw !== "undefined") { - delete V.arcologies[0].FSAssetExpansionistLaw; - } + delete V.arcologies[0].FSAssetExpansionistLaw; if ((typeof V.FSSlimnessEnthusiast !== "undefined") && V.FSSlimnessEnthusiast !== "unset") { V.arcologies[0].FSSlimnessEnthusiast = V.FSSlimnessEnthusiast; @@ -1692,10 +1679,7 @@ App.Update.generalBC = function() { } else if (typeof V.arcologies[0].FSChineseRevivalistLaw === "undefined") { V.arcologies[0].FSChineseRevivalistLaw = 0; } - - if (typeof V.arcologies[0].FSNullLaw !== "undefined") { - delete V.arcologies[0].FSNullLaw; - } + delete V.arcologies[0].FSNullLaw; if (typeof V.masteredXP === "undefined") { V.masteredXP = 200; } @@ -3442,9 +3426,7 @@ App.Update.oldVersions = function() { } delete V.researchLab.manufacture; } - if (typeof V.researchLab.productionTime !== "undefined") { - delete V.researchLab.productionTime; - } + delete V.researchLab.productionTime; /* stockpile */ if (typeof V.prosthetics === "undefined") {