diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 150fc89c090acfc4cdb27f2250639acc0b43e272..22ced2dc78b1ad6f4d89734e179900082c5891bc 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -579,439 +579,474 @@ App.Update.globalVariables = function() { if (V.brothelAdsSpending > 0 && V.brothel === 0) { V.brothelAdsSpending = 0; } - - // Slave mods/surgery - if (typeof V.brandTarget === "string") { - V.brandTarget = {primary: V.brandTarget, secondary: "buttock", local: "buttock"}; - } else if (typeof V.brandTarget !== "object") { - V.brandTarget = {primary: "buttock", secondary: "buttock", local: "buttock"}; - } - if (typeof V.brandDesign === "string") { - V.brandDesign = {primary: V.brandDesign, official: V.brandDesign, local: V.brandDesign}; - } else if (typeof V.brandDesign !== "object") { - V.brandDesign = {primary: "your initials", official: "your initials", local: "your initials"}; - } - if (typeof V.brandDesign.official === "undefined") { - V.brandDesign.official = "your personal symbol"; - } - if (typeof V.scarTarget === "undefined") { - V.scarTarget = {primary: "left cheek", secondary: "left cheek", local: "left cheek"}; + if (typeof V.milkPipeline === "undefined") { + V.milkPipeline = 0; } - if (typeof V.scarDesign === "undefined") { - V.scarDesign = {primary: "generic", local: "generic"}; + if (typeof V.cumPipeline === "undefined") { + V.cumPipeline = 0; } - if (typeof V.meshImplants === "undefined") { - V.meshImplants = 0; + + // Slave mods/surgery + { + if (typeof V.brandTarget === "string") { + V.brandTarget = {primary: V.brandTarget, secondary: "buttock", local: "buttock"}; + } else if (typeof V.brandTarget !== "object") { + V.brandTarget = {primary: "buttock", secondary: "buttock", local: "buttock"}; + } + if (typeof V.brandDesign === "string") { + V.brandDesign = {primary: V.brandDesign, official: V.brandDesign, local: V.brandDesign}; + } else if (typeof V.brandDesign !== "object") { + V.brandDesign = {primary: "your initials", official: "your initials", local: "your initials"}; + } + if (typeof V.brandDesign.official === "undefined") { + V.brandDesign.official = "your personal symbol"; + } + if (typeof V.scarTarget === "undefined") { + V.scarTarget = {primary: "left cheek", secondary: "left cheek", local: "left cheek"}; + } + if (typeof V.scarDesign === "undefined") { + V.scarDesign = {primary: "generic", local: "generic"}; + } + if (typeof V.meshImplants === "undefined") { + V.meshImplants = 0; + } } // Marriage plans - if (typeof V.marrying !== "object") { - V.marrying = []; - } - if ((typeof V.weddingPlanned === "undefined") || (V.marrying.length < 1)) { - V.weddingPlanned = 0; + { + if (typeof V.marrying !== "object") { + V.marrying = []; + } + if ((typeof V.weddingPlanned === "undefined") || (V.marrying.length < 1)) { + V.weddingPlanned = 0; + } } // Reminders - if (typeof V.reminders === "undefined") { - V.reminders = []; - } else if (!Array.isArray(V.reminders)) { - let _r = V.reminders; - V.reminders = []; - for (let _i = 0; _i < _r.entries.length; _i++) { - App.Reminders.add(_r.entries[_i], V.week + Number(_r.weeks[_i])); - } - for (let _i = 0; _i < _r.overdue.length; _i++) { - let _s = _r.overdue[_i].split(" "); - _s.splice(_s.length - 5, 5); - _s = _s.join(" "); - App.Reminders.add(_s, V.week - 1); + { + if (typeof V.reminders === "undefined") { + V.reminders = []; + } else if (!Array.isArray(V.reminders)) { + let _r = V.reminders; + V.reminders = []; + for (let _i = 0; _i < _r.entries.length; _i++) { + App.Reminders.add(_r.entries[_i], V.week + Number(_r.weeks[_i])); + } + for (let _i = 0; _i < _r.overdue.length; _i++) { + let _s = _r.overdue[_i].split(" "); + _s.splice(_s.length - 5, 5); + _s = _s.join(" "); + App.Reminders.add(_s, V.week - 1); + } } } // Agents - if (typeof V.bodyguardTrains === "undefined") { - V.bodyguardTrains = 1; - } - if (typeof V.recruiterIOUs === "undefined") { - V.recruiterIOUs = 0; - } - if (typeof V.HGSeverity === "undefined") { - V.HGSeverity = 0; - } - if (typeof V.BodyguardHasSucessfullyRecivedSignal === "undefined") { - V.BodyguardHasSucessfullyRecivedSignal = 0; + { + if (typeof V.bodyguardTrains === "undefined") { + V.bodyguardTrains = 1; + } + if (typeof V.recruiterIOUs === "undefined") { + V.recruiterIOUs = 0; + } + if (typeof V.HGSeverity === "undefined") { + V.HGSeverity = 0; + } + if (typeof V.BodyguardHasSucessfullyRecivedSignal === "undefined") { + V.BodyguardHasSucessfullyRecivedSignal = 0; + } } // Display - if (typeof V.summaryStats === "undefined") { - V.summaryStats = 0; - } - if (typeof V.verticalizeArcologyLinks === "undefined") { - V.verticalizeArcologyLinks = 0; - } - if (typeof V.positionMainLinks === "undefined") { - V.positionMainLinks = -1; - } - if (typeof V.seeImages === "undefined") { - V.seeImages = 0; - } - if (typeof V.imageChoice === "undefined") { - V.imageChoice = 0; - } - if (typeof V.seeMainFetishes === "undefined") { - V.seeMainFetishes = 0; - } - if (typeof V.seeSummaryImages === "undefined") { - V.seeSummaryImages = 1; - } - if (typeof V.seeReportImages === "undefined") { - V.seeReportImages = 1; - } - if (typeof V.tabChoice === "undefined") { - V.tabChoice = {Main: "all"}; - } - if (typeof V.newDescriptions === "undefined") { - V.newDescriptions = 0; - } - if (typeof V.useSummaryCache === "undefined") { - V.useSummaryCache = true; - } - if (typeof V.showEconomicDetails === "undefined") { - V.showEconomicDetails = 0; - } - if (typeof V.cheatModeM === "undefined") { - V.cheatModeM = 1; - } - if (typeof V.experimental === "undefined") { - V.experimental = { - nursery: 0, - food: 0, - animalOvaries: 0, - dinnerParty: 0 - }; - } - if (typeof V.showInches || V.showInches === 0 === "undefined") { - V.showInches = 1; - } - if (typeof V.showNumbers === "undefined") { - V.showNumbers = 2; - } - if (typeof V.showNumbersMax === "undefined") { - V.showNumbersMax = 20; - } - if (typeof V.surnameOrder === "undefined") { - V.surnameOrder = 0; - } - if (typeof V.useSlaveSummaryTabs === "undefined") { - V.useSlaveSummaryTabs = 0; - } - if (typeof V.useSlaveSummaryOverviewTab === "undefined") { - V.useSlaveSummaryOverviewTab = 0; - } - if (typeof V.useSlaveListInPageJSNavigation === "undefined") { - V.useSlaveListInPageJSNavigation = 0; - } - if (typeof V.missingTable === "undefined") { - V.missingTable = {}; - } - if (typeof V.showMissingSlaves === "undefined") { - V.showMissingSlaves = false; - } - if (typeof V.showMissingSlavesSD === "undefined") { - V.showMissingSlavesSD = false; - } - if (typeof V.abbreviateHormoneBalance === "undefined") { - V.abbreviateHormoneBalance = 2; - } - if (typeof V.sideBarOptions === "undefined") { - V.sideBarOptions = { - compact: 1, - Cash: 1, - Upkeep: 1, - SexSlaveCount: 1, - roomPop: 1, - Rep: 1, - GSP: 1, - Authority: 1, - Security: 1, - Crime: 1 - }; - } - if (typeof V.sideBarOptions.roomPop === "undefined") { - V.sideBarOptions.roomPop = 1; - } - if (typeof V.sideBarOptions.compact === "undefined") { - V.sideBarOptions.compact = 1; - } - if (V.sortSlavesBy === "income" || V.sortSlavesBy === "lastWeeksCashIncome") { - V.sortSlavesBy = "weeklyIncome"; - } - if (typeof V.tooltipsEnabled === "undefined") { - V.tooltipsEnabled = 0; - } - if (typeof V.seeBuilding === "undefined") { - V.seeBuilding = V.seeArcology; + { + if (typeof V.summaryStats === "undefined") { + V.summaryStats = 0; + } + if (typeof V.verticalizeArcologyLinks === "undefined") { + V.verticalizeArcologyLinks = 0; + } + if (typeof V.positionMainLinks === "undefined") { + V.positionMainLinks = -1; + } + if (typeof V.seeImages === "undefined") { + V.seeImages = 0; + } + if (typeof V.imageChoice === "undefined") { + V.imageChoice = 0; + } + if (typeof V.seeMainFetishes === "undefined") { + V.seeMainFetishes = 0; + } + if (typeof V.seeSummaryImages === "undefined") { + V.seeSummaryImages = 1; + } + if (typeof V.seeReportImages === "undefined") { + V.seeReportImages = 1; + } + if (typeof V.tabChoice === "undefined") { + V.tabChoice = {Main: "all"}; + } + if (typeof V.newDescriptions === "undefined") { + V.newDescriptions = 0; + } + if (typeof V.useSummaryCache === "undefined") { + V.useSummaryCache = true; + } + if (typeof V.showEconomicDetails === "undefined") { + V.showEconomicDetails = 0; + } + if (typeof V.cheatModeM === "undefined") { + V.cheatModeM = 1; + } + if (typeof V.experimental === "undefined") { + V.experimental = { + nursery: 0, + food: 0, + animalOvaries: 0, + dinnerParty: 0 + }; + } + if (typeof V.showInches || V.showInches === 0 === "undefined") { + V.showInches = 1; + } + if (typeof V.showNumbers === "undefined") { + V.showNumbers = 2; + } + if (typeof V.showNumbersMax === "undefined") { + V.showNumbersMax = 20; + } + if (typeof V.surnameOrder === "undefined") { + V.surnameOrder = 0; + } + if (typeof V.useSlaveSummaryTabs === "undefined") { + V.useSlaveSummaryTabs = 0; + } + if (typeof V.useSlaveSummaryOverviewTab === "undefined") { + V.useSlaveSummaryOverviewTab = 0; + } + if (typeof V.useSlaveListInPageJSNavigation === "undefined") { + V.useSlaveListInPageJSNavigation = 0; + } + if (typeof V.missingTable === "undefined") { + V.missingTable = {}; + } + if (typeof V.showMissingSlaves === "undefined") { + V.showMissingSlaves = false; + } + if (typeof V.showMissingSlavesSD === "undefined") { + V.showMissingSlavesSD = false; + } + if (typeof V.abbreviateHormoneBalance === "undefined") { + V.abbreviateHormoneBalance = 2; + } + if (typeof V.sideBarOptions === "undefined") { + V.sideBarOptions = { + compact: 1, + Cash: 1, + Upkeep: 1, + SexSlaveCount: 1, + roomPop: 1, + Rep: 1, + GSP: 1, + Authority: 1, + Security: 1, + Crime: 1 + }; + } + if (typeof V.sideBarOptions.roomPop === "undefined") { + V.sideBarOptions.roomPop = 1; + } + if (typeof V.sideBarOptions.compact === "undefined") { + V.sideBarOptions.compact = 1; + } + if (V.sortSlavesBy === "income" || V.sortSlavesBy === "lastWeeksCashIncome") { + V.sortSlavesBy = "weeklyIncome"; + } + if (typeof V.tooltipsEnabled === "undefined") { + V.tooltipsEnabled = 0; + } + if (typeof V.seeBuilding === "undefined") { + V.seeBuilding = V.seeArcology; + } } // Content - if (typeof V.universalRulesBirthing === "undefined") { - V.universalRulesBirthing = 0; - } - if (typeof V.universalRulesImmobileSlavesMaintainMuscles === "undefined") { - V.universalRulesImmobileSlavesMaintainMuscles = 0; - } - if (typeof V.universalRulesChildrenBecomeBreeders === "undefined") { - V.universalRulesChildrenBecomeBreeders = 0; - } - if (typeof V.fixedNationality === "undefined") { - V.fixedNationality = 0; - } - if (typeof V.fixedRace === "undefined") { - V.fixedRace = 0; - } - if (typeof V.surnamesForbidden === "undefined") { - V.surnamesForbidden = 0; - } - if (typeof V.FSNamePref === "undefined") { - V.FSNamePref = 0; - } - if (typeof V.loliGrow === "undefined") { - V.loliGrow = 0; - } - if (typeof V.ageMode === "undefined") { - V.ageMode = 0; - } - if (typeof V.seeBestiality === "undefined") { - V.seeBestiality = 0; - } - if (typeof V.seePee === "undefined") { - V.seePee = 1; - } - if (typeof V.menstruation === "undefined") { - V.menstruation = 0; - } - if (typeof V.seeIncest === "undefined") { - V.seeIncest = 1; - } - if (typeof V.extremeUnderage === "undefined") { - V.extremeUnderage = 0; - } - if (typeof V.inbreeding === "undefined") { - V.inbreeding = 1; - } - if (typeof V.bodyswapAnnounced === "undefined") { - V.bodyswapAnnounced = 0; - } - if (typeof V.seeHyperPreg === "undefined") { - V.seeHyperPreg = 0; - } - if (typeof V.seePreg === "undefined") { - V.seePreg = 1; - } - if (typeof V.adamPrinciple === "undefined") { - V.adamPrinciple = 0; - } - if (typeof V.seeDicksAffectsPregnancy === "undefined") { - V.seeDicksAffectsPregnancy = 1; - } - if (typeof V.dangerousPregnancy === "undefined") { - V.dangerousPregnancy = 1; - } - if (typeof V.makeDicks === "undefined") { - V.makeDicks = 0; - } - if (typeof V.pedo_mode === "undefined") { - // eslint-disable-next-line camelcase - V.pedo_mode = 0; - } - if (typeof V.one_time_age_overrides_pedo_mode === "undefined") { - // eslint-disable-next-line camelcase - V.one_time_age_overrides_pedo_mode = 0; - } - if (typeof V.minimumSlaveAge === "undefined") { - V.minimumSlaveAge = 16; - } - if (typeof V.fertilityAge === "undefined") { - V.fertilityAge = 13; - } - if (typeof V.potencyAge === "undefined") { - V.potencyAge = 13; - } - if (typeof slaveOneTimeMinAge === "undefined") { - V.slaveOneTimeMinAge = 0; - } - if (typeof slaveOneTimeMaxAge === "undefined") { - V.slaveOneTimeMaxAge = 999; - } - if (typeof V.oneTimeDisableDisability === "undefined") { - V.oneTimeDisableDisability = 0; - } - if (typeof V.AgePenalty === "undefined") { - V.AgePenalty = 1; - } - if (typeof V.precociousPuberty === "undefined") { - V.precociousPuberty = 0; - } - if (typeof V.targetAge === "undefined") { - V.targetAge = V.minimumSlaveAge; - } - if (typeof V.disableLisping === "undefined") { - V.disableLisping = 0; - } - if (typeof V.postSexCleanUp === "undefined") { - V.postSexCleanUp = 1; + { + if (typeof V.universalRulesBirthing === "undefined") { + V.universalRulesBirthing = 0; + } + if (typeof V.universalRulesImmobileSlavesMaintainMuscles === "undefined") { + V.universalRulesImmobileSlavesMaintainMuscles = 0; + } + if (typeof V.universalRulesChildrenBecomeBreeders === "undefined") { + V.universalRulesChildrenBecomeBreeders = 0; + } + if (typeof V.fixedNationality === "undefined") { + V.fixedNationality = 0; + } + if (typeof V.fixedRace === "undefined") { + V.fixedRace = 0; + } + if (typeof V.surnamesForbidden === "undefined") { + V.surnamesForbidden = 0; + } + if (typeof V.FSNamePref === "undefined") { + V.FSNamePref = 0; + } + if (typeof V.loliGrow === "undefined") { + V.loliGrow = 0; + } + if (typeof V.ageMode === "undefined") { + V.ageMode = 0; + } + if (typeof V.seeBestiality === "undefined") { + V.seeBestiality = 0; + } + if (typeof V.seePee === "undefined") { + V.seePee = 1; + } + if (typeof V.menstruation === "undefined") { + V.menstruation = 0; + } + if (typeof V.seeIncest === "undefined") { + V.seeIncest = 1; + } + if (typeof V.extremeUnderage === "undefined") { + V.extremeUnderage = 0; + } + if (typeof V.inbreeding === "undefined") { + V.inbreeding = 1; + } + if (typeof V.bodyswapAnnounced === "undefined") { + V.bodyswapAnnounced = 0; + } + if (typeof V.seeHyperPreg === "undefined") { + V.seeHyperPreg = 0; + } + if (typeof V.seePreg === "undefined") { + V.seePreg = 1; + } + if (typeof V.adamPrinciple === "undefined") { + V.adamPrinciple = 0; + } + if (typeof V.seeDicksAffectsPregnancy === "undefined") { + V.seeDicksAffectsPregnancy = 1; + } + if (typeof V.dangerousPregnancy === "undefined") { + V.dangerousPregnancy = 1; + } + if (typeof V.makeDicks === "undefined") { + V.makeDicks = 0; + } + if (typeof V.pedo_mode === "undefined") { + // eslint-disable-next-line camelcase + V.pedo_mode = 0; + } + if (typeof V.one_time_age_overrides_pedo_mode === "undefined") { + // eslint-disable-next-line camelcase + V.one_time_age_overrides_pedo_mode = 0; + } + if (typeof V.minimumSlaveAge === "undefined") { + V.minimumSlaveAge = 16; + } + if (typeof V.fertilityAge === "undefined") { + V.fertilityAge = 13; + } + if (typeof V.potencyAge === "undefined") { + V.potencyAge = 13; + } + if (typeof slaveOneTimeMinAge === "undefined") { + V.slaveOneTimeMinAge = 0; + } + if (typeof slaveOneTimeMaxAge === "undefined") { + V.slaveOneTimeMaxAge = 999; + } + if (typeof V.oneTimeDisableDisability === "undefined") { + V.oneTimeDisableDisability = 0; + } + if (typeof V.AgePenalty === "undefined") { + V.AgePenalty = 1; + } + if (typeof V.precociousPuberty === "undefined") { + V.precociousPuberty = 0; + } + if (typeof V.targetAge === "undefined") { + V.targetAge = V.minimumSlaveAge; + } + if (typeof V.disableLisping === "undefined") { + V.disableLisping = 0; + } + if (typeof V.postSexCleanUp === "undefined") { + V.postSexCleanUp = 1; + } } // Event - if (typeof V.burstee === "undefined") { - V.burstee = 0; - } - if (typeof V.slaveDeath === "undefined") { - V.slaveDeath = 0; - } - if (typeof V.legendaryWombID === "undefined") { - V.legendaryWombID = 0; - } - if (typeof V.traitorType === "undefined") { - V.traitorType = "standard"; + { + if (typeof V.burstee === "undefined") { + V.burstee = 0; + } + if (typeof V.slaveDeath === "undefined") { + V.slaveDeath = 0; + } + if (typeof V.legendaryWombID === "undefined") { + V.legendaryWombID = 0; + } + if (typeof V.traitorType === "undefined") { + V.traitorType = "standard"; + } } // FCTV - if (typeof V.FCTVenable === "undefined") { - V.FCTVenable = 1; - } - if (typeof V.FCTVreceiver === "undefined") { - V.FCTVreceiver = 0; - } - if (typeof V.receiverAvailable === "undefined") { - V.receiverAvailable = 0; - } - if (typeof V.FCTVshow === "undefined") { - V.FCTVshow = 0; - } - if (typeof V.FCTVremote === "undefined") { - V.FCTVremote = 0; - } - if (typeof V.FCTVrate === "undefined") { - V.FCTVrate = 2; - } - if (typeof V.FCTVcount === "undefined") { - V.FCTVcount = 0; - } - if (typeof V.lastShow === "undefined") { - V.lastShow = -1; - } - if (typeof V.purchasedSagBGone === "undefined") { - V.purchasedSagBGone = 0; - } - if (typeof V.FCNNstation === "undefined") { - V.FCNNstation = 0; - } - if (typeof V.randShow === "undefined") { - V.randShow = 0; + { + if (typeof V.FCTVenable === "undefined") { + V.FCTVenable = 1; + } + if (typeof V.FCTVreceiver === "undefined") { + V.FCTVreceiver = 0; + } + if (typeof V.receiverAvailable === "undefined") { + V.receiverAvailable = 0; + } + if (typeof V.FCTVshow === "undefined") { + V.FCTVshow = 0; + } + if (typeof V.FCTVremote === "undefined") { + V.FCTVremote = 0; + } + if (typeof V.FCTVrate === "undefined") { + V.FCTVrate = 2; + } + if (typeof V.FCTVcount === "undefined") { + V.FCTVcount = 0; + } + if (typeof V.lastShow === "undefined") { + V.lastShow = -1; + } + if (typeof V.purchasedSagBGone === "undefined") { + V.purchasedSagBGone = 0; + } + if (typeof V.FCNNstation === "undefined") { + V.FCNNstation = 0; + } + if (typeof V.randShow === "undefined") { + V.randShow = 0; + } } // Mercenaries - if (typeof V.RaidingMercenaries === "undefined") { - V.RaidingMercenaries = 0; - } - if (typeof V.raided === "undefined") { - V.raided = 0; - } - if (typeof V.MercenariesMessageSent === "undefined") { - V.MercenariesMessageSent = 0; - } - if (typeof V.SpecialForcesMessageSent === "undefined") { - V.SpecialForcesMessageSent = 0; + { + if (typeof V.RaidingMercenaries === "undefined") { + V.RaidingMercenaries = 0; + } + if (typeof V.raided === "undefined") { + V.raided = 0; + } + if (typeof V.MercenariesMessageSent === "undefined") { + V.MercenariesMessageSent = 0; + } + if (typeof V.SpecialForcesMessageSent === "undefined") { + V.SpecialForcesMessageSent = 0; + } } + // Peacekeepers - if (typeof V.peacekeepers === "undefined") { - V.peacekeepers = 0; + { + if (typeof V.peacekeepers === "undefined") { + V.peacekeepers = 0; + } } + // Orphanages - if (typeof V.slaveOrphanageTotal === "undefined") { - V.slaveOrphanageTotal = 0; - } - if (typeof V.citizenOrphanageTotal === "undefined") { - V.citizenOrphanageTotal = 0; - } - if (typeof V.privateOrphanageTotal === "undefined") { - V.privateOrphanageTotal = 0; - } - if (typeof V.breederOrphanageTotal === "undefined") { - V.breederOrphanageTotal = 0; - } - if (((typeof V.DefaultBirthDestination === "undefined") || (V.DefaultBirthDestination === "") || (V.DefaultBirthDestination === "anywhere"))) { - V.DefaultBirthDestination = "individually decided fates"; + { + if (typeof V.slaveOrphanageTotal === "undefined") { + V.slaveOrphanageTotal = 0; + } + if (typeof V.citizenOrphanageTotal === "undefined") { + V.citizenOrphanageTotal = 0; + } + if (typeof V.privateOrphanageTotal === "undefined") { + V.privateOrphanageTotal = 0; + } + if (typeof V.breederOrphanageTotal === "undefined") { + V.breederOrphanageTotal = 0; + } + if ((typeof V.DefaultBirthDestination === "undefined") || (V.DefaultBirthDestination === "") || (V.DefaultBirthDestination === "anywhere")) { + V.DefaultBirthDestination = "individually decided fates"; + } } // Organs - if (typeof V.completedOrgans === "undefined") { - V.completedOrgans = []; + { + if (typeof V.completedOrgans === "undefined") { + V.completedOrgans = []; + } } + // Rent - if (typeof V.rent === "undefined") { - V.rent = {}; - } - if (typeof V.rentDefaults === "undefined") { - V.rentDefaults = {}; - } - if (typeof V.LCRent !== "undefined") { - V.rent.lowerClass = V.LCRent; - } - if (typeof V.MCRent !== "undefined") { - V.rent.middleClass = V.MCRent; - } - if (typeof V.UCRent !== "undefined") { - V.rent.upperClass = V.UCRent; - } - if (typeof V.TCRent !== "undefined") { - V.rent.topClass = V.TCRent; + { + if (typeof V.rent === "undefined") { + V.rent = {}; + } + if (typeof V.rentDefaults === "undefined") { + V.rentDefaults = {}; + } + if (typeof V.LCRent !== "undefined") { + V.rent.lowerClass = V.LCRent; + } + if (typeof V.MCRent !== "undefined") { + V.rent.middleClass = V.MCRent; + } + if (typeof V.UCRent !== "undefined") { + V.rent.upperClass = V.UCRent; + } + if (typeof V.TCRent !== "undefined") { + V.rent.topClass = V.TCRent; + } } // PC - V.enduringTrust = Number(V.enduringTrust) || 0; - V.enduringDevotion = Number(V.enduringDevotion) || 0; - V.averageTrust = Number(V.averageTrust) || 0; - V.averageDevotion = Number(V.averageDevotion) || 0; - if (typeof V.raped === "undefined") { - V.raped = -1; - } - if (typeof V.originOveride === "undefined") { - V.originOveride = 0; - } - if (typeof V.playerAging === "undefined") { - V.playerAging = 2; - } - if (typeof V.playerSurgery === "undefined") { - V.playerSurgery = 0; - } - if (typeof V.retainCareer === "undefined") { - V.retainCareer = 1; - } - if (typeof V.freshPC === "undefined") { - V.freshPC = 0; - } - if (typeof V.personalAttention === "undefined") { - V.personalAttention = "sex"; - } - if (typeof V.trainingRegimen !== "undefined") { - if (typeof V.personalAttention === "number") { - V.personalAttention = [{ID: V.personalAttention, trainingRegimen: V.trainingRegimen}]; + { + PCDatatypeCleanup(); + V.enduringTrust = Number(V.enduringTrust) || 0; + V.enduringDevotion = Number(V.enduringDevotion) || 0; + V.averageTrust = Number(V.averageTrust) || 0; + V.averageDevotion = Number(V.averageDevotion) || 0; + if (typeof V.raped === "undefined") { + V.raped = -1; + } + if (typeof V.originOveride === "undefined") { + V.originOveride = 0; + } + if (typeof V.playerAging === "undefined") { + V.playerAging = 2; + } + if (typeof V.playerSurgery === "undefined") { + V.playerSurgery = 0; + } + if (typeof V.retainCareer === "undefined") { + V.retainCareer = 1; + } + if (typeof V.freshPC === "undefined") { + V.freshPC = 0; + } + if (typeof V.personalAttention === "undefined") { + V.personalAttention = "sex"; + } + if (typeof V.trainingRegimen !== "undefined") { + if (typeof V.personalAttention === "number") { + V.personalAttention = [{ID: V.personalAttention, trainingRegimen: V.trainingRegimen}]; + } } + V.HackingSkillMultiplier = upgradeMultiplier('hacking'); + V.upgradeMultiplierArcology = upgradeMultiplier('engineering'); + V.upgradeMultiplierMedicine = upgradeMultiplier('medicine'); + V.upgradeMultiplierTrade = upgradeMultiplier('trading'); } - PCDatatypeCleanup(); - - V.HackingSkillMultiplier = upgradeMultiplier('hacking'); - V.upgradeMultiplierArcology = upgradeMultiplier('engineering'); - V.upgradeMultiplierMedicine = upgradeMultiplier('medicine'); - V.upgradeMultiplierTrade = upgradeMultiplier('trading'); - - + // Looks at all wombs, including PC. BCReserveInit(); // Misc @@ -1019,1165 +1054,1198 @@ App.Update.globalVariables = function() { V.masteredXP = 200; } - // Menials - if (typeof V.AMenials !== "undefined") { - V.ASlaves += Math.trunc(V.AMenials / 2); - } - if (typeof V.helots !== "undefined") { - V.menials = V.helots; + // Slaves + { + V.JobIDArray = resetJobIDArray(); + if (typeof V.inflatedSlavesMilk === "undefined") { + V.inflatedSlavesMilk = 0; + } + if (typeof V.inflatedSlavesCum === "undefined") { + V.inflatedSlavesCum = 0; + } } - if (typeof V.TradeShowHelots !== "undefined") { - V.TradeShowMenials = V.TradeShowHelots; + + // Menials + { + if (typeof V.AMenials !== "undefined") { + V.ASlaves += Math.trunc(V.AMenials / 2); + } + if (typeof V.helots !== "undefined") { + V.menials = V.helots; + } + if (typeof V.TradeShowHelots !== "undefined") { + V.TradeShowMenials = V.TradeShowHelots; + } } // Items/upgrades purchased - if (typeof V.toysBoughtDildos === "undefined") { - V.toysBoughtDildos = 0; - } - if (typeof V.toysBoughtGags === "undefined") { - V.toysBoughtGags = 0; - } - if (typeof V.toysBoughtVaginalAttachments === "undefined") { - V.toysBoughtVaginalAttachments = 0; - } - if (typeof V.toysBoughtButtPlugs === "undefined") { - V.toysBoughtButtPlugs = 0; - } - if (typeof V.toysBoughtButtPlugTails === "undefined") { - V.toysBoughtButtPlugTails = 0; - } - if (typeof V.toysBoughtSmartVibes === "undefined") { - V.toysBoughtSmartVibes = 0; - } - if (typeof V.buckets === "undefined") { - V.buckets = 0; - } - if (typeof V.clothesBoughtBunny === "undefined") { - V.clothesBoughtBunny = 0; - } - if (typeof V.clothesBoughtConservative === "undefined") { - V.clothesBoughtConservative = 0; - } - if (typeof V.clothesBoughtChains === "undefined") { - V.clothesBoughtChains = 0; - } - if (typeof V.clothesBoughtWestern === "undefined") { - V.clothesBoughtWestern = 0; - } - if (typeof V.clothesBoughtOil === "undefined") { - V.clothesBoughtOil = 0; - } - if (typeof V.clothesBoughtHabit === "undefined") { - V.clothesBoughtHabit = 0; - } - if (typeof V.clothesBoughtToga === "undefined") { - V.clothesBoughtToga = 0; - } - if (typeof V.clothesBoughtKimono === "undefined") { - V.clothesBoughtKimono = 0; - } - if (typeof V.clothesBoughtHarem === "undefined") { - V.clothesBoughtHarem = 0; - } - if (typeof V.clothesBoughtQipao === "undefined") { - V.clothesBoughtQipao = 0; - } - if (typeof V.clothesBoughtEgypt === "undefined") { - V.clothesBoughtEgypt = 0; - } - if (typeof V.clothesBoughtBimbo === "undefined") { - V.clothesBoughtBimbo = 0; - } - if (typeof V.clothesBoughtCourtesan === "undefined") { - V.clothesBoughtCourtesan = 0; - } - if (typeof V.shoesBoughtHeels === "undefined") { - V.shoesBoughtHeels = 0; - } - if (typeof V.clothesBoughtPetite === "undefined") { - V.clothesBoughtPetite = 0; - } - if (typeof V.clothesBoughtMilitary === "undefined") { - V.clothesBoughtMilitary = 0; - } - if (typeof V.clothesBoughtCultural === "undefined") { - V.clothesBoughtCultural = 0; - } - if (typeof V.clothesBoughtMiddleEastern === "undefined") { - V.clothesBoughtMiddleEastern = 0; - } - if (typeof V.clothesBoughtPol === "undefined") { - V.clothesBoughtPol = 0; - } - if (typeof V.clothesBoughtCostume === "undefined") { - V.clothesBoughtCostume = 0; - } - if (typeof V.clothesBoughtPantsu === "undefined") { - V.clothesBoughtPantsu = 0; - } - if (typeof V.clothesBoughtCareer === "undefined") { - V.clothesBoughtCareer = 0; - } - if (typeof V.clothesBoughtDresses === "undefined") { - V.clothesBoughtDresses = 0; - } - if (typeof V.clothesBoughtBodysuits === "undefined") { - V.clothesBoughtBodysuits = 0; - } - if (typeof V.clothesBoughtCasual === "undefined") { - V.clothesBoughtCasual = 0; - } - if (typeof V.clothesBoughtUnderwear === "undefined") { - V.clothesBoughtUnderwear = 0; - } - if (typeof V.clothesBoughtSports === "undefined") { - V.clothesBoughtSports = 0; - } - if (typeof V.clothesBoughtPony === "undefined") { - V.clothesBoughtPony = 0; - } - if (typeof V.clothesBoughtSwimwear === "undefined") { - V.clothesBoughtSwimwear = 0; - } - if (typeof V.clothesBoughtMaternityDress === "undefined") { - V.clothesBoughtMaternityDress = 0; - } - if (typeof V.clothesBoughtMaternityLingerie === "undefined") { - V.clothesBoughtMaternityLingerie = 0; - } - if (typeof V.clothesBoughtLazyClothes === "undefined") { - V.clothesBoughtLazyClothes = 0; - } - if (typeof V.merchantFSWares === "undefined") { - V.merchantFSWares = ["AssetExpansionistResearch", "GenderRadicalistResearch", "HedonisticDecadenceResearch", "SlaveProfessionalismResearch", "SlimnessEnthusiastResearch", "TransformationFetishistResearch", "YouthPreferentialistResearch"]; - } else if (V.merchantFSWares.length === 0) { - V.merchantFSWares.push("AssetExpansionistResearch"); - V.merchantFSWares.push("GenderRadicalistResearch"); - V.merchantFSWares.push("HedonisticDecadenceResearch"); - V.merchantFSWares.push("SlaveProfessionalismResearch"); - V.merchantFSWares.push("SlimnessEnthusiastResearch"); - V.merchantFSWares.push("TransformationFetishistResearch"); - V.merchantFSWares.push("YouthPreferentialistResearch"); - } - if (typeof V.merchantIllegalWares === "undefined") { - V.merchantIllegalWares = ["asexualReproduction", "childhoodFertilityInducedNCS", "PGHack", "RapidCellGrowthFormula", "sympatheticOvaries", "UterineRestraintMesh"]; - } else if (V.merchantIllegalWares.length === 0) { - V.merchantIllegalWares.push("childhoodFertilityInducedNCS"); - V.merchantIllegalWares.push("UterineRestraintMesh"); - V.merchantIllegalWares.push("RapidCellGrowthFormula"); - V.merchantIllegalWares.push("PGHack"); - V.merchantIllegalWares.push("sympatheticOvaries"); - V.merchantIllegalWares.push("asexualReproduction"); - } - if (typeof V.arcologies[0].childhoodFertilityInducedNCSResearch === "undefined") { - V.arcologies[0].childhoodFertilityInducedNCSResearch = 0; - } - delete V.arcologies[0].childFertilityInducedNCSResearch; - if (typeof V.UterineRestraintMesh === "undefined") { - V.UterineRestraintMesh = 0; - } - if (typeof V.RapidCellGrowthFormula === "undefined") { - V.RapidCellGrowthFormula = 0; - } - if (typeof V.PGHack === "undefined") { - V.PGHack = 0; + { + // Wardrobe + { + if (typeof V.toysBoughtDildos === "undefined") { + V.toysBoughtDildos = 0; + } + if (typeof V.toysBoughtGags === "undefined") { + V.toysBoughtGags = 0; + } + if (typeof V.toysBoughtVaginalAttachments === "undefined") { + V.toysBoughtVaginalAttachments = 0; + } + if (typeof V.toysBoughtButtPlugs === "undefined") { + V.toysBoughtButtPlugs = 0; + } + if (typeof V.toysBoughtButtPlugTails === "undefined") { + V.toysBoughtButtPlugTails = 0; + } + if (typeof V.toysBoughtSmartVibes === "undefined") { + V.toysBoughtSmartVibes = 0; + } + if (typeof V.buckets === "undefined") { + V.buckets = 0; + } + if (typeof V.enema === "undefined") { + V.enema = 0; + } + if (typeof V.medicalEnema === "undefined") { + V.medicalEnema = 0; + } + if (typeof V.clothesBoughtBunny === "undefined") { + V.clothesBoughtBunny = 0; + } + if (typeof V.clothesBoughtConservative === "undefined") { + V.clothesBoughtConservative = 0; + } + if (typeof V.clothesBoughtChains === "undefined") { + V.clothesBoughtChains = 0; + } + if (typeof V.clothesBoughtWestern === "undefined") { + V.clothesBoughtWestern = 0; + } + if (typeof V.clothesBoughtOil === "undefined") { + V.clothesBoughtOil = 0; + } + if (typeof V.clothesBoughtHabit === "undefined") { + V.clothesBoughtHabit = 0; + } + if (typeof V.clothesBoughtToga === "undefined") { + V.clothesBoughtToga = 0; + } + if (typeof V.clothesBoughtKimono === "undefined") { + V.clothesBoughtKimono = 0; + } + if (typeof V.clothesBoughtHarem === "undefined") { + V.clothesBoughtHarem = 0; + } + if (typeof V.clothesBoughtQipao === "undefined") { + V.clothesBoughtQipao = 0; + } + if (typeof V.clothesBoughtEgypt === "undefined") { + V.clothesBoughtEgypt = 0; + } + if (typeof V.clothesBoughtBimbo === "undefined") { + V.clothesBoughtBimbo = 0; + } + if (typeof V.clothesBoughtCourtesan === "undefined") { + V.clothesBoughtCourtesan = 0; + } + if (typeof V.shoesBoughtHeels === "undefined") { + V.shoesBoughtHeels = 0; + } + if (typeof V.clothesBoughtPetite === "undefined") { + V.clothesBoughtPetite = 0; + } + if (typeof V.clothesBoughtMilitary === "undefined") { + V.clothesBoughtMilitary = 0; + } + if (typeof V.clothesBoughtCultural === "undefined") { + V.clothesBoughtCultural = 0; + } + if (typeof V.clothesBoughtMiddleEastern === "undefined") { + V.clothesBoughtMiddleEastern = 0; + } + if (typeof V.clothesBoughtPol === "undefined") { + V.clothesBoughtPol = 0; + } + if (typeof V.clothesBoughtCostume === "undefined") { + V.clothesBoughtCostume = 0; + } + if (typeof V.clothesBoughtPantsu === "undefined") { + V.clothesBoughtPantsu = 0; + } + if (typeof V.clothesBoughtCareer === "undefined") { + V.clothesBoughtCareer = 0; + } + if (typeof V.clothesBoughtDresses === "undefined") { + V.clothesBoughtDresses = 0; + } + if (typeof V.clothesBoughtBodysuits === "undefined") { + V.clothesBoughtBodysuits = 0; + } + if (typeof V.clothesBoughtCasual === "undefined") { + V.clothesBoughtCasual = 0; + } + if (typeof V.clothesBoughtUnderwear === "undefined") { + V.clothesBoughtUnderwear = 0; + } + if (typeof V.clothesBoughtSports === "undefined") { + V.clothesBoughtSports = 0; + } + if (typeof V.clothesBoughtPony === "undefined") { + V.clothesBoughtPony = 0; + } + if (typeof V.clothesBoughtSwimwear === "undefined") { + V.clothesBoughtSwimwear = 0; + } + if (typeof V.clothesBoughtMaternityDress === "undefined") { + V.clothesBoughtMaternityDress = 0; + } + if (typeof V.clothesBoughtMaternityLingerie === "undefined") { + V.clothesBoughtMaternityLingerie = 0; + } + if (typeof V.clothesBoughtLazyClothes === "undefined") { + V.clothesBoughtLazyClothes = 0; + } + } + if (typeof V.merchantFSWares === "undefined") { + V.merchantFSWares = ["AssetExpansionistResearch", "GenderRadicalistResearch", "HedonisticDecadenceResearch", "SlaveProfessionalismResearch", "SlimnessEnthusiastResearch", "TransformationFetishistResearch", "YouthPreferentialistResearch"]; + } else if (V.merchantFSWares.length === 0) { + V.merchantFSWares.push("AssetExpansionistResearch"); + V.merchantFSWares.push("GenderRadicalistResearch"); + V.merchantFSWares.push("HedonisticDecadenceResearch"); + V.merchantFSWares.push("SlaveProfessionalismResearch"); + V.merchantFSWares.push("SlimnessEnthusiastResearch"); + V.merchantFSWares.push("TransformationFetishistResearch"); + V.merchantFSWares.push("YouthPreferentialistResearch"); + } + if (typeof V.merchantIllegalWares === "undefined") { + V.merchantIllegalWares = ["asexualReproduction", "childhoodFertilityInducedNCS", "PGHack", "RapidCellGrowthFormula", "sympatheticOvaries", "UterineRestraintMesh"]; + } else if (V.merchantIllegalWares.length === 0) { + V.merchantIllegalWares.push("childhoodFertilityInducedNCS"); + V.merchantIllegalWares.push("UterineRestraintMesh"); + V.merchantIllegalWares.push("RapidCellGrowthFormula"); + V.merchantIllegalWares.push("PGHack"); + V.merchantIllegalWares.push("sympatheticOvaries"); + V.merchantIllegalWares.push("asexualReproduction"); + } + if (typeof V.arcologies[0].childhoodFertilityInducedNCSResearch === "undefined") { + V.arcologies[0].childhoodFertilityInducedNCSResearch = 0; + } + delete V.arcologies[0].childFertilityInducedNCSResearch; + if (typeof V.UterineRestraintMesh === "undefined") { + V.UterineRestraintMesh = 0; + } + if (typeof V.RapidCellGrowthFormula === "undefined") { + V.RapidCellGrowthFormula = 0; + } + if (typeof V.PGHack === "undefined") { + V.PGHack = 0; + } } - // Penthouse upgrades - if (typeof V.pregAccessibility === "undefined") { - V.pregAccessibility = 0; - } - if (typeof V.dickAccessibility === "undefined") { - V.dickAccessibility = 0; - } - if (typeof V.ballsAccessibility === "undefined") { - V.ballsAccessibility = 0; - } - if (typeof V.buttAccessibility === "undefined") { - V.buttAccessibility = 0; - } - if (typeof V.enema === "undefined") { - V.enema = 0; - } - if (typeof V.medicalEnema === "undefined") { - V.medicalEnema = 0; - } - if (typeof V.dairyPiping === "undefined") { - V.dairyPiping = 0; - } - if (typeof V.inflatedSlavesMilk === "undefined") { - V.inflatedSlavesMilk = 0; - } - if (typeof V.inflatedSlavesCum === "undefined") { - V.inflatedSlavesCum = 0; - } - if (typeof V.milkPipeline === "undefined") { - V.milkPipeline = 0; - } - if (typeof V.cumPipeline === "undefined") { - V.cumPipeline = 0; - } - if (typeof V.wcPiping === "undefined") { - V.wcPiping = 0; - } - if (typeof V.pregSpeedControl === "undefined") { - V.pregSpeedControl = 0; + { + if (typeof V.pregAccessibility === "undefined") { + V.pregAccessibility = 0; + } + if (typeof V.dickAccessibility === "undefined") { + V.dickAccessibility = 0; + } + if (typeof V.ballsAccessibility === "undefined") { + V.ballsAccessibility = 0; + } + if (typeof V.buttAccessibility === "undefined") { + V.buttAccessibility = 0; + } + if (typeof V.dairyPiping === "undefined") { + V.dairyPiping = 0; + } + + if (typeof V.wcPiping === "undefined") { + V.wcPiping = 0; + } + if (typeof V.pregSpeedControl === "undefined") { + V.pregSpeedControl = 0; + } } // Shopping for slaves - if (typeof V.specialSlavesPriceOverride === "undefined") { - V.specialSlavesPriceOverride = 0; - } - if (typeof V.huskSlaveOrdered === "undefined") { - V.huskSlaveOrdered = 0; - } - if (typeof V.huskSlave === "undefined") { - V.huskSlave = new App.Entity.CustomSlaveOrder(); - } - if (typeof V.prisonCircuit === "undefined") { - V.prisonCircuit = ["low tier criminals", "gangs and smugglers", "white collar", "military prison"]; - V.prisonCircuitIndex = random(0, V.prisonCircuit.length - 1); - } + { + if (typeof V.specialSlavesPriceOverride === "undefined") { + V.specialSlavesPriceOverride = 0; + } + if (typeof V.huskSlaveOrdered === "undefined") { + V.huskSlaveOrdered = 0; + } + if (typeof V.huskSlave === "undefined") { + V.huskSlave = new App.Entity.CustomSlaveOrder(); + } + if (typeof V.prisonCircuit === "undefined") { + V.prisonCircuit = ["low tier criminals", "gangs and smugglers", "white collar", "military prison"]; + V.prisonCircuitIndex = random(0, V.prisonCircuit.length - 1); + } - App.Update.CustomSlaveOrder(V.huskSlave); - App.Update.CustomSlaveOrder(V.customSlave); + App.Update.CustomSlaveOrder(V.huskSlave); + App.Update.CustomSlaveOrder(V.customSlave); + } // Elite - if (typeof V.playerBred === "undefined") { - V.playerBred = 0; - } - if (typeof V.propOutcome === "undefined") { - V.propOutcome = 0; - } - if (typeof V.EliteSires === "undefined") { - V.EliteSires = ["crazy", "futa", "moves", "preggo", "quick", "virgin"]; - } - if (typeof V.startingPoint === "undefined") { - V.startingPoint = -1; - } - if (typeof V.finalChoice === "undefined") { - V.finalChoice = "none"; - } - if (typeof V.eliteTotal === "undefined") { - V.eliteTotal = 12; - } - if (typeof V.eliteDead === "undefined") { - V.eliteDead = 0; - } - if (typeof V.eliteVegetable === "undefined") { - V.eliteVegetable = 0; - } - if (typeof V.eliteFate === "undefined") { - V.eliteFate = 0; - } - if (typeof V.eliteFail === "undefined") { - V.eliteFail = 0; - } - if (typeof V.eliteFailTimer === "undefined") { - V.eliteFailTimer = 0; - } - if (typeof V.failedElite === "undefined") { - V.failedElite = 0; - } - if (typeof V.eugenicsFullControl === "undefined") { - V.eugenicsFullControl = 0; + { + if (typeof V.playerBred === "undefined") { + V.playerBred = 0; + } + if (typeof V.propOutcome === "undefined") { + V.propOutcome = 0; + } + if (typeof V.EliteSires === "undefined") { + V.EliteSires = ["crazy", "futa", "moves", "preggo", "quick", "virgin"]; + } + if (typeof V.startingPoint === "undefined") { + V.startingPoint = -1; + } + if (typeof V.finalChoice === "undefined") { + V.finalChoice = "none"; + } + if (typeof V.eliteTotal === "undefined") { + V.eliteTotal = 12; + } + if (typeof V.eliteDead === "undefined") { + V.eliteDead = 0; + } + if (typeof V.eliteVegetable === "undefined") { + V.eliteVegetable = 0; + } + if (typeof V.eliteFate === "undefined") { + V.eliteFate = 0; + } + if (typeof V.eliteFail === "undefined") { + V.eliteFail = 0; + } + if (typeof V.eliteFailTimer === "undefined") { + V.eliteFailTimer = 0; + } + if (typeof V.failedElite === "undefined") { + V.failedElite = 0; + } + if (typeof V.eugenicsFullControl === "undefined") { + V.eugenicsFullControl = 0; + } } - // Families/relationships - if (typeof V.familyTesting === "undefined") { - V.familyTesting = 0; - } - if (typeof V.children === "undefined") { - V.children = []; - } - if (typeof V.missingParentID === "undefined") { - V.missingParentID = -10000; - } - if (typeof V.mom === "undefined") { - V.mom = 0; - } - if (typeof V.allowFamilyTitles === "undefined") { - V.allowFamilyTitles = 0; + { + if (typeof V.familyTesting === "undefined") { + V.familyTesting = 0; + } + if (typeof V.children === "undefined") { + V.children = []; + } + if (typeof V.missingParentID === "undefined") { + V.missingParentID = -10000; + } + if (typeof V.mom === "undefined") { + V.mom = 0; + } + if (typeof V.allowFamilyTitles === "undefined") { + V.allowFamilyTitles = 0; + } } + // Genepool - if (typeof V.genePool === "undefined") { - V.genePool = []; + { + if (typeof V.genePool === "undefined") { + V.genePool = []; + } } // Incubator - if (typeof V.incubator === "undefined") { - V.incubator = 0; - } - if (typeof V.incubatorSlaves === "undefined") { - V.incubatorSlaves = 0; - } - if (typeof V.incubatorOrgans === "undefined") { - V.incubatorOrgans = []; - } - if (typeof V.incubatorOldID === "undefined") { - V.incubatorOldID = 0; - } - if (typeof V.incubatorUpgradeSpeed === "undefined") { - V.incubatorUpgradeSpeed = 5; - } - if (typeof V.incubatorUpgradeWeight === "undefined") { - V.incubatorUpgradeWeight = 0; - } - if (typeof V.incubatorUpgradeMuscles === "undefined") { - V.incubatorUpgradeMuscles = 0; - } - if (typeof V.incubatorUpgradeReproduction === "undefined") { - V.incubatorUpgradeReproduction = 0; - } - if (typeof V.incubatorUpgradeGrowthStims === "undefined") { - V.incubatorUpgradeGrowthStims = 0; - } - if (typeof V.incubatorUpgradeOrgans === "undefined") { - V.incubatorUpgradeOrgans = 0; - } - if (typeof V.incubatorImprintSetting === "undefined") { - V.incubatorImprintSetting = 0; - } - if (typeof V.incubatorWeightSetting === "undefined") { - V.incubatorWeightSetting = 0; - } - if (typeof V.incubatorMusclesSetting === "undefined") { - V.incubatorMusclesSetting = 0; - } - if (typeof V.incubatorReproductionSetting === "undefined") { - V.incubatorReproductionSetting = 0; - } - if (typeof V.incubatorGrowthStimsSetting === "undefined") { - V.incubatorGrowthStimsSetting = 0; - } - if (typeof V.reservedChildren === "undefined") { - V.reservedChildren = 0; - } - if (typeof V.tanks === "undefined") { - V.tanks = []; + { + if (typeof V.incubator === "undefined") { + V.incubator = 0; + } + if (typeof V.incubatorSlaves === "undefined") { + V.incubatorSlaves = 0; + } + if (typeof V.incubatorOrgans === "undefined") { + V.incubatorOrgans = []; + } + if (typeof V.incubatorOldID === "undefined") { + V.incubatorOldID = 0; + } + if (typeof V.incubatorUpgradeSpeed === "undefined") { + V.incubatorUpgradeSpeed = 5; + } + if (typeof V.incubatorUpgradeWeight === "undefined") { + V.incubatorUpgradeWeight = 0; + } + if (typeof V.incubatorUpgradeMuscles === "undefined") { + V.incubatorUpgradeMuscles = 0; + } + if (typeof V.incubatorUpgradeReproduction === "undefined") { + V.incubatorUpgradeReproduction = 0; + } + if (typeof V.incubatorUpgradeGrowthStims === "undefined") { + V.incubatorUpgradeGrowthStims = 0; + } + if (typeof V.incubatorUpgradeOrgans === "undefined") { + V.incubatorUpgradeOrgans = 0; + } + if (typeof V.incubatorImprintSetting === "undefined") { + V.incubatorImprintSetting = 0; + } + if (typeof V.incubatorWeightSetting === "undefined") { + V.incubatorWeightSetting = 0; + } + if (typeof V.incubatorMusclesSetting === "undefined") { + V.incubatorMusclesSetting = 0; + } + if (typeof V.incubatorReproductionSetting === "undefined") { + V.incubatorReproductionSetting = 0; + } + if (typeof V.incubatorGrowthStimsSetting === "undefined") { + V.incubatorGrowthStimsSetting = 0; + } + if (typeof V.reservedChildren === "undefined") { + V.reservedChildren = 0; + } + if (typeof V.tanks === "undefined") { + V.tanks = []; + } } + // Nursery Subsection - if (typeof V.nursery === "undefined") { - V.nursery = 0; - } - if (typeof V.nIDNumber === "undefined") { - V.nIDNumber = 1; - } - if (typeof V.nurseryNannies === "undefined") { - V.nurseryNannies = 0; - } - if (typeof V.nurseryBabies === "undefined") { - V.nurseryBabies = 0; - } - if (typeof V.Matron === "undefined") { - V.Matron = 0; - } - if (typeof V.activeChild === "undefined") { - V.activeChild = 0; - } - if (typeof V.nannyInfluence === "undefined") { - V.nannyInfluence = 0; - } - if (typeof V.MatronInfluence === "undefined") { - V.MatronInfluence = 0; - } - if (typeof V.nurseryWeight === "undefined") { - V.nurseryWeight = 0; - } - if (typeof V.nurseryMuscles === "undefined") { - V.nurseryMuscles = 0; - } - if (typeof V.nurseryHormones === "undefined") { - V.nurseryHormones = 0; - } - if (typeof V.nurseryOrgans === "undefined") { - V.nurseryOrgans = 0; - } - if (typeof V.nurseryImprintSetting === "undefined") { - V.nurseryImprintSetting = 0; - } - if (typeof V.nurseryWeightSetting === "undefined") { - V.nurseryWeightSetting = 0; - } - if (typeof V.nurseryMusclesSetting === "undefined") { - V.nurseryMusclesSetting = 0; - } - if (typeof V.nurseryHormonesSetting === "undefined") { - V.nurseryHormonesSetting = 0; - } - if (typeof V.nurseryGrowthStimsSetting === "undefined") { - V.nurseryGrowthStimsSetting = 0; - } - if (typeof V.reservedChildrenNursery === "undefined") { - V.reservedChildrenNursery = 0; - } - if (typeof V.cribs === "undefined") { - V.cribs = []; - } - if (typeof V.cribsFreed === "undefined") { - V.cribsFreed = []; - } - if (typeof V.childSex === "undefined") { - V.childSex = 0; - } - if (typeof V.childProtectionAct === "undefined") { - V.childProtectionAct = 1; + { + if (typeof V.nursery === "undefined") { + V.nursery = 0; + } + if (typeof V.nIDNumber === "undefined") { + V.nIDNumber = 1; + } + if (typeof V.nurseryNannies === "undefined") { + V.nurseryNannies = 0; + } + if (typeof V.nurseryBabies === "undefined") { + V.nurseryBabies = 0; + } + if (typeof V.Matron === "undefined") { + V.Matron = 0; + } + if (typeof V.activeChild === "undefined") { + V.activeChild = 0; + } + if (typeof V.nannyInfluence === "undefined") { + V.nannyInfluence = 0; + } + if (typeof V.MatronInfluence === "undefined") { + V.MatronInfluence = 0; + } + if (typeof V.nurseryWeight === "undefined") { + V.nurseryWeight = 0; + } + if (typeof V.nurseryMuscles === "undefined") { + V.nurseryMuscles = 0; + } + if (typeof V.nurseryHormones === "undefined") { + V.nurseryHormones = 0; + } + if (typeof V.nurseryOrgans === "undefined") { + V.nurseryOrgans = 0; + } + if (typeof V.nurseryImprintSetting === "undefined") { + V.nurseryImprintSetting = 0; + } + if (typeof V.nurseryWeightSetting === "undefined") { + V.nurseryWeightSetting = 0; + } + if (typeof V.nurseryMusclesSetting === "undefined") { + V.nurseryMusclesSetting = 0; + } + if (typeof V.nurseryHormonesSetting === "undefined") { + V.nurseryHormonesSetting = 0; + } + if (typeof V.nurseryGrowthStimsSetting === "undefined") { + V.nurseryGrowthStimsSetting = 0; + } + if (typeof V.reservedChildrenNursery === "undefined") { + V.reservedChildrenNursery = 0; + } + if (typeof V.cribs === "undefined") { + V.cribs = []; + } + if (typeof V.cribsFreed === "undefined") { + V.cribsFreed = []; + } + if (typeof V.childSex === "undefined") { + V.childSex = 0; + } + if (typeof V.childProtectionAct === "undefined") { + V.childProtectionAct = 1; + } } // Farmyard Subsection - if (typeof V.Farmer === "undefined") { - V.Farmer = 0; - } - if (typeof V.farmyard === "undefined") { - V.farmyard = 0; - } - if (typeof V.farmyardShowgirls === "undefined") { - V.farmyardShowgirls = []; - } - if (typeof V.farmyardFarmers === "undefined") { - V.farmyardFarmers = []; - } - if (typeof V.farmMenials === "undefined") { - V.farmMenials = 0; - } - if (typeof V.farmMenialsSpace === "undefined") { - V.farmMenialsSpace = 0; - } - if (typeof V.farmyardUpgrade === "undefined") { - V.farmyardUpgrade = { - pump: 0, - fertilizer: 0, - hydroponics: 0, - machinery: 0, - seeds: 0, - lab: 0 - }; - } - if (typeof V.farmyardCrops === "undefined") { - V.farmyardCrops = 0; - } - if (typeof V.farmyardKennels === "undefined") { - V.farmyardKennels = 0; - } - if (typeof V.farmyardStable === "undefined") { - V.farmyardStable = 0; - } - if (typeof V.farmyardCages === "undefined") { - V.farmyardCages = 0; - } - if (typeof V.farmyardLab === "undefined") { - V.farmyardLab = 0; - } - if (typeof V.farmyardLabUpgrades === "undefined") { - V.farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}; - } - if (typeof V.animalsBought === "undefined") { - V.animalsBought = {}; - } - let _animalsBought = ["canines", "hooved", "felines", "labradorRetrievers", "germanShepherds", "goldenRetrievers", "frenchBulldogs", "bulldogs", "beagles", "poodles", "rottweilers", "yorkshireTerriers", "siberianHuskies", "horses", "bulls", "pigs", "siameses", "persians", "maineCoons", "ragdolls", "bengals", "abbysinians", "birmans", "orientalShorthairs", "sphynxes", "russianBlues", "wolves", "foxes", "jackals", "dingos", "zebras", "cougars", "jaguars", "pumas", "lynx", "leopards", "lions", "tigers"]; - _animalsBought.forEach(function(species) { V.animalsBought[species] = V.animalsBought[species] || 0; }); - if (typeof V.canines === "undefined") { - V.canines = []; - } - if (typeof V.hooved === "undefined") { - V.hooved = []; - } - if (typeof V.felines === "undefined") { - V.felines = []; - } - if (typeof V.activeCanine === "undefined") { - V.activeCanine = 0; - } - if (typeof V.activeHooved === "undefined") { - V.activeHooved = 0; - } - if (typeof V.activeFeline === "undefined") { - V.activeFeline = 0; + { + if (typeof V.Farmer === "undefined") { + V.Farmer = 0; + } + if (typeof V.farmyard === "undefined") { + V.farmyard = 0; + } + if (typeof V.farmyardShowgirls === "undefined") { + V.farmyardShowgirls = []; + } + if (typeof V.farmyardFarmers === "undefined") { + V.farmyardFarmers = []; + } + if (typeof V.farmMenials === "undefined") { + V.farmMenials = 0; + } + if (typeof V.farmMenialsSpace === "undefined") { + V.farmMenialsSpace = 0; + } + if (typeof V.farmyardUpgrade === "undefined") { + V.farmyardUpgrade = { + pump: 0, + fertilizer: 0, + hydroponics: 0, + machinery: 0, + seeds: 0, + lab: 0 + }; + } + if (typeof V.farmyardCrops === "undefined") { + V.farmyardCrops = 0; + } + if (typeof V.farmyardKennels === "undefined") { + V.farmyardKennels = 0; + } + if (typeof V.farmyardStable === "undefined") { + V.farmyardStable = 0; + } + if (typeof V.farmyardCages === "undefined") { + V.farmyardCages = 0; + } + if (typeof V.farmyardLab === "undefined") { + V.farmyardLab = 0; + } + if (typeof V.farmyardLabUpgrades === "undefined") { + V.farmyardLabUpgrades = {animalOvaries: 0, animalTesticles: 0, animalMpreg: 0}; + } + if (typeof V.animalsBought === "undefined") { + V.animalsBought = {}; + } + let _animalsBought = ["canines", "hooved", "felines", "labradorRetrievers", "germanShepherds", "goldenRetrievers", "frenchBulldogs", "bulldogs", "beagles", "poodles", "rottweilers", "yorkshireTerriers", "siberianHuskies", "horses", "bulls", "pigs", "siameses", "persians", "maineCoons", "ragdolls", "bengals", "abbysinians", "birmans", "orientalShorthairs", "sphynxes", "russianBlues", "wolves", "foxes", "jackals", "dingos", "zebras", "cougars", "jaguars", "pumas", "lynx", "leopards", "lions", "tigers"]; + _animalsBought.forEach(function(species) { V.animalsBought[species] = V.animalsBought[species] || 0; }); + if (typeof V.canines === "undefined") { + V.canines = []; + } + if (typeof V.hooved === "undefined") { + V.hooved = []; + } + if (typeof V.felines === "undefined") { + V.felines = []; + } + if (typeof V.activeCanine === "undefined") { + V.activeCanine = 0; + } + if (typeof V.activeHooved === "undefined") { + V.activeHooved = 0; + } + if (typeof V.activeFeline === "undefined") { + V.activeFeline = 0; + } } - App.SF.BC(); + // SF + { + App.SF.BC(); + } - // TODO: Corp, should this be removed? -LCD - if (V.captureUpgradeRace === "") { - V.generalUpgradeBreaking = "unselected"; - V.generalUpgradeWeight = "unselected"; - V.generalUpgradeMuscle = "unselected"; - V.entrapmentUpgradeDevotionOne = "unselected"; - V.entrapmentUpgradeDevotionTwo = "unselected"; - V.entrapmentUpgradeIntelligence = "unselected"; - V.captureUpgradeGender = "unselected"; - V.surgicalUpgradeGenitalia = "unselected"; - V.captureUpgradeAge = "unselected"; - V.captureUpgradeRace = "unselected"; - V.trainingUpgradeAccent = "unselected"; - V.trainingUpgradeEducation = "unselected"; - V.trainingUpgradeSexEd = "unselected"; - V.surgicalUpgradeCosmetics = "unselected"; - V.surgicalUpgradeImplants = "unselected"; - V.drugUpgradeHormones = "unselected"; - V.drugUpgradeInjectionOne = "unselected"; - V.drugUpgradeInjectionTwo = "unselected"; + // Corp + { + App.Corporate.Backcompat(); + // TODO: Corp, should captureUpgradeRace be removed? -LCD + if (V.captureUpgradeRace === "") { + V.generalUpgradeBreaking = "unselected"; + V.generalUpgradeWeight = "unselected"; + V.generalUpgradeMuscle = "unselected"; + V.entrapmentUpgradeDevotionOne = "unselected"; + V.entrapmentUpgradeDevotionTwo = "unselected"; + V.entrapmentUpgradeIntelligence = "unselected"; + V.captureUpgradeGender = "unselected"; + V.surgicalUpgradeGenitalia = "unselected"; + V.captureUpgradeAge = "unselected"; + V.captureUpgradeRace = "unselected"; + V.trainingUpgradeAccent = "unselected"; + V.trainingUpgradeEducation = "unselected"; + V.trainingUpgradeSexEd = "unselected"; + V.surgicalUpgradeCosmetics = "unselected"; + V.surgicalUpgradeImplants = "unselected"; + V.drugUpgradeHormones = "unselected"; + V.drugUpgradeInjectionOne = "unselected"; + V.drugUpgradeInjectionTwo = "unselected"; + } } // FS - if (typeof V.FSCreditCount === "undefined") { - V.FSCreditCount = 5; - } - if (typeof V.FSGotRepCredits === "undefined") { - 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.FSCreditCount === "undefined") { + V.FSCreditCount = 5; } - } - if (typeof V.arcologies[0].FSAztecRevivalist === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSAztecRevivalist = "unset", V.arcologies[_bci].FSAztecRevivalistDecoration = 0; + if (typeof V.FSGotRepCredits === "undefined") { + 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; + } } - V.arcologies[0].FSAztecRevivalistLaw = 0, V.arcologies[0].FSAztecRevivalistSMR = 0; - } - if (typeof V.arcologies[0].FSHedonisticDecadence === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSHedonisticDecadence = "unset", V.arcologies[_bci].FSHedonisticDecadenceDecoration = 0; + if (typeof V.arcologies[0].FSAztecRevivalist === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSAztecRevivalist = "unset", V.arcologies[_bci].FSAztecRevivalistDecoration = 0; + } + V.arcologies[0].FSAztecRevivalistLaw = 0, V.arcologies[0].FSAztecRevivalistSMR = 0; } - V.arcologies[0].FSHedonisticDecadenceLaw = 0, V.arcologies[0].FSHedonisticDecadenceLaw2 = 0, V.arcologies[0].FSHedonisticDecadenceSMR = 0, V.arcologies[0].FSHedonisticDecadenceResearch = 0; - } - if (typeof V.arcologies[0].FSHedonisticDecadenceDietResearch === "undefined") { - V.arcologies[0].FSHedonisticDecadenceDietResearch = 0; - } - if (typeof V.arcologies[0].FSPhysicalIdealistStrongFat === "undefined") { - V.arcologies[0].FSPhysicalIdealistStrongFat = 0; - } - if (typeof V.arcologies[0].FSHedonisticDecadenceStrongFat === "undefined") { - V.arcologies[0].FSHedonisticDecadenceStrongFat = 0; - } - if (typeof V.arcologies[0].FSIntellectualDependency === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSIntellectualDependency = "unset", V.arcologies[_bci].FSIntellectualDependencyDecoration = 0; + if (typeof V.arcologies[0].FSHedonisticDecadence === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSHedonisticDecadence = "unset", V.arcologies[_bci].FSHedonisticDecadenceDecoration = 0; + } + V.arcologies[0].FSHedonisticDecadenceLaw = 0, V.arcologies[0].FSHedonisticDecadenceLaw2 = 0, V.arcologies[0].FSHedonisticDecadenceSMR = 0, V.arcologies[0].FSHedonisticDecadenceResearch = 0; } - V.arcologies[0].FSIntellectualDependencyLaw = 0, V.arcologies[0].FSIntellectualDependencyLawBeauty = 0, V.arcologies[0].FSIntellectualDependencySMR = 0, V.arcologies[0].FSIntellectualDependencyResearch = 0; - } - if (typeof V.arcologies[0].FSSlaveProfessionalism === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSSlaveProfessionalism = "unset", V.arcologies[_bci].FSSlaveProfessionalismDecoration = 0; + if (typeof V.arcologies[0].FSHedonisticDecadenceDietResearch === "undefined") { + V.arcologies[0].FSHedonisticDecadenceDietResearch = 0; } - V.arcologies[0].FSSlaveProfessionalismLaw = 0, V.arcologies[0].FSSlaveProfessionalismSMR = 0, V.arcologies[0].FSSlaveProfessionalismResearch = 0; - } - if (typeof V.arcologies[0].FSPetiteAdmiration === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSPetiteAdmiration = "unset", V.arcologies[_bci].FSPetiteAdmirationDecoration = 0; + if (typeof V.arcologies[0].FSPhysicalIdealistStrongFat === "undefined") { + V.arcologies[0].FSPhysicalIdealistStrongFat = 0; } - V.arcologies[0].FSPetiteAdmirationLaw = 0, V.arcologies[0].FSPetiteAdmirationLaw2 = 0, V.arcologies[0].FSPetiteAdmirationSMR = 0, V.arcologies[0].FSPetiteAdmirationResearch = 0; - } - if (typeof V.arcologies[0].FSStatuesqueGlorification === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSStatuesqueGlorification = "unset", V.arcologies[_bci].FSStatuesqueGlorificationDecoration = 0; + if (typeof V.arcologies[0].FSHedonisticDecadenceStrongFat === "undefined") { + V.arcologies[0].FSHedonisticDecadenceStrongFat = 0; } - V.arcologies[0].FSStatuesqueGlorificationLaw = 0, V.arcologies[0].FSStatuesqueGlorificationLaw2 = 0, V.arcologies[0].FSStatuesqueGlorificationSMR = 0, V.arcologies[0].FSStatuesqueGlorificationResearch = 0; - } - if (typeof V.arcologies[0].FSCummunism === "undefined") { - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSCummunism = "unset", V.arcologies[_bci].FSCummunismDecoration = 0; + if (typeof V.arcologies[0].FSIntellectualDependency === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSIntellectualDependency = "unset", V.arcologies[_bci].FSIntellectualDependencyDecoration = 0; + } + V.arcologies[0].FSIntellectualDependencyLaw = 0, V.arcologies[0].FSIntellectualDependencyLawBeauty = 0, V.arcologies[0].FSIntellectualDependencySMR = 0, V.arcologies[0].FSIntellectualDependencyResearch = 0; + } + if (typeof V.arcologies[0].FSSlaveProfessionalism === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSSlaveProfessionalism = "unset", V.arcologies[_bci].FSSlaveProfessionalismDecoration = 0; + } + V.arcologies[0].FSSlaveProfessionalismLaw = 0, V.arcologies[0].FSSlaveProfessionalismSMR = 0, V.arcologies[0].FSSlaveProfessionalismResearch = 0; + } + if (typeof V.arcologies[0].FSPetiteAdmiration === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSPetiteAdmiration = "unset", V.arcologies[_bci].FSPetiteAdmirationDecoration = 0; + } + V.arcologies[0].FSPetiteAdmirationLaw = 0, V.arcologies[0].FSPetiteAdmirationLaw2 = 0, V.arcologies[0].FSPetiteAdmirationSMR = 0, V.arcologies[0].FSPetiteAdmirationResearch = 0; + } + if (typeof V.arcologies[0].FSStatuesqueGlorification === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSStatuesqueGlorification = "unset", V.arcologies[_bci].FSStatuesqueGlorificationDecoration = 0; + } + V.arcologies[0].FSStatuesqueGlorificationLaw = 0, V.arcologies[0].FSStatuesqueGlorificationLaw2 = 0, V.arcologies[0].FSStatuesqueGlorificationSMR = 0, V.arcologies[0].FSStatuesqueGlorificationResearch = 0; + } + if (typeof V.arcologies[0].FSCummunism === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSCummunism = "unset", V.arcologies[_bci].FSCummunismDecoration = 0; + } + V.arcologies[0].FSCummunismResearch = 0; + } + if (typeof V.arcologies[0].FSIncestFetishist === "undefined") { + for (let _bci = 0; _bci < V.arcologies.length; _bci++) { + V.arcologies[_bci].FSIncestFetishist = "unset", V.arcologies[_bci].FSIncestFetishistDecoration = 0; + } + V.arcologies[0].FSIncestFetishistResearch = 0; } - V.arcologies[0].FSCummunismResearch = 0; - } - if (typeof V.arcologies[0].FSIncestFetishist === "undefined") { for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - V.arcologies[_bci].FSIncestFetishist = "unset", V.arcologies[_bci].FSIncestFetishistDecoration = 0; + if (V.arcologies[_bci].FSHedonisticDecadence === 0) { + V.arcologies[_bci].FSHedonisticDecadence = "unset", V.arcologies[_bci].FSHedonisticDecadenceDecoration = 0; + } } - V.arcologies[0].FSIncestFetishistResearch = 0; - } - for (let _bci = 0; _bci < V.arcologies.length; _bci++) { - if (V.arcologies[_bci].FSHedonisticDecadence === 0) { - V.arcologies[_bci].FSHedonisticDecadence = "unset", V.arcologies[_bci].FSHedonisticDecadenceDecoration = 0; + if (typeof V.arcologies[0].FSPhysicalIdealistLaw === "undefined") { + V.arcologies[0].FSPhysicalIdealistLaw = 0; } } - if (typeof V.arcologies[0].FSPhysicalIdealistLaw === "undefined") { - V.arcologies[0].FSPhysicalIdealistLaw = 0; - } // Arcologies - if (typeof V.FSPromenade === "undefined") { - V.FSPromenade = { - Subjugationist: 0, - Supremacist: 0, - GenderRadicalist: 0, - GenderFundamentalist: 0, - Paternalist: 0, - Degradationist: 0, - BodyPurist: 0, - TransformationFetishist: 0, - YouthPreferentialist: 0, - MaturityPreferentialist: 0, - SlimnessEnthusiast: 0, - AssetExpansionist: 0, - Pastoralist: 0, - PhysicalIdealist: 0, - ChattelReligionist: 0, - RomanRevivalist: 0, - AztecRevivalist: 0, - EgyptianRevivalist: 0, - EdoRevivalist: 0, - ArabianRevivalist: 0, - ChineseRevivalist: 0, - Repopulationist: 0, - Eugenics: 0, - Hedonism: 0, - IntellectualDependency: 0, - SlaveProfessionalism: 0, - PetiteAdmiration: 0, - StatuesqueGlorification: 0 - }; - } - if (typeof V.arcologyUpgrade === "undefined") { - V.arcologyUpgrade = { - drones: 0, - hydro: 0, - apron: 0, - grid: 0, - spire: 0 - }; - V.arcologyUpgrade.drones = (V.AProsperityCap > 60) ? 1 : 0; - V.arcologyUpgrade.hydro = (V.AProsperityCap > 80) ? 1 : 0; - V.arcologyUpgrade.apron = (V.AProsperityCap > 100) ? 1 : 0; - V.arcologyUpgrade.grid = (V.AProsperityCap > 120) ? 1 : 0; - V.arcologyUpgrade.spire = (V.AProsperityCap > 240) ? 1 : 0; - } - if (typeof V.arcologies === "undefined") { - V.arcologies = []; - V.arcologies[0] = { - name: "Arcology X-", - direction: 0, - government: 1, - honeymoon: 0, - prosperity: 50, - FSSupremacist: "unset", - FSSupremacistRace: 0, - FSSubjugationist: "unset", - FSSubjugationistRace: 0, - FSGenderRadicalist: "unset", - FSGenderFundamentalist: "unset", - FSPaternalist: "unset", - FSDegradationist: "unset", - FSBodyPurist: "unset", - FSTransformationFetishist: "unset", - FSYouthPreferentialist: "unset", - FSMaturityPreferentialist: "unset", - FSSlimnessEnthusiast: "unset", - FSAssetExpansionist: "unset", - FSPastoralist: "unset", - FSPhysicalIdealist: "unset", - FSChattelReligionist: "unset", - FSRomanRevivalist: "unset", - FSEgyptianRevivalist: "unset", - FSEdoRevivalist: "unset", - FSArabianRevivalist: "unset", - FSChineseRevivalist: "unset", - FSNull: "unset", - FSRepopulationFocus: "unset", - FSRestart: "unset", - FSHedonisticDecadence: "unset", - FSIntellectualDependency: "unset", - FSSlaveProfessionalism: "unset", - FSPetiteAdmiration: "unset", - FSStatuesqueGlorification: "unset", - embargo: 1, - embargoTarget: -1, - influenceTarget: -1, - influenceBonus: 0, - rival: 0 - }; - } - if (typeof V.arcologyName !== "undefined") { - V.arcologies[0].name = V.arcologyName; - } else if (typeof V.arcologies[0].name === "undefined") { - V.arcologies[0].name = "Arcology X-4"; - } - if (typeof V.arcologies[0].ownership === "undefined") { - V.arcologies[0].ownership = 50; - } - if (typeof V.arcologies[0].minority === "undefined") { - V.arcologies[0].minority = 20; - } - if (typeof V.arcologies[0].embargo === "undefined") { - V.arcologies[0].embargo = 1; - } - if (typeof V.arcologies[0].embargoTarget === "undefined") { - V.arcologies[0].embargoTarget = -1; - } - if (typeof V.arcologies[0].hackingEconomic === "undefined") { - V.arcologies[0].hackingEconomic = 1; - } - if (typeof V.arcologies[0].hackingEconomicTarget === "undefined") { - V.arcologies[0].hackingEconomicTarget = -1; - } - if (typeof V.arcologies[0].hackingReputationTarget === "undefined") { - V.arcologies[0].hackingReputationTarget = -1; - } - if (typeof V.arcologies[0].hackingReputation === "undefined") { - V.arcologies[0].hackingReputation = 1; - } - if (typeof V.arcologies[0].influenceTarget === "undefined") { - V.arcologies[0].influenceTarget = -1; - } - if (typeof V.arcologies[0].influenceBonus === "undefined") { - V.arcologies[0].influenceBonus = -1; - } - if (typeof V.arcologies[0].CyberEconomic === "undefined") { - V.arcologies[0].CyberEconomic = 1; - } - if (typeof V.arcologies[0].CyberEconomicTarget === "undefined") { - V.arcologies[0].CyberEconomicTarget = -1; - } - if (typeof V.arcologies[0].CyberReputation === "undefined") { - V.arcologies[0].CyberReputation = 1; - } - if (typeof V.arcologies[0].CyberReputationTarget === "undefined") { - V.arcologies[0].CyberReputationTarget = -1; - } - if (typeof V.arcologies[0].rival === "undefined") { - V.arcologies[0].rival = 0; - } - if (typeof V.arcologies[0].FSNull === "undefined") { - V.arcologies[0].FSNull = "unset"; - } - if (typeof V.arcologies[0].FSRepopulationFocus === "undefined") { - V.arcologies[0].FSRepopulationFocus = "unset"; - } - if (typeof V.arcologies[0].FSRepopulationFocusPregPolicy === "undefined") { - V.arcologies[0].FSRepopulationFocusPregPolicy = 0; - } - if (typeof V.arcologies[0].FSRepopulationFocusMilfPolicy === "undefined") { - V.arcologies[0].FSRepopulationFocusMilfPolicy = 0; - } - if (typeof V.arcologies[0].FSRepopulationFocusInterest === "undefined") { - V.arcologies[0].FSRepopulationFocusInterest = 0; - } - if (typeof V.arcologies[0].FSRestart === "undefined") { - V.arcologies[0].FSRestart = "unset"; - } - if (typeof V.arcologies[0].FSEugenicsChastityPolicy === "undefined") { - V.arcologies[0].FSEugenicsChastityPolicy = 0; - } - if (typeof V.arcologies[0].FSEugenicsSterilizationPolicy === "undefined") { - V.arcologies[0].FSEugenicsSterilizationPolicy = 0; - } - if (typeof V.arcologies[0].FSEugenicsInterest === "undefined") { - V.arcologies[0].FSEugenicsInterest = 0; - } - if (typeof V.arcologies[0].PCminority === "undefined") { - V.arcologies[0].PCminority = 0; - } - if (typeof V.arcologies[0].demandFactor === "undefined") { - V.arcologies[0].demandFactor = 250; - } - if (typeof V.arcologies[0].leaderID === "undefined") { - V.arcologies[0].leaderID = 0; - } - if (typeof V.building === "undefined") { - if (typeof V.sectors !== "undefined") { - App.Update.sectorsToBuilding(); - } else { - V.building = App.Arcology.defaultBuilding(); + { + if (typeof V.FSPromenade === "undefined") { + V.FSPromenade = { + Subjugationist: 0, + Supremacist: 0, + GenderRadicalist: 0, + GenderFundamentalist: 0, + Paternalist: 0, + Degradationist: 0, + BodyPurist: 0, + TransformationFetishist: 0, + YouthPreferentialist: 0, + MaturityPreferentialist: 0, + SlimnessEnthusiast: 0, + AssetExpansionist: 0, + Pastoralist: 0, + PhysicalIdealist: 0, + ChattelReligionist: 0, + RomanRevivalist: 0, + AztecRevivalist: 0, + EgyptianRevivalist: 0, + EdoRevivalist: 0, + ArabianRevivalist: 0, + ChineseRevivalist: 0, + Repopulationist: 0, + Eugenics: 0, + Hedonism: 0, + IntellectualDependency: 0, + SlaveProfessionalism: 0, + PetiteAdmiration: 0, + StatuesqueGlorification: 0 + }; + } + if (typeof V.arcologyUpgrade === "undefined") { + V.arcologyUpgrade = { + drones: 0, + hydro: 0, + apron: 0, + grid: 0, + spire: 0 + }; + V.arcologyUpgrade.drones = (V.AProsperityCap > 60) ? 1 : 0; + V.arcologyUpgrade.hydro = (V.AProsperityCap > 80) ? 1 : 0; + V.arcologyUpgrade.apron = (V.AProsperityCap > 100) ? 1 : 0; + V.arcologyUpgrade.grid = (V.AProsperityCap > 120) ? 1 : 0; + V.arcologyUpgrade.spire = (V.AProsperityCap > 240) ? 1 : 0; + } + if (typeof V.arcologies === "undefined") { + V.arcologies = []; + V.arcologies[0] = { + name: "Arcology X-", + direction: 0, + government: 1, + honeymoon: 0, + prosperity: 50, + FSSupremacist: "unset", + FSSupremacistRace: 0, + FSSubjugationist: "unset", + FSSubjugationistRace: 0, + FSGenderRadicalist: "unset", + FSGenderFundamentalist: "unset", + FSPaternalist: "unset", + FSDegradationist: "unset", + FSBodyPurist: "unset", + FSTransformationFetishist: "unset", + FSYouthPreferentialist: "unset", + FSMaturityPreferentialist: "unset", + FSSlimnessEnthusiast: "unset", + FSAssetExpansionist: "unset", + FSPastoralist: "unset", + FSPhysicalIdealist: "unset", + FSChattelReligionist: "unset", + FSRomanRevivalist: "unset", + FSEgyptianRevivalist: "unset", + FSEdoRevivalist: "unset", + FSArabianRevivalist: "unset", + FSChineseRevivalist: "unset", + FSNull: "unset", + FSRepopulationFocus: "unset", + FSRestart: "unset", + FSHedonisticDecadence: "unset", + FSIntellectualDependency: "unset", + FSSlaveProfessionalism: "unset", + FSPetiteAdmiration: "unset", + FSStatuesqueGlorification: "unset", + embargo: 1, + embargoTarget: -1, + influenceTarget: -1, + influenceBonus: 0, + rival: 0 + }; + } + if (typeof V.arcologyName !== "undefined") { + V.arcologies[0].name = V.arcologyName; + } else if (typeof V.arcologies[0].name === "undefined") { + V.arcologies[0].name = "Arcology X-4"; + } + if (typeof V.arcologies[0].ownership === "undefined") { + V.arcologies[0].ownership = 50; + } + if (typeof V.arcologies[0].minority === "undefined") { + V.arcologies[0].minority = 20; + } + if (typeof V.arcologies[0].embargo === "undefined") { + V.arcologies[0].embargo = 1; + } + if (typeof V.arcologies[0].embargoTarget === "undefined") { + V.arcologies[0].embargoTarget = -1; + } + if (typeof V.arcologies[0].hackingEconomic === "undefined") { + V.arcologies[0].hackingEconomic = 1; + } + if (typeof V.arcologies[0].hackingEconomicTarget === "undefined") { + V.arcologies[0].hackingEconomicTarget = -1; + } + if (typeof V.arcologies[0].hackingReputationTarget === "undefined") { + V.arcologies[0].hackingReputationTarget = -1; + } + if (typeof V.arcologies[0].hackingReputation === "undefined") { + V.arcologies[0].hackingReputation = 1; + } + if (typeof V.arcologies[0].influenceTarget === "undefined") { + V.arcologies[0].influenceTarget = -1; + } + if (typeof V.arcologies[0].influenceBonus === "undefined") { + V.arcologies[0].influenceBonus = -1; + } + if (typeof V.arcologies[0].CyberEconomic === "undefined") { + V.arcologies[0].CyberEconomic = 1; + } + if (typeof V.arcologies[0].CyberEconomicTarget === "undefined") { + V.arcologies[0].CyberEconomicTarget = -1; + } + if (typeof V.arcologies[0].CyberReputation === "undefined") { + V.arcologies[0].CyberReputation = 1; + } + if (typeof V.arcologies[0].CyberReputationTarget === "undefined") { + V.arcologies[0].CyberReputationTarget = -1; + } + if (typeof V.arcologies[0].rival === "undefined") { + V.arcologies[0].rival = 0; + } + if (typeof V.arcologies[0].FSNull === "undefined") { + V.arcologies[0].FSNull = "unset"; + } + if (typeof V.arcologies[0].FSRepopulationFocus === "undefined") { + V.arcologies[0].FSRepopulationFocus = "unset"; + } + if (typeof V.arcologies[0].FSRepopulationFocusPregPolicy === "undefined") { + V.arcologies[0].FSRepopulationFocusPregPolicy = 0; + } + if (typeof V.arcologies[0].FSRepopulationFocusMilfPolicy === "undefined") { + V.arcologies[0].FSRepopulationFocusMilfPolicy = 0; + } + if (typeof V.arcologies[0].FSRepopulationFocusInterest === "undefined") { + V.arcologies[0].FSRepopulationFocusInterest = 0; + } + if (typeof V.arcologies[0].FSRestart === "undefined") { + V.arcologies[0].FSRestart = "unset"; + } + if (typeof V.arcologies[0].FSEugenicsChastityPolicy === "undefined") { + V.arcologies[0].FSEugenicsChastityPolicy = 0; + } + if (typeof V.arcologies[0].FSEugenicsSterilizationPolicy === "undefined") { + V.arcologies[0].FSEugenicsSterilizationPolicy = 0; + } + if (typeof V.arcologies[0].FSEugenicsInterest === "undefined") { + V.arcologies[0].FSEugenicsInterest = 0; + } + if (typeof V.arcologies[0].PCminority === "undefined") { + V.arcologies[0].PCminority = 0; + } + if (typeof V.arcologies[0].demandFactor === "undefined") { + V.arcologies[0].demandFactor = 250; + } + if (typeof V.arcologies[0].leaderID === "undefined") { + V.arcologies[0].leaderID = 0; + } + if (typeof V.building === "undefined") { + if (typeof V.sectors !== "undefined") { + App.Update.sectorsToBuilding(); + } else { + V.building = App.Arcology.defaultBuilding(); + } } } // Arcologies FS - if ((typeof V.FSSupremacist !== "undefined") && V.FSSupremacist !== "unset") { - V.arcologies[0].FSSupremacist = V.FSSupremacist; - V.arcologies[0].FSSupremacistRace = V.FSSupremacistRace; - } else if (typeof V.arcologies[0].FSSupremacist === "undefined") { - V.arcologies[0].FSSupremacist = "unset"; - } - if ((typeof V.FSSupremacistLawME !== "undefined") && V.FSSupremacistLawME !== 0) { - V.arcologies[0].FSSupremacistLawME = V.FSSupremacistLawME; - } else if (typeof V.arcologies[0].FSSupremacistLawME === "undefined") { - V.arcologies[0].FSSupremacistLawME = 0; - } - if (V.arcologies[0].FSSupremacistRace === "middle") { - V.arcologies[0].FSSupremacistRace = "middle eastern"; - } else if (V.arcologies[0].FSSupremacistRace === "pacific") { - V.arcologies[0].FSSupremacistRace = "pacific islander"; - } else if (V.arcologies[0].FSSupremacistRace === "southern") { - V.arcologies[0].FSSupremacistRace = "southern european"; - } else if (V.arcologies[0].FSSupremacistRace === "mixed") { - V.arcologies[0].FSSupremacistRace = "mixed race"; - } - if ((typeof V.FSSubjugationist !== "undefined") && V.FSSubjugationist !== "unset") { - V.arcologies[0].FSSubjugationist = V.FSSubjugationist; - V.arcologies[0].FSSubjugationistRace = V.FSSubjugationistRace; - } else if (typeof V.arcologies[0].FSSubjugationist === "undefined") { - V.arcologies[0].FSSubjugationist = "unset"; - } - if ((typeof V.FSSubjugationistLawME !== "undefined") && V.FSSubjugationistLawME !== 0) { - V.arcologies[0].FSSubjugationistLawME = V.FSSubjugationistLawME; - } else if (typeof V.arcologies[0].FSSubjugationistLawME === "undefined") { - V.arcologies[0].FSSubjugationistLawME = 0; - } - if (V.arcologies[0].FSSubjugationistRace === "middle") { - V.arcologies[0].FSSubjugationistRace = "middle eastern"; - } else if (V.arcologies[0].FSSubjugationistRace === "pacific") { - V.arcologies[0].FSSubjugationistRace = "pacific islander"; - } else if (V.arcologies[0].FSSubjugationistRace === "southern") { - V.arcologies[0].FSSubjugationistRace = "southern european"; - } else if (V.arcologies[0].FSSubjugationistRace === "mixed") { - V.arcologies[0].FSSubjugationistRace = "mixed race"; - } - if ((typeof V.FSDegradationist !== "undefined") && V.FSDegradationist !== "unset") { - V.arcologies[0].FSDegradationist = V.FSDegradationist; - } else if (typeof V.arcologies[0].FSDegradationist === "undefined") { - V.arcologies[0].FSDegradationist = "unset"; - } - if ((typeof V.FSDegradationistLaw !== "undefined") && V.FSDegradationistLaw !== 0) { - V.arcologies[0].FSDegradationistLaw = V.FSDegradationistLaw; - } else if (typeof V.arcologies[0].FSDegradationistLaw === "undefined") { - V.arcologies[0].FSDegradationistLaw = 0; - } - if ((typeof V.FSPaternalist !== "undefined") && V.FSPaternalist !== "unset") { - V.arcologies[0].FSPaternalist = V.FSPaternalist; - } else if (typeof V.arcologies[0].FSPaternalist === "undefined") { - V.arcologies[0].FSPaternalist = "unset"; - } - if ((typeof V.FSPaternalistLaw !== "undefined") && V.FSPaternalistLaw !== 0) { - V.arcologies[0].FSPaternalistLaw = V.FSPaternalistLaw; - } else if (typeof V.arcologies[0].FSPaternalistLaw === "undefined") { - V.arcologies[0].FSPaternalistLaw = 0; - } - if ((typeof V.FSGenderFundamentalist !== "undefined") && V.FSGenderFundamentalist !== "unset") { - V.arcologies[0].FSGenderFundamentalist = V.FSGenderFundamentalist; - } else if (typeof V.arcologies[0].FSGenderFundamentalist === "undefined") { - V.arcologies[0].FSGenderFundamentalist = "unset"; - } - if ((typeof V.FSGenderFundamentalistSMR !== "undefined") && V.FSGenderFundamentalistSMR !== 0) { - V.arcologies[0].FSGenderFundamentalistSMR = V.FSGenderFundamentalistSMR; - } else if (typeof V.arcologies[0].FSGenderFundamentalistSMR === "undefined") { - V.arcologies[0].FSGenderFundamentalistSMR = 0; - } - delete V.arcologies[0].FSGenderFundamentalistLaw; - if ((typeof V.FSGenderRadicalist !== "undefined") && V.FSGenderRadicalist !== "unset") { - V.arcologies[0].FSGenderRadicalist = V.FSGenderRadicalist; - } else if (typeof V.arcologies[0].FSGenderRadicalist === "undefined") { - V.arcologies[0].FSGenderRadicalist = "unset"; - } - if (typeof V.arcologies[0].FSGenderRadicalistLawBeauty === "undefined") { - V.arcologies[0].FSGenderRadicalistLawBeauty = 0; - } - if (typeof V.arcologies[0].FSGenderRadicalistLawFuta === "undefined") { - V.arcologies[0].FSGenderRadicalistLawFuta = 0; - } - delete V.arcologies[0].FSGenderRadicalistLawDicks; - delete V.arcologies[0].FSGenderRadicalistSMR; - if ((typeof V.FSBodyPurist !== "undefined") && V.FSBodyPurist !== "unset") { - V.arcologies[0].FSBodyPurist = V.FSBodyPurist; - } else if (typeof V.arcologies[0].FSBodyPurist === "undefined") { - V.arcologies[0].FSBodyPurist = "unset"; - } - if ((typeof V.FSBodyPuristLaw !== "undefined") && V.FSBodyPuristLaw !== 0) { - V.arcologies[0].FSBodyPuristLaw = V.FSBodyPuristLaw; - } else if (typeof V.arcologies[0].FSBodyPuristLaw === "undefined") { - V.arcologies[0].FSBodyPuristLaw = 0; - } - if ((typeof V.FSPhysicalIdealist !== "undefined") && V.FSPhysicalIdealist !== "unset") { - V.arcologies[0].FSPhysicalIdealist = V.FSPhysicalIdealist; - } else if (typeof V.arcologies[0].FSPhysicalIdealist === "undefined") { - V.arcologies[0].FSPhysicalIdealist = "unset"; - } - if ((typeof V.FSPhysicalIdealistSMR !== "undefined") && V.FSPhysicalIdealistSMR !== 0) { - V.arcologies[0].FSPhysicalIdealistSMR = V.FSPhysicalIdealistSMR; - } else if (typeof V.arcologies[0].FSPhysicalIdealistSMR === "undefined") { - V.arcologies[0].FSPhysicalIdealistSMR = 0; - } - if ((typeof V.FSTransformationFetishist !== "undefined") && V.FSTransformationFetishist !== "unset") { - V.arcologies[0].FSTransformationFetishist = V.FSTransformationFetishist; - } else if (typeof V.arcologies[0].FSTransformationFetishist === "undefined") { - V.arcologies[0].FSTransformationFetishist = "unset"; - } - if ((typeof V.FSTransformationFetishistSMR !== "undefined") && V.FSTransformationFetishistSMR !== 0) { - V.arcologies[0].FSTransformationFetishistSMR = V.FSTransformationFetishistSMR; - } else if (typeof V.arcologies[0].FSTransformationFetishistSMR === "undefined") { - V.arcologies[0].FSTransformationFetishistSMR = 0; - } - delete V.arcologies[0].FSTransformationFetishistLaw; - if ((typeof V.FSAssetExpansionist !== "undefined") && V.FSAssetExpansionist !== "unset") { - V.arcologies[0].FSAssetExpansionist = V.FSAssetExpansionist; - } else if (typeof V.arcologies[0].FSAssetExpansionist === "undefined") { - V.arcologies[0].FSAssetExpansionist = "unset"; - } - if ((typeof V.FSAssetExpansionistSMR !== "undefined") && V.FSAssetExpansionistSMR !== 0) { - V.arcologies[0].FSAssetExpansionistSMR = V.FSAssetExpansionistSMR; - } else if (typeof V.arcologies[0].FSAssetExpansionistSMR === "undefined") { - V.arcologies[0].FSAssetExpansionistSMR = 0; - } - delete V.arcologies[0].FSAssetExpansionistLaw; - if ((typeof V.FSSlimnessEnthusiast !== "undefined") && V.FSSlimnessEnthusiast !== "unset") { - V.arcologies[0].FSSlimnessEnthusiast = V.FSSlimnessEnthusiast; - } else if (typeof V.arcologies[0].FSSlimnessEnthusiast === "undefined") { - V.arcologies[0].FSSlimnessEnthusiast = "unset"; - } - if ((typeof V.FSSlimnessEnthusiastSMR !== "undefined") && V.FSSlimnessEnthusiastSMR !== 0) { - V.arcologies[0].FSSlimnessEnthusiastSMR = V.FSSlimnessEnthusiastSMR; - } else if (typeof V.arcologies[0].FSSlimnessEnthusiastSMR === "undefined") { - V.arcologies[0].FSSlimnessEnthusiastSMR = 0; - } - if ((typeof V.FSMaturityPreferentialist !== "undefined") && V.FSMaturityPreferentialist !== "unset") { - V.arcologies[0].FSMaturityPreferentialist = V.FSMaturityPreferentialist; - } else if (typeof V.arcologies[0].FSMaturityPreferentialist === "undefined") { - V.arcologies[0].FSMaturityPreferentialist = "unset"; - } - if ((typeof V.FSMaturityPreferentialistLaw !== "undefined") && V.FSMaturityPreferentialistLaw !== 0) { - V.arcologies[0].FSMaturityPreferentialistLaw = V.FSMaturityPreferentialistLaw; - } else if (typeof V.arcologies[0].FSMaturityPreferentialistLaw === "undefined") { - V.arcologies[0].FSMaturityPreferentialistLaw = 0; - } - if ((typeof V.FSYouthPreferentialist !== "undefined") && V.FSYouthPreferentialist !== "unset") { - V.arcologies[0].FSYouthPreferentialist = V.FSYouthPreferentialist; - } else if (typeof V.arcologies[0].FSYouthPreferentialist === "undefined") { - V.arcologies[0].FSYouthPreferentialist = "unset"; - } - if ((typeof V.FSYouthPreferentialistLaw !== "undefined") && V.FSYouthPreferentialistLaw !== 0) { - V.arcologies[0].FSYouthPreferentialistLaw = V.FSYouthPreferentialistLaw; - } else if (typeof V.arcologies[0].FSYouthPreferentialistLaw === "undefined") { - V.arcologies[0].FSYouthPreferentialistLaw = 0; - } - if ((typeof V.FSPastoralist !== "undefined") && V.FSPastoralist !== "unset") { - V.arcologies[0].FSPastoralist = V.FSPastoralist; - } else if (typeof V.arcologies[0].FSPastoralist === "undefined") { - V.arcologies[0].FSPastoralist = "unset"; - } - if ((typeof V.FSPastoralistLaw !== "undefined") && V.FSPastoralistLaw !== 0) { - V.arcologies[0].FSPastoralistLaw = V.FSPastoralistLaw; - } else if (typeof V.arcologies[0].FSPastoralistLaw === "undefined") { - V.arcologies[0].FSPastoralistLaw = 0; - } - if ((typeof V.FSChattelReligionist !== "undefined") && V.FSChattelReligionist !== "unset") { - V.arcologies[0].FSChattelReligionist = V.FSChattelReligionist; - } else if (typeof V.arcologies[0].FSChattelReligionist === "undefined") { - V.arcologies[0].FSChattelReligionist = "unset"; - } - if ((typeof V.FSChattelReligionistLaw !== "undefined") && V.FSChattelReligionistLaw !== 0) { - V.arcologies[0].FSChattelReligionistLaw = V.FSChattelReligionistLaw; - } else if (typeof V.arcologies[0].FSChattelReligionistLaw === "undefined") { - V.arcologies[0].FSChattelReligionistLaw = 0; - } - if ((typeof V.FSRomanRevivalist !== "undefined") && V.FSRomanRevivalist !== "unset") { - V.arcologies[0].FSRomanRevivalist = V.FSRomanRevivalist; - } else if (typeof V.arcologies[0].FSRomanRevivalist === "undefined") { - V.arcologies[0].FSRomanRevivalist = "unset"; - } - if ((typeof V.FSRomanRevivalistLaw !== "undefined") && V.FSRomanRevivalistLaw !== 0) { - V.arcologies[0].FSRomanRevivalistLaw = V.FSRomanRevivalistLaw; - } else if (typeof V.arcologies[0].FSRomanRevivalistLaw === "undefined") { - V.arcologies[0].FSRomanRevivalistLaw = 0; - } - if ((typeof V.FSEgyptianRevivalist !== "undefined") && V.FSEgyptianRevivalist !== "unset") { - V.arcologies[0].FSEgyptianRevivalist = V.FSEgyptianRevivalist; - } else if (typeof V.arcologies[0].FSEgyptianRevivalist === "undefined") { - V.arcologies[0].FSEgyptianRevivalist = "unset"; - } - if ((typeof V.FSEgyptianRevivalistLaw !== "undefined") && V.FSEgyptianRevivalistLaw !== 0) { - V.arcologies[0].FSEgyptianRevivalistLaw = V.FSEgyptianRevivalistLaw; - } else if (typeof V.arcologies[0].FSEgyptianRevivalistLaw === "undefined") { - V.arcologies[0].FSEgyptianRevivalistLaw = 0; - } - if (typeof V.arcologies[0].FSEgyptianRevivalistIncestPolicy === "undefined") { - V.arcologies[0].FSEgyptianRevivalistIncestPolicy = 0; - } - if (typeof V.arcologies[0].FSEgyptianRevivalistInterest === "undefined") { - V.arcologies[0].FSEgyptianRevivalistInterest = 0; - } - if ((typeof V.FSEdoRevivalist !== "undefined") && V.FSEdoRevivalist !== "unset") { - V.arcologies[0].FSEdoRevivalist = V.FSEdoRevivalist; - } else if (typeof V.arcologies[0].FSEdoRevivalist === "undefined") { - V.arcologies[0].FSEdoRevivalist = "unset"; - } - if ((typeof V.FSEdoRevivalistLaw !== "undefined") && V.FSEdoRevivalistLaw !== 0) { - V.arcologies[0].FSEdoRevivalistLaw = V.FSEdoRevivalistLaw; - } else if (typeof V.arcologies[0].FSEdoRevivalistLaw === "undefined") { - V.arcologies[0].FSEdoRevivalistLaw = 0; - } - if ((typeof V.FSArabianRevivalist !== "undefined") && V.FSArabianRevivalist !== "unset") { - V.arcologies[0].FSArabianRevivalist = V.FSArabianRevivalist; - } else if (typeof V.arcologies[0].FSArabianRevivalist === "undefined") { - V.arcologies[0].FSArabianRevivalist = "unset"; - } - if ((typeof V.FSArabianRevivalistLaw !== "undefined") && V.FSArabianRevivalistLaw !== 0) { - V.arcologies[0].FSArabianRevivalistLaw = V.FSArabianRevivalistLaw; - } else if (typeof V.arcologies[0].FSArabianRevivalistLaw === "undefined") { - V.arcologies[0].FSArabianRevivalistLaw = 0; - } - if ((typeof V.FSChineseRevivalist !== "undefined") && V.FSChineseRevivalist !== "unset") { - V.arcologies[0].FSChineseRevivalist = V.FSChineseRevivalist; - } else if (typeof V.arcologies[0].FSChineseRevivalist === "undefined") { - V.arcologies[0].FSChineseRevivalist = "unset"; - } - if ((typeof V.FSChineseRevivalistLaw !== "undefined") && V.FSChineseRevivalistLaw !== 0) { - V.arcologies[0].FSChineseRevivalistLaw = V.FSChineseRevivalistLaw; - } else if (typeof V.arcologies[0].FSChineseRevivalistLaw === "undefined") { - V.arcologies[0].FSChineseRevivalistLaw = 0; - } - delete V.arcologies[0].FSNullLaw; - - V.JobIDArray = resetJobIDArray(); - - if (V.arcologies[0].FSSubjugationist !== "unset" && !Number.isFinite(V.arcologies[0].FSSubjugationist)) { - V.arcologies[0].FSSubjugationist = 10; - r += `<br>Fixed NaN FS value for FSSubjugationist`; - } - if (V.arcologies[0].FSGenderRadicalist !== "unset" && !Number.isFinite(V.arcologies[0].FSGenderRadicalist)) { - V.arcologies[0].FSGenderRadicalist = 10; - r += `<br>Fixed NaN FS value for FSGenderRadicalist`; - } - if (V.arcologies[0].FSRestart !== "unset" && !Number.isFinite(V.arcologies[0].FSRestart)) { - V.arcologies[0].FSRestart = 10; - r += `<br>Fixed NaN FS value for FSRestart`; - } - if (V.arcologies[0].FSRepopulationFocus !== "unset" && !Number.isFinite(V.arcologies[0].FSRepopulationFocus)) { - V.arcologies[0].FSRepopulationFocus = 10; - r += `<br>Fixed NaN FS value for FSRepopulationFocus`; - } - if (V.arcologies[0].FSSupremacist !== "unset" && !Number.isFinite(V.arcologies[0].FSSupremacist)) { - V.arcologies[0].FSSupremacist = 10; - r += `<br>Fixed NaN FS value for FSSupremacist`; - } - if (V.arcologies[0].FSBodyPurist !== "unset" && !Number.isFinite(V.arcologies[0].FSBodyPurist)) { - V.arcologies[0].FSBodyPurist = 10; - r += `<br>Fixed NaN FS value for FSBodyPurist`; - } - if (V.arcologies[0].FSPaternalist !== "unset" && !Number.isFinite(V.arcologies[0].FSPaternalist)) { - V.arcologies[0].FSPaternalist = 10; - r += `<br>Fixed NaN FS value for FSPaternalist`; - } - if (V.arcologies[0].FSSlimnessEnthusiast !== "unset" && !Number.isFinite(V.arcologies[0].FSSlimnessEnthusiast)) { - V.arcologies[0].FSSlimnessEnthusiast = 10; - r += `<br>Fixed NaN FS value for FSSlimnessEnthusiast`; - } - if (V.arcologies[0].FSGenderFundamentalist !== "unset" && !Number.isFinite(V.arcologies[0].FSGenderFundamentalist)) { - V.arcologies[0].FSGenderFundamentalist = 10; - r += `<br>Fixed NaN FS value for FSGenderFundamentalist`; - } - if (V.arcologies[0].FSMaturityPreferentialist !== "unset" && !Number.isFinite(V.arcologies[0].FSMaturityPreferentialist)) { - V.arcologies[0].FSMaturityPreferentialist = 10; - r += `<br>Fixed NaN FS value for FSMaturityPreferentialist`; - } - if (V.arcologies[0].FSYouthPreferentialist !== "unset" && !Number.isFinite(V.arcologies[0].FSYouthPreferentialist)) { - V.arcologies[0].FSYouthPreferentialist = 10; - r += `<br>Fixed NaN FS value for FSYouthPreferentialist`; - } - if (V.arcologies[0].FSTransformationFetishist !== "unset" && !Number.isFinite(V.arcologies[0].FSTransformationFetishist)) { - V.arcologies[0].FSTransformationFetishist = 10; - r += `<br>Fixed NaN FS value for FSTransformationFetishist`; - } - if (V.arcologies[0].FSHedonisticDecadence !== "unset" && !Number.isFinite(V.arcologies[0].FSHedonisticDecadence)) { - V.arcologies[0].FSHedonisticDecadence = 10; - r += `<br>Fixed NaN FS value for FSHedonisticDecadence`; - } - if (V.arcologies[0].FSPhysicalIdealist !== "unset" && !Number.isFinite(V.arcologies[0].FSPhysicalIdealist)) { - V.arcologies[0].FSPhysicalIdealist = 10; - r += `<br>Fixed NaN FS value for FSPhysicalIdealist`; - } - if (V.arcologies[0].FSPastoralist !== "unset" && !Number.isFinite(V.arcologies[0].FSPastoralist)) { - V.arcologies[0].FSPastoralist = 10; - r += `<br>Fixed NaN FS value for FSPastoralist`; - } - if (V.arcologies[0].FSAssetExpansionist !== "unset" && !Number.isFinite(V.arcologies[0].FSAssetExpansionist)) { - V.arcologies[0].FSAssetExpansionist = 10; - r += `<br>Fixed NaN FS value for FSAssetExpansionist`; - } - if (V.arcologies[0].FSDegradationist !== "unset" && !Number.isFinite(V.arcologies[0].FSDegradationist)) { - V.arcologies[0].FSDegradationist = 10; - r += `<br>Fixed NaN FS value for FSDegradationist`; - } - if (V.arcologies[0].FSRomanRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSRomanRevivalist)) { - V.arcologies[0].FSRomanRevivalist = 10; - r += `<br>Fixed NaN FS value for FSRomanRevivalist`; - } - if (V.arcologies[0].FSChattelReligionist !== "unset" && !Number.isFinite(V.arcologies[0].FSChattelReligionist)) { - V.arcologies[0].FSChattelReligionist = 10; - r += `<br>Fixed NaN FS value for FSChattelReligionist`; - } - if (V.arcologies[0].FSChineseRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSChineseRevivalist)) { - V.arcologies[0].FSChineseRevivalist = 10; - r += `<br>Fixed NaN FS value for FSChineseRevivalist`; - } - if (V.arcologies[0].FSArabianRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSArabianRevivalist)) { - V.arcologies[0].FSArabianRevivalist = 10; - r += `<br>Fixed NaN FS value for FSArabianRevivalist`; - } - if (V.arcologies[0].FSEdoRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSEdoRevivalist)) { - V.arcologies[0].FSEdoRevivalist = 10; - r += `<br>Fixed NaN FS value for FSEdoRevivalist`; - } - if (V.arcologies[0].FSEgyptianRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSEgyptianRevivalist)) { - V.arcologies[0].FSEgyptianRevivalist = 10; - r += `<br>Fixed NaN FS value for FSEgyptianRevivalist`; - } - if (V.arcologies[0].FSAztecRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSAztecRevivalist)) { - V.arcologies[0].FSAztecRevivalist = 10; - r += `<br>Fixed NaN FS value for FSAztecRevivalist`; - } - if (V.arcologies[0].FSIntellectualDependency !== "unset" && !Number.isFinite(V.arcologies[0].FSIntellectualDependency)) { - V.arcologies[0].FSIntellectualDependency = 10; - r += `<br>Fixed NaN FS value for FSIntellectualDependency`; - } - if (V.arcologies[0].FSSlaveProfessionalism !== "unset" && !Number.isFinite(V.arcologies[0].FSSlaveProfessionalism)) { - V.arcologies[0].FSSlaveProfessionalism = 10; - r += `<br>Fixed NaN FS value for FSSlaveProfessionalism`; - } - if (V.arcologies[0].FSPetiteAdmiration !== "unset" && !Number.isFinite(V.arcologies[0].FSPetiteAdmiration)) { - V.arcologies[0].FSPetiteAdmiration = 10; - r += `<br>Fixed NaN FS value for FSPetiteAdmiration`; - } - if (V.arcologies[0].FSStatuesqueGlorification !== "unset" && !Number.isFinite(V.arcologies[0].FSStatuesqueGlorification)) { - V.arcologies[0].FSStatuesqueGlorification = 10; - r += `<br>Fixed NaN FS value for FSStatuesqueGlorification`; - } - App.Corporate.Backcompat(); - - - // Organs - let _newOrgans = []; - V.organs.forEach(o => { - if (o.type === "eyes") { - _newOrgans.push({type: "leftEye", weeksToCompletion: o.weeksToCompletion, ID: o.ID}); - _newOrgans.push({type: "rightEye", weeksToCompletion: o.weeksToCompletion, ID: o.ID}); - } else { - _newOrgans.push(o); + { + if ((typeof V.FSSupremacist !== "undefined") && V.FSSupremacist !== "unset") { + V.arcologies[0].FSSupremacist = V.FSSupremacist; + V.arcologies[0].FSSupremacistRace = V.FSSupremacistRace; + } else if (typeof V.arcologies[0].FSSupremacist === "undefined") { + V.arcologies[0].FSSupremacist = "unset"; } - }); - V.organs = _newOrgans; - - _newOrgans = []; - V.completedOrgans.forEach(o => { - if (o.type === "eyes") { - _newOrgans.push({type: "leftEye", ID: o.ID}); - _newOrgans.push({type: "rightEye", ID: o.ID}); - } else { - _newOrgans.push(o); + if ((typeof V.FSSupremacistLawME !== "undefined") && V.FSSupremacistLawME !== 0) { + V.arcologies[0].FSSupremacistLawME = V.FSSupremacistLawME; + } else if (typeof V.arcologies[0].FSSupremacistLawME === "undefined") { + V.arcologies[0].FSSupremacistLawME = 0; } - }); - V.completedOrgans = _newOrgans; + if (V.arcologies[0].FSSupremacistRace === "middle") { + V.arcologies[0].FSSupremacistRace = "middle eastern"; + } else if (V.arcologies[0].FSSupremacistRace === "pacific") { + V.arcologies[0].FSSupremacistRace = "pacific islander"; + } else if (V.arcologies[0].FSSupremacistRace === "southern") { + V.arcologies[0].FSSupremacistRace = "southern european"; + } else if (V.arcologies[0].FSSupremacistRace === "mixed") { + V.arcologies[0].FSSupremacistRace = "mixed race"; + } + if ((typeof V.FSSubjugationist !== "undefined") && V.FSSubjugationist !== "unset") { + V.arcologies[0].FSSubjugationist = V.FSSubjugationist; + V.arcologies[0].FSSubjugationistRace = V.FSSubjugationistRace; + } else if (typeof V.arcologies[0].FSSubjugationist === "undefined") { + V.arcologies[0].FSSubjugationist = "unset"; + } + if ((typeof V.FSSubjugationistLawME !== "undefined") && V.FSSubjugationistLawME !== 0) { + V.arcologies[0].FSSubjugationistLawME = V.FSSubjugationistLawME; + } else if (typeof V.arcologies[0].FSSubjugationistLawME === "undefined") { + V.arcologies[0].FSSubjugationistLawME = 0; + } + if (V.arcologies[0].FSSubjugationistRace === "middle") { + V.arcologies[0].FSSubjugationistRace = "middle eastern"; + } else if (V.arcologies[0].FSSubjugationistRace === "pacific") { + V.arcologies[0].FSSubjugationistRace = "pacific islander"; + } else if (V.arcologies[0].FSSubjugationistRace === "southern") { + V.arcologies[0].FSSubjugationistRace = "southern european"; + } else if (V.arcologies[0].FSSubjugationistRace === "mixed") { + V.arcologies[0].FSSubjugationistRace = "mixed race"; + } + if ((typeof V.FSDegradationist !== "undefined") && V.FSDegradationist !== "unset") { + V.arcologies[0].FSDegradationist = V.FSDegradationist; + } else if (typeof V.arcologies[0].FSDegradationist === "undefined") { + V.arcologies[0].FSDegradationist = "unset"; + } + if ((typeof V.FSDegradationistLaw !== "undefined") && V.FSDegradationistLaw !== 0) { + V.arcologies[0].FSDegradationistLaw = V.FSDegradationistLaw; + } else if (typeof V.arcologies[0].FSDegradationistLaw === "undefined") { + V.arcologies[0].FSDegradationistLaw = 0; + } + if ((typeof V.FSPaternalist !== "undefined") && V.FSPaternalist !== "unset") { + V.arcologies[0].FSPaternalist = V.FSPaternalist; + } else if (typeof V.arcologies[0].FSPaternalist === "undefined") { + V.arcologies[0].FSPaternalist = "unset"; + } + if ((typeof V.FSPaternalistLaw !== "undefined") && V.FSPaternalistLaw !== 0) { + V.arcologies[0].FSPaternalistLaw = V.FSPaternalistLaw; + } else if (typeof V.arcologies[0].FSPaternalistLaw === "undefined") { + V.arcologies[0].FSPaternalistLaw = 0; + } + if ((typeof V.FSGenderFundamentalist !== "undefined") && V.FSGenderFundamentalist !== "unset") { + V.arcologies[0].FSGenderFundamentalist = V.FSGenderFundamentalist; + } else if (typeof V.arcologies[0].FSGenderFundamentalist === "undefined") { + V.arcologies[0].FSGenderFundamentalist = "unset"; + } + if ((typeof V.FSGenderFundamentalistSMR !== "undefined") && V.FSGenderFundamentalistSMR !== 0) { + V.arcologies[0].FSGenderFundamentalistSMR = V.FSGenderFundamentalistSMR; + } else if (typeof V.arcologies[0].FSGenderFundamentalistSMR === "undefined") { + V.arcologies[0].FSGenderFundamentalistSMR = 0; + } + delete V.arcologies[0].FSGenderFundamentalistLaw; + if ((typeof V.FSGenderRadicalist !== "undefined") && V.FSGenderRadicalist !== "unset") { + V.arcologies[0].FSGenderRadicalist = V.FSGenderRadicalist; + } else if (typeof V.arcologies[0].FSGenderRadicalist === "undefined") { + V.arcologies[0].FSGenderRadicalist = "unset"; + } + if (typeof V.arcologies[0].FSGenderRadicalistLawBeauty === "undefined") { + V.arcologies[0].FSGenderRadicalistLawBeauty = 0; + } + if (typeof V.arcologies[0].FSGenderRadicalistLawFuta === "undefined") { + V.arcologies[0].FSGenderRadicalistLawFuta = 0; + } + delete V.arcologies[0].FSGenderRadicalistLawDicks; + delete V.arcologies[0].FSGenderRadicalistSMR; + if ((typeof V.FSBodyPurist !== "undefined") && V.FSBodyPurist !== "unset") { + V.arcologies[0].FSBodyPurist = V.FSBodyPurist; + } else if (typeof V.arcologies[0].FSBodyPurist === "undefined") { + V.arcologies[0].FSBodyPurist = "unset"; + } + if ((typeof V.FSBodyPuristLaw !== "undefined") && V.FSBodyPuristLaw !== 0) { + V.arcologies[0].FSBodyPuristLaw = V.FSBodyPuristLaw; + } else if (typeof V.arcologies[0].FSBodyPuristLaw === "undefined") { + V.arcologies[0].FSBodyPuristLaw = 0; + } + if ((typeof V.FSPhysicalIdealist !== "undefined") && V.FSPhysicalIdealist !== "unset") { + V.arcologies[0].FSPhysicalIdealist = V.FSPhysicalIdealist; + } else if (typeof V.arcologies[0].FSPhysicalIdealist === "undefined") { + V.arcologies[0].FSPhysicalIdealist = "unset"; + } + if ((typeof V.FSPhysicalIdealistSMR !== "undefined") && V.FSPhysicalIdealistSMR !== 0) { + V.arcologies[0].FSPhysicalIdealistSMR = V.FSPhysicalIdealistSMR; + } else if (typeof V.arcologies[0].FSPhysicalIdealistSMR === "undefined") { + V.arcologies[0].FSPhysicalIdealistSMR = 0; + } + if ((typeof V.FSTransformationFetishist !== "undefined") && V.FSTransformationFetishist !== "unset") { + V.arcologies[0].FSTransformationFetishist = V.FSTransformationFetishist; + } else if (typeof V.arcologies[0].FSTransformationFetishist === "undefined") { + V.arcologies[0].FSTransformationFetishist = "unset"; + } + if ((typeof V.FSTransformationFetishistSMR !== "undefined") && V.FSTransformationFetishistSMR !== 0) { + V.arcologies[0].FSTransformationFetishistSMR = V.FSTransformationFetishistSMR; + } else if (typeof V.arcologies[0].FSTransformationFetishistSMR === "undefined") { + V.arcologies[0].FSTransformationFetishistSMR = 0; + } + delete V.arcologies[0].FSTransformationFetishistLaw; + if ((typeof V.FSAssetExpansionist !== "undefined") && V.FSAssetExpansionist !== "unset") { + V.arcologies[0].FSAssetExpansionist = V.FSAssetExpansionist; + } else if (typeof V.arcologies[0].FSAssetExpansionist === "undefined") { + V.arcologies[0].FSAssetExpansionist = "unset"; + } + if ((typeof V.FSAssetExpansionistSMR !== "undefined") && V.FSAssetExpansionistSMR !== 0) { + V.arcologies[0].FSAssetExpansionistSMR = V.FSAssetExpansionistSMR; + } else if (typeof V.arcologies[0].FSAssetExpansionistSMR === "undefined") { + V.arcologies[0].FSAssetExpansionistSMR = 0; + } + delete V.arcologies[0].FSAssetExpansionistLaw; + if ((typeof V.FSSlimnessEnthusiast !== "undefined") && V.FSSlimnessEnthusiast !== "unset") { + V.arcologies[0].FSSlimnessEnthusiast = V.FSSlimnessEnthusiast; + } else if (typeof V.arcologies[0].FSSlimnessEnthusiast === "undefined") { + V.arcologies[0].FSSlimnessEnthusiast = "unset"; + } + if ((typeof V.FSSlimnessEnthusiastSMR !== "undefined") && V.FSSlimnessEnthusiastSMR !== 0) { + V.arcologies[0].FSSlimnessEnthusiastSMR = V.FSSlimnessEnthusiastSMR; + } else if (typeof V.arcologies[0].FSSlimnessEnthusiastSMR === "undefined") { + V.arcologies[0].FSSlimnessEnthusiastSMR = 0; + } + if ((typeof V.FSMaturityPreferentialist !== "undefined") && V.FSMaturityPreferentialist !== "unset") { + V.arcologies[0].FSMaturityPreferentialist = V.FSMaturityPreferentialist; + } else if (typeof V.arcologies[0].FSMaturityPreferentialist === "undefined") { + V.arcologies[0].FSMaturityPreferentialist = "unset"; + } + if ((typeof V.FSMaturityPreferentialistLaw !== "undefined") && V.FSMaturityPreferentialistLaw !== 0) { + V.arcologies[0].FSMaturityPreferentialistLaw = V.FSMaturityPreferentialistLaw; + } else if (typeof V.arcologies[0].FSMaturityPreferentialistLaw === "undefined") { + V.arcologies[0].FSMaturityPreferentialistLaw = 0; + } + if ((typeof V.FSYouthPreferentialist !== "undefined") && V.FSYouthPreferentialist !== "unset") { + V.arcologies[0].FSYouthPreferentialist = V.FSYouthPreferentialist; + } else if (typeof V.arcologies[0].FSYouthPreferentialist === "undefined") { + V.arcologies[0].FSYouthPreferentialist = "unset"; + } + if ((typeof V.FSYouthPreferentialistLaw !== "undefined") && V.FSYouthPreferentialistLaw !== 0) { + V.arcologies[0].FSYouthPreferentialistLaw = V.FSYouthPreferentialistLaw; + } else if (typeof V.arcologies[0].FSYouthPreferentialistLaw === "undefined") { + V.arcologies[0].FSYouthPreferentialistLaw = 0; + } + if ((typeof V.FSPastoralist !== "undefined") && V.FSPastoralist !== "unset") { + V.arcologies[0].FSPastoralist = V.FSPastoralist; + } else if (typeof V.arcologies[0].FSPastoralist === "undefined") { + V.arcologies[0].FSPastoralist = "unset"; + } + if ((typeof V.FSPastoralistLaw !== "undefined") && V.FSPastoralistLaw !== 0) { + V.arcologies[0].FSPastoralistLaw = V.FSPastoralistLaw; + } else if (typeof V.arcologies[0].FSPastoralistLaw === "undefined") { + V.arcologies[0].FSPastoralistLaw = 0; + } + if ((typeof V.FSChattelReligionist !== "undefined") && V.FSChattelReligionist !== "unset") { + V.arcologies[0].FSChattelReligionist = V.FSChattelReligionist; + } else if (typeof V.arcologies[0].FSChattelReligionist === "undefined") { + V.arcologies[0].FSChattelReligionist = "unset"; + } + if ((typeof V.FSChattelReligionistLaw !== "undefined") && V.FSChattelReligionistLaw !== 0) { + V.arcologies[0].FSChattelReligionistLaw = V.FSChattelReligionistLaw; + } else if (typeof V.arcologies[0].FSChattelReligionistLaw === "undefined") { + V.arcologies[0].FSChattelReligionistLaw = 0; + } + if ((typeof V.FSRomanRevivalist !== "undefined") && V.FSRomanRevivalist !== "unset") { + V.arcologies[0].FSRomanRevivalist = V.FSRomanRevivalist; + } else if (typeof V.arcologies[0].FSRomanRevivalist === "undefined") { + V.arcologies[0].FSRomanRevivalist = "unset"; + } + if ((typeof V.FSRomanRevivalistLaw !== "undefined") && V.FSRomanRevivalistLaw !== 0) { + V.arcologies[0].FSRomanRevivalistLaw = V.FSRomanRevivalistLaw; + } else if (typeof V.arcologies[0].FSRomanRevivalistLaw === "undefined") { + V.arcologies[0].FSRomanRevivalistLaw = 0; + } + if ((typeof V.FSEgyptianRevivalist !== "undefined") && V.FSEgyptianRevivalist !== "unset") { + V.arcologies[0].FSEgyptianRevivalist = V.FSEgyptianRevivalist; + } else if (typeof V.arcologies[0].FSEgyptianRevivalist === "undefined") { + V.arcologies[0].FSEgyptianRevivalist = "unset"; + } + if ((typeof V.FSEgyptianRevivalistLaw !== "undefined") && V.FSEgyptianRevivalistLaw !== 0) { + V.arcologies[0].FSEgyptianRevivalistLaw = V.FSEgyptianRevivalistLaw; + } else if (typeof V.arcologies[0].FSEgyptianRevivalistLaw === "undefined") { + V.arcologies[0].FSEgyptianRevivalistLaw = 0; + } + if (typeof V.arcologies[0].FSEgyptianRevivalistIncestPolicy === "undefined") { + V.arcologies[0].FSEgyptianRevivalistIncestPolicy = 0; + } + if (typeof V.arcologies[0].FSEgyptianRevivalistInterest === "undefined") { + V.arcologies[0].FSEgyptianRevivalistInterest = 0; + } + if ((typeof V.FSEdoRevivalist !== "undefined") && V.FSEdoRevivalist !== "unset") { + V.arcologies[0].FSEdoRevivalist = V.FSEdoRevivalist; + } else if (typeof V.arcologies[0].FSEdoRevivalist === "undefined") { + V.arcologies[0].FSEdoRevivalist = "unset"; + } + if ((typeof V.FSEdoRevivalistLaw !== "undefined") && V.FSEdoRevivalistLaw !== 0) { + V.arcologies[0].FSEdoRevivalistLaw = V.FSEdoRevivalistLaw; + } else if (typeof V.arcologies[0].FSEdoRevivalistLaw === "undefined") { + V.arcologies[0].FSEdoRevivalistLaw = 0; + } + if ((typeof V.FSArabianRevivalist !== "undefined") && V.FSArabianRevivalist !== "unset") { + V.arcologies[0].FSArabianRevivalist = V.FSArabianRevivalist; + } else if (typeof V.arcologies[0].FSArabianRevivalist === "undefined") { + V.arcologies[0].FSArabianRevivalist = "unset"; + } + if ((typeof V.FSArabianRevivalistLaw !== "undefined") && V.FSArabianRevivalistLaw !== 0) { + V.arcologies[0].FSArabianRevivalistLaw = V.FSArabianRevivalistLaw; + } else if (typeof V.arcologies[0].FSArabianRevivalistLaw === "undefined") { + V.arcologies[0].FSArabianRevivalistLaw = 0; + } + if ((typeof V.FSChineseRevivalist !== "undefined") && V.FSChineseRevivalist !== "unset") { + V.arcologies[0].FSChineseRevivalist = V.FSChineseRevivalist; + } else if (typeof V.arcologies[0].FSChineseRevivalist === "undefined") { + V.arcologies[0].FSChineseRevivalist = "unset"; + } + if ((typeof V.FSChineseRevivalistLaw !== "undefined") && V.FSChineseRevivalistLaw !== 0) { + V.arcologies[0].FSChineseRevivalistLaw = V.FSChineseRevivalistLaw; + } else if (typeof V.arcologies[0].FSChineseRevivalistLaw === "undefined") { + V.arcologies[0].FSChineseRevivalistLaw = 0; + } + delete V.arcologies[0].FSNullLaw; - // Clean up FS in player arcology - App.Update.FScheatDatatypeCleanup(); + if (V.arcologies[0].FSSubjugationist !== "unset" && !Number.isFinite(V.arcologies[0].FSSubjugationist)) { + V.arcologies[0].FSSubjugationist = 10; + r += `<br>Fixed NaN FS value for FSSubjugationist`; + } + if (V.arcologies[0].FSGenderRadicalist !== "unset" && !Number.isFinite(V.arcologies[0].FSGenderRadicalist)) { + V.arcologies[0].FSGenderRadicalist = 10; + r += `<br>Fixed NaN FS value for FSGenderRadicalist`; + } + if (V.arcologies[0].FSRestart !== "unset" && !Number.isFinite(V.arcologies[0].FSRestart)) { + V.arcologies[0].FSRestart = 10; + r += `<br>Fixed NaN FS value for FSRestart`; + } + if (V.arcologies[0].FSRepopulationFocus !== "unset" && !Number.isFinite(V.arcologies[0].FSRepopulationFocus)) { + V.arcologies[0].FSRepopulationFocus = 10; + r += `<br>Fixed NaN FS value for FSRepopulationFocus`; + } + if (V.arcologies[0].FSSupremacist !== "unset" && !Number.isFinite(V.arcologies[0].FSSupremacist)) { + V.arcologies[0].FSSupremacist = 10; + r += `<br>Fixed NaN FS value for FSSupremacist`; + } + if (V.arcologies[0].FSBodyPurist !== "unset" && !Number.isFinite(V.arcologies[0].FSBodyPurist)) { + V.arcologies[0].FSBodyPurist = 10; + r += `<br>Fixed NaN FS value for FSBodyPurist`; + } + if (V.arcologies[0].FSPaternalist !== "unset" && !Number.isFinite(V.arcologies[0].FSPaternalist)) { + V.arcologies[0].FSPaternalist = 10; + r += `<br>Fixed NaN FS value for FSPaternalist`; + } + if (V.arcologies[0].FSSlimnessEnthusiast !== "unset" && !Number.isFinite(V.arcologies[0].FSSlimnessEnthusiast)) { + V.arcologies[0].FSSlimnessEnthusiast = 10; + r += `<br>Fixed NaN FS value for FSSlimnessEnthusiast`; + } + if (V.arcologies[0].FSGenderFundamentalist !== "unset" && !Number.isFinite(V.arcologies[0].FSGenderFundamentalist)) { + V.arcologies[0].FSGenderFundamentalist = 10; + r += `<br>Fixed NaN FS value for FSGenderFundamentalist`; + } + if (V.arcologies[0].FSMaturityPreferentialist !== "unset" && !Number.isFinite(V.arcologies[0].FSMaturityPreferentialist)) { + V.arcologies[0].FSMaturityPreferentialist = 10; + r += `<br>Fixed NaN FS value for FSMaturityPreferentialist`; + } + if (V.arcologies[0].FSYouthPreferentialist !== "unset" && !Number.isFinite(V.arcologies[0].FSYouthPreferentialist)) { + V.arcologies[0].FSYouthPreferentialist = 10; + r += `<br>Fixed NaN FS value for FSYouthPreferentialist`; + } + if (V.arcologies[0].FSTransformationFetishist !== "unset" && !Number.isFinite(V.arcologies[0].FSTransformationFetishist)) { + V.arcologies[0].FSTransformationFetishist = 10; + r += `<br>Fixed NaN FS value for FSTransformationFetishist`; + } + if (V.arcologies[0].FSHedonisticDecadence !== "unset" && !Number.isFinite(V.arcologies[0].FSHedonisticDecadence)) { + V.arcologies[0].FSHedonisticDecadence = 10; + r += `<br>Fixed NaN FS value for FSHedonisticDecadence`; + } + if (V.arcologies[0].FSPhysicalIdealist !== "unset" && !Number.isFinite(V.arcologies[0].FSPhysicalIdealist)) { + V.arcologies[0].FSPhysicalIdealist = 10; + r += `<br>Fixed NaN FS value for FSPhysicalIdealist`; + } + if (V.arcologies[0].FSPastoralist !== "unset" && !Number.isFinite(V.arcologies[0].FSPastoralist)) { + V.arcologies[0].FSPastoralist = 10; + r += `<br>Fixed NaN FS value for FSPastoralist`; + } + if (V.arcologies[0].FSAssetExpansionist !== "unset" && !Number.isFinite(V.arcologies[0].FSAssetExpansionist)) { + V.arcologies[0].FSAssetExpansionist = 10; + r += `<br>Fixed NaN FS value for FSAssetExpansionist`; + } + if (V.arcologies[0].FSDegradationist !== "unset" && !Number.isFinite(V.arcologies[0].FSDegradationist)) { + V.arcologies[0].FSDegradationist = 10; + r += `<br>Fixed NaN FS value for FSDegradationist`; + } + if (V.arcologies[0].FSRomanRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSRomanRevivalist)) { + V.arcologies[0].FSRomanRevivalist = 10; + r += `<br>Fixed NaN FS value for FSRomanRevivalist`; + } + if (V.arcologies[0].FSChattelReligionist !== "unset" && !Number.isFinite(V.arcologies[0].FSChattelReligionist)) { + V.arcologies[0].FSChattelReligionist = 10; + r += `<br>Fixed NaN FS value for FSChattelReligionist`; + } + if (V.arcologies[0].FSChineseRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSChineseRevivalist)) { + V.arcologies[0].FSChineseRevivalist = 10; + r += `<br>Fixed NaN FS value for FSChineseRevivalist`; + } + if (V.arcologies[0].FSArabianRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSArabianRevivalist)) { + V.arcologies[0].FSArabianRevivalist = 10; + r += `<br>Fixed NaN FS value for FSArabianRevivalist`; + } + if (V.arcologies[0].FSEdoRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSEdoRevivalist)) { + V.arcologies[0].FSEdoRevivalist = 10; + r += `<br>Fixed NaN FS value for FSEdoRevivalist`; + } + if (V.arcologies[0].FSEgyptianRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSEgyptianRevivalist)) { + V.arcologies[0].FSEgyptianRevivalist = 10; + r += `<br>Fixed NaN FS value for FSEgyptianRevivalist`; + } + if (V.arcologies[0].FSAztecRevivalist !== "unset" && !Number.isFinite(V.arcologies[0].FSAztecRevivalist)) { + V.arcologies[0].FSAztecRevivalist = 10; + r += `<br>Fixed NaN FS value for FSAztecRevivalist`; + } + if (V.arcologies[0].FSIntellectualDependency !== "unset" && !Number.isFinite(V.arcologies[0].FSIntellectualDependency)) { + V.arcologies[0].FSIntellectualDependency = 10; + r += `<br>Fixed NaN FS value for FSIntellectualDependency`; + } + if (V.arcologies[0].FSSlaveProfessionalism !== "unset" && !Number.isFinite(V.arcologies[0].FSSlaveProfessionalism)) { + V.arcologies[0].FSSlaveProfessionalism = 10; + r += `<br>Fixed NaN FS value for FSSlaveProfessionalism`; + } + if (V.arcologies[0].FSPetiteAdmiration !== "unset" && !Number.isFinite(V.arcologies[0].FSPetiteAdmiration)) { + V.arcologies[0].FSPetiteAdmiration = 10; + r += `<br>Fixed NaN FS value for FSPetiteAdmiration`; + } + if (V.arcologies[0].FSStatuesqueGlorification !== "unset" && !Number.isFinite(V.arcologies[0].FSStatuesqueGlorification)) { + V.arcologies[0].FSStatuesqueGlorification = 10; + r += `<br>Fixed NaN FS value for FSStatuesqueGlorification`; + } + // Clean up FS in player arcology + App.Update.FScheatDatatypeCleanup(); + } // Clean up neighbor's arcologies App.Update.neighborArcologyCheatDatatypeCleanup(); + // Organs + { + let _newOrgans = []; + V.organs.forEach(o => { + if (o.type === "eyes") { + _newOrgans.push({type: "leftEye", weeksToCompletion: o.weeksToCompletion, ID: o.ID}); + _newOrgans.push({type: "rightEye", weeksToCompletion: o.weeksToCompletion, ID: o.ID}); + } else { + _newOrgans.push(o); + } + }); + V.organs = _newOrgans; + + _newOrgans = []; + V.completedOrgans.forEach(o => { + if (o.type === "eyes") { + _newOrgans.push({type: "leftEye", ID: o.ID}); + _newOrgans.push({type: "rightEye", ID: o.ID}); + } else { + _newOrgans.push(o); + } + }); + V.completedOrgans = _newOrgans; + } + if (typeof V.assistant === "number") { assistant.BC(); } else {