diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 40c7c518b18ef6595eba5e5051a844cf3d494286..52af2fa1bfeb805ff88d2a76e2eefa90e2187fd0 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -548,7 +548,7 @@ App.Update.shred = function() { ]; for (let shred of shredList) { if (typeof V[shred] !== "undefined") { - if (V.debugMode){ + if (V.debugMode) { r += `<div>Found old value: $${shred}, deleted it.</div>`; } delete V[shred]; @@ -562,42 +562,34 @@ App.Update.generalBC = function() { if (Array.isArray(V.nationalities)) { V.nationalities = weightedArray2HashMap(V.nationalities); } - if (typeof V.spaSpots === "undefined") { V.spaSpots = 0; } - 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.marrying !== "object") { V.marrying = []; } if ((typeof V.weddingPlanned === "undefined") || (V.marrying.length < 1)) { V.weddingPlanned = 0; } - if (typeof V.reminders === "undefined") { V.reminders = []; } else if (!Array.isArray(V.reminders)) { @@ -613,7 +605,6 @@ App.Update.generalBC = function() { App.Reminders.add(_s, V.week - 1); } } - if (typeof V.bodyguardTrains === "undefined") { V.bodyguardTrains = 1; } @@ -677,7 +668,6 @@ App.Update.generalBC = function() { if (typeof V.completedOrgans === "undefined") { V.completedOrgans = []; } - if (typeof V.rent === "undefined") { V.rent = {}; } @@ -1134,8 +1124,6 @@ App.Update.generalBC = function() { if (typeof V.activeFeline === "undefined") { V.activeFeline = 0; } - - if (typeof V.legendaryWombID === "undefined") { V.legendaryWombID = 0; } @@ -1161,7 +1149,6 @@ App.Update.generalBC = function() { V.FSGotRepCredits = 0; } } - if (typeof V.makeDicks === "undefined") { V.makeDicks = 0; } @@ -1176,13 +1163,13 @@ App.Update.generalBC = function() { V.personalAttention = [{ID: V.personalAttention, trainingRegimen: V.trainingRegimen}]; } } - if (typeof V.huskSlaveOrdered === "undefined") { V.huskSlaveOrdered = 0; } if (typeof V.huskSlave === "undefined") { V.huskSlave = new App.Entity.CustomSlaveOrder(); } + App.Update.CustomSlaveOrder(V.huskSlave); App.Update.CustomSlaveOrder(V.customSlave); @@ -1359,7 +1346,6 @@ App.Update.generalBC = function() { if (typeof V.useSlaveListInPageJSNavigation === "undefined") { V.useSlaveListInPageJSNavigation = 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; @@ -1425,7 +1411,6 @@ App.Update.generalBC = function() { if (typeof V.arcologies[0].FSPhysicalIdealistLaw === "undefined") { V.arcologies[0].FSPhysicalIdealistLaw = 0; } - if (typeof V.FSPromenade === "undefined") { V.FSPromenade = { Subjugationist: 0, @@ -1458,7 +1443,6 @@ App.Update.generalBC = function() { StatuesqueGlorification: 0 }; } - if (typeof V.arcologyUpgrade === "undefined") { V.arcologyUpgrade = { drones: 0, @@ -1473,11 +1457,9 @@ App.Update.generalBC = function() { V.arcologyUpgrade.grid = (V.AProsperityCap > 120) ? 1 : 0; V.arcologyUpgrade.spire = (V.AProsperityCap > 240) ? 1 : 0; } - if (typeof V.AMenials !== "undefined") { V.ASlaves += Math.trunc(V.AMenials / 2); } - if (typeof V.helots !== "undefined") { V.menials = V.helots; } @@ -1532,13 +1514,11 @@ App.Update.generalBC = function() { 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; } @@ -1620,7 +1600,6 @@ App.Update.generalBC = function() { if (typeof V.arcologies[0].leaderID === "undefined") { V.arcologies[0].leaderID = 0; } - if ((typeof V.FSSupremacist !== "undefined") && V.FSSupremacist !== "unset") { V.arcologies[0].FSSupremacist = V.FSSupremacist; V.arcologies[0].FSSupremacistRace = V.FSSupremacistRace; @@ -1641,7 +1620,6 @@ App.Update.generalBC = function() { } 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; @@ -1662,37 +1640,31 @@ App.Update.generalBC = function() { } 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") { @@ -1712,178 +1684,149 @@ App.Update.generalBC = function() { } 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") { @@ -1893,14 +1836,12 @@ App.Update.generalBC = function() { if (typeof V.masteredXP === "undefined") { V.masteredXP = 200; } - if (V.clubAdsSpending > 0 && V.club === 0) { V.clubAdsSpending = 0; } if (V.brothelAdsSpending > 0 && V.brothel === 0) { V.brothelAdsSpending = 0; } - if (typeof V.missingTable === "undefined") { V.missingTable = {}; } @@ -1910,12 +1851,9 @@ App.Update.generalBC = function() { if (typeof V.showMissingSlavesSD === "undefined") { V.showMissingSlavesSD = false; } - if (typeof V.postSexCleanUp === "undefined") { V.postSexCleanUp = 1; } - - if (((typeof V.DefaultBirthDestination === "undefined") || (V.DefaultBirthDestination === "") || (V.DefaultBirthDestination === "anywhere"))) { V.DefaultBirthDestination = "individually decided fates"; } @@ -2067,7 +2005,6 @@ App.Update.generalBC = function() { if (V.sortSlavesBy === "income" || V.sortSlavesBy === "lastWeeksCashIncome") { V.sortSlavesBy = "weeklyIncome"; } - if (typeof V.tooltipsEnabled === "undefined") { V.tooltipsEnabled = 0; } @@ -2097,7 +2034,6 @@ App.Update.generalBC = function() { if ((V.PC.customTitle === "")) { V.PC.customTitle = undefined, V.PC.customTitleLisp = undefined; } - if (typeof V.building === "undefined") { if (typeof V.sectors !== "undefined") { App.Update.sectorsToBuilding(); @@ -2116,31 +2052,24 @@ App.Update.globalVariables = function() { } else { assistant.object(); } - if (typeof V.CulturalOpenness === "undefined") { V.CulturalOpenness = 0; } - if (typeof V.displayAssignments === "undefined") { V.displayAssignments = 1; } - if (typeof V.universalRulesImpregnation === "undefined") { V.universalRulesImpregnation = "none"; } - if (typeof V.abbreviateNationality === "undefined") { V.abbreviateNationality = 0; } - if (typeof V.language === "undefined") { V.language = "English"; } - if (typeof V.terrain === "undefined") { V.terrain = "rural"; } - if (typeof V.nicaeaAnnounceable === "undefined") { V.nicaeaAnnounceable = 0; } @@ -2159,7 +2088,6 @@ App.Update.globalVariables = function() { if (typeof V.nicaeaHeld === "undefined") { V.nicaeaHeld = 0; } - if (typeof V.REFeminizationCheckinIDs === "undefined") { V.REFeminizationCheckinIDs = []; } @@ -2193,7 +2121,6 @@ App.Update.globalVariables = function() { if (typeof V.roomsPopulation === "undefined") { V.roomsPopulation = 0; } - if (typeof V.universalHGImpregnateMasterSuiteToggle === "undefined") { V.universalHGImpregnateMasterSuiteToggle = 0; } @@ -2218,7 +2145,6 @@ App.Update.globalVariables = function() { if (typeof V.pitAnimalType === "undefined") { V.pitAnimalType = 0; } - if (typeof V.verboseDescriptions === "undefined") { V.verboseDescriptions = 0; } @@ -2321,14 +2247,12 @@ App.Update.globalVariables = function() { if (typeof V.buckets === "undefined") { V.buckets = 0; } - if (typeof V.universalRulesRest === "undefined") { V.universalRulesRest = 0; } if (typeof V.universalRulesNewSlavesRA === "undefined") { V.universalRulesNewSlavesRA = 1; } - if (typeof V.hormoneUpgradeMood === "undefined") { V.hormoneUpgradeMood = 0; } @@ -2338,11 +2262,9 @@ App.Update.globalVariables = function() { if (typeof V.hormoneUpgradePower === "undefined") { V.hormoneUpgradePower = 0; } - if (typeof V.schoolSuggestion === "undefined") { V.schoolSuggestion = 0; } - if (typeof V.prostheticsUpgrade === "undefined") { V.prostheticsUpgrade = 0; } @@ -2442,7 +2364,6 @@ App.Update.globalVariables = function() { if (typeof V.geneticFlawLibrary === "undefined") { V.geneticFlawLibrary = 0; } - if (typeof V.pregInventor === "undefined") { V.pregInventor = 0; } @@ -2480,10 +2401,8 @@ App.Update.globalVariables = function() { if (typeof V.Role === "undefined") { V.Role = ""; } - if (typeof V.trinkets === "undefined") { V.trinkets = []; - if (V.PC.career === "wealth") { V.trinkets.push("a collection of diplomas from expensive schools"); } else if (V.PC.career === "capitalist") { @@ -2510,7 +2429,6 @@ App.Update.globalVariables = function() { V.trinkets.push("a news clipping of your first successful live hack"); } } - if (typeof V.TSS === "undefined") { V.TSS = { schoolUpgrade: 0, @@ -2615,11 +2533,9 @@ App.Update.globalVariables = function() { schoolSale: 0 }; } - if (typeof V.birthee === "undefined") { V.birthee = 0; } - if (typeof V.alwaysSubsidizeRep === "undefined") { V.alwaysSubsidizeRep = 0; } @@ -2743,7 +2659,6 @@ App.Update.globalVariables = function() { if (typeof V.MixedMarriage === "undefined") { V.MixedMarriage = 0; } - if (typeof V.expiree === "undefined") { V.expiree = 0; } @@ -2795,7 +2710,6 @@ App.Update.globalVariables = function() { if (typeof V.justiceEvents === "undefined") { V.justiceEvents = ["indenture deal", "majority deal", "slave deal", "slave training", "virginity deal"]; } - if (((V.ver.startsWith("0.6") && !V.ver.startsWith("10.6")) || (V.ver.startsWith("0.7")) || (V.ver.startsWith("0.8")) || (V.ver === "0.9"))) { if (V.seeDicks === 2) { V.seeDicks = 100; @@ -2804,7 +2718,6 @@ App.Update.globalVariables = function() { } } V.seeDicks = Math.clamp(V.seeDicks, 0, 100); - if (typeof V.PC.ID === "undefined") { V.PC.ID = -1; } @@ -2823,7 +2736,6 @@ App.Update.globalVariables = function() { if (typeof V.PC.counter.penetrative === "undefined") { V.PC.counter.penetrative = 0; } - if (!(V.ver.startsWith("0.10"))) { if (V.PC.refreshment === "cigar") { V.PC.refreshmentType = 0; @@ -2889,11 +2801,9 @@ App.Update.globalVariables = function() { V.pornStars[genre.fameVar] = {p1count: 0, p3ID: 0}; } } - if (V.PCSlutContacts === 0) { V.PCSlutContacts = 1; } - if (typeof V.seeVectorArtHighlights === "undefined") { V.seeVectorArtHighlights = 1; } @@ -3040,14 +2950,12 @@ App.Update.globalVariables = function() { if (typeof V.publicFuckdolls === "undefined") { V.publicFuckdolls = 0; } - if (typeof V.classSatisfied === "undefined") { V.classSatisfied = {}; } if (typeof V.lowerClassSatisfied !== "undefined") { V.classSatisfied.lowerClass = V.lowerClassSatisfied; } - if (typeof V.sexSubsidies === "undefined") { V.sexSubsidies = {}; } @@ -3066,7 +2974,6 @@ App.Update.globalVariables = function() { if (typeof V.clubSlaveSexAmount === "undefined") { V.clubSlaveSexAmount = 0; } - if (typeof V.food === "undefined") { V.food = 50000; } @@ -3107,7 +3014,6 @@ App.Update.globalVariables = function() { V.rations = 0; } - EconomyDatatypeCleanup(); ArcologyDatatypeCleanup(); @@ -3144,7 +3050,6 @@ App.Update.slaveRecords = function() { V.leaders[_leaderIdx] = _Slave; } }); - if (V.hostage !== 0) { App.Update.Slave(V.hostage); App.Entity.Utils.SlaveDataSchemeCleanup(V.hostage); @@ -3168,7 +3073,6 @@ App.Update.slaveRecords = function() { if (typeof V.assignmentRecords === "undefined") { V.assignmentRecords = {}; } - r += ` Done!<br>`; if (V.tanks.length > 0) { @@ -3261,14 +3165,12 @@ App.Update.genePoolRecords = function() { V.genePool.deleteAt(_bci), _bci--; continue; } - if (typeof _Slave.origSkin === "undefined") { _Slave.origSkin = _Slave.skin; } if (typeof _Slave.origRace === "undefined") { _Slave.origRace = _Slave.race; } - if (V.releaseID < 1059) { if (typeof _Slave.eyesImplant === "undefined") { _Slave.eyesImplant = 0; @@ -3288,7 +3190,6 @@ App.Update.genePoolRecords = function() { _Slave.eyes = -4; } } - if (typeof _Slave.custom === "undefined") { _Slave.custom = {}; } @@ -3303,7 +3204,6 @@ App.Update.genePoolRecords = function() { App.Entity.Utils.GenePoolRecordCleanup(_Slave); V.genePool[_bci] = _Slave; } - if (V.nurseryNannies > 0) { for (let _bci = 0; _bci < V.cribs.length; _bci++) { App.Update.Slave(V.cribs[_bci]); @@ -3562,7 +3462,6 @@ App.Update.oldVersions = function() { V.disableLisping = 0; } } - if (V.releaseID < 1057) { r += `Standardizing player object... `; if (typeof V.PC.actualAge === "undefined") { @@ -4006,35 +3905,35 @@ App.Update.oldVersions = function() { App.Update.HeroSlavesCleanup = function() { V.heroSlaves.forEach(function(s) { /* Nationalities, races, surnames random fill */ - if(!s.nationality) { + if (!s.nationality) { /* Check for a pre-set race and if the nationality fits, else regenerate */ - if(s.race && setup.filterRacesLowercase.includes(s.race)) { - raceToNationality(s); + if (s.race && setup.filterRacesLowercase.includes(s.race)) { + raceToNationality(s); } else { s.nationality = hashChoice($nationalities); } } - if(!s.race || !setup.filterRacesLowercase.includes(s.race)) { + if (!s.race || !setup.filterRacesLowercase.includes(s.race)) { nationalityToRace(s); } - if(!s.birthSurname && s.birthSurname !== "") { - s.birthSurname = (setup.surnamePoolSelector[s.nationality + "." + s.race] - || setup.surnamePoolSelector[s.nationality] - || setup.whiteAmericanSlaveSurnames).random(); + if (!s.birthSurname && s.birthSurname !== "") { + s.birthSurname = (setup.surnamePoolSelector[s.nationality + "." + s.race] || + setup.surnamePoolSelector[s.nationality] || + setup.whiteAmericanSlaveSurnames).random(); } - if(!s.birthName && s.birthName !== "") { - s.birthName = (setup.namePoolSelector[s.nationality + "." + s.race] - || setup.namePoolSelector[s.nationality] - || setup.whiteAmericanSlaveNames).random(); + if (!s.birthName && s.birthName !== "") { + s.birthName = (setup.namePoolSelector[s.nationality + "." + s.race] || + setup.namePoolSelector[s.nationality] || + setup.whiteAmericanSlaveNames).random(); } generatePronouns(s); - if(s.geneMods === undefined) { + if (s.geneMods === undefined) { s.geneMods = {NCS: 0, rapidCellGrowth: 0}; } else { - if(s.geneMods.NCS === undefined) { + if (s.geneMods.NCS === undefined) { s.geneMods.NCS = 0; } - if(s.geneMods.rapidCellGrowth === undefined) { + if (s.geneMods.rapidCellGrowth === undefined) { s.geneMods.rapidCellGrowth = 0; } } @@ -4043,7 +3942,6 @@ App.Update.HeroSlavesCleanup = function() { return; }; - App.Update.cleanUp = function() { /* leave this at the bottom of BC */ if (V.releaseID < App.Version.release) { @@ -4059,11 +3957,18 @@ App.Update.sectorsToBuilding = function() { const B = V.building; const S = V.sectors; - B.sections.push(new App.Arcology.Section("penthouse", [[new App.Arcology.Cell.Penthouse()]])); + B.sections.push(new App.Arcology.Section("penthouse", [ + [new App.Arcology.Cell.Penthouse()] + ])); if (V.arcologyUpgrade.spire === 1) { - B.sections.push(new App.Arcology.Section("spire", [[ - sectorToApartment(S[1]), sectorToApartment(S[2])], [ - sectorToApartment(S[3]), sectorToApartment(S[4])]])); + B.sections.push(new App.Arcology.Section("spire", [ + [ + sectorToApartment(S[1]), sectorToApartment(S[2]) + ], + [ + sectorToApartment(S[3]), sectorToApartment(S[4]) + ] + ])); } B.sections.push(new App.Arcology.Section("apartments", [ @@ -4082,14 +3987,18 @@ App.Update.sectorsToBuilding = function() { return a; } - B.sections.push(new App.Arcology.Section("shops", [[sectorToShop(S[5]), sectorToShop(S[6]), sectorToShop(S[7])]])); + B.sections.push(new App.Arcology.Section("shops", [ + [sectorToShop(S[5]), sectorToShop(S[6]), sectorToShop(S[7])] + ])); function sectorToShop(sector) { return new App.Arcology.Cell.Shop(sector.ownership, sector.type); } B.sections.push(new App.Arcology.Section("markets", - [[sectorToMarket(S[20]), sectorToMarket(S[21]), sectorToMarket(S[22]), sectorToMarket(S[23]), sectorToMarket(S[24])]])); + [ + [sectorToMarket(S[20]), sectorToMarket(S[21]), sectorToMarket(S[22]), sectorToMarket(S[23]), sectorToMarket(S[24])] + ])); function sectorToMarket(sector) { const m = new App.Arcology.Cell.Market(sector.ownership); @@ -4104,7 +4013,9 @@ App.Update.sectorsToBuilding = function() { } B.sections.push(new App.Arcology.Section("manufacturing", - [[sectorToManu(S[25]), sectorToManu(S[26]), sectorToManu(S[27]), sectorToManu(S[28]), sectorToManu(S[29])]])); + [ + [sectorToManu(S[25]), sectorToManu(S[26]), sectorToManu(S[27]), sectorToManu(S[28]), sectorToManu(S[29])] + ])); function sectorToManu(sector) { const m = new App.Arcology.Cell.Manufacturing(sector.ownership);