From 85c667233a532b543b37152fb03267085f297342 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 2 Mar 2020 21:53:59 -0500 Subject: [PATCH] move to whitelist based variable cleanup --- .../backwardsCompatibility.js | 561 ------------------ src/uncategorized/BackwardsCompatibility.tw | 2 +- 2 files changed, 1 insertion(+), 562 deletions(-) diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index e6849b582de..4d9bbdc92ca 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -1,564 +1,3 @@ -App.Update.shred = function() { - let r = `Deleting old values... `; - // Want to delete a variable from a save? Add it to this array: - const shredList = [ - "ACitizenLimit", - "AMenials", - "ASlaveLimit", - "ArcologyNamesArabianRevivalist", - "ArcologyNamesAssetExpansionist", - "ArcologyNamesAztecRevivalist", - "ArcologyNamesBodyPurist", - "ArcologyNamesChattelReligionist", - "ArcologyNamesChineseRevivalist", - "ArcologyNamesDegradationist", - "ArcologyNamesEdoRevivalist", - "ArcologyNamesEgyptianRevivalist", - "ArcologyNamesEugenics", - "ArcologyNamesGenderFundamentalist", - "ArcologyNamesGenderRadicalist", - "ArcologyNamesHedonisticDecadence", - "ArcologyNamesMaturityPreferentialist", - "ArcologyNamesPastoralist", - "ArcologyNamesPaternalist", - "ArcologyNamesPhysicalIdealist", - "ArcologyNamesRepopulationist", - "ArcologyNamesRomanRevivalist", - "ArcologyNamesSlimnessEnthusiast", - "ArcologyNamesSubjugationistAmerindian", - "ArcologyNamesSubjugationistAsian", - "ArcologyNamesSubjugationistBlack", - "ArcologyNamesSubjugationistIndoAryan", - "ArcologyNamesSubjugationistLatina", - "ArcologyNamesSubjugationistMalay", - "ArcologyNamesSubjugationistMiddleEastern", - "ArcologyNamesSubjugationistMixedRace", - "ArcologyNamesSubjugationistPacificIslander", - "ArcologyNamesSubjugationistSemitic", - "ArcologyNamesSubjugationistSouthernEuropean", - "ArcologyNamesSubjugationistWhite", - "ArcologyNamesSupremacistAmerindian", - "ArcologyNamesSupremacistAsian", - "ArcologyNamesSupremacistBlack", - "ArcologyNamesSupremacistIndoAryan", - "ArcologyNamesSupremacistLatina", - "ArcologyNamesSupremacistMalay", - "ArcologyNamesSupremacistMiddleEastern", - "ArcologyNamesSupremacistMixedRace", - "ArcologyNamesSupremacistPacificIslander", - "ArcologyNamesSupremacistSemitic", - "ArcologyNamesSupremacistSouthernEuropean", - "ArcologyNamesSupremacistWhite", - "ArcologyNamesTransformationFetishist", - "ArcologyNamesYouthPreferentialist", - "BasicShortSMR", - "BasicTallSMR", - "CitizenRetirementTrigger", - "DJCareers", - "FSArabianRevivalist", - "FSArabianRevivalistLaw", - "FSAssetExpansionist", - "FSAssetExpansionistSMR", - "FSBodyPurist", - "FSBodyPuristLaw", - "FSChattelReligionist", - "FSChattelReligionistLaw", - "FSChineseRevivalist", - "FSChineseRevivalistLaw", - "FSCreditCountString", - "FSDegradationist", - "FSDegradationistLaw", - "FSEdoRevivalist", - "FSEdoRevivalistLaw", - "FSEgyptianRevivalist", - "FSEgyptianRevivalistLaw", - "FSGenderFundamentalist", - "FSGenderFundamentalistSMR", - "FSGenderRadicalist", - "FSGenderRadicalistLaw", - "FSGotRepCreditFive", - "FSGotRepCreditFour", - "FSGotRepCreditOne", - "FSGotRepCreditSix", - "FSGotRepCreditThree", - "FSGotRepCreditTwo", - "FSMaturityPreferentialist", - "FSMaturityPreferentialistLaw", - "FSPastoralist", - "FSPastoralistLaw", - "FSPaternalist", - "FSPaternalistLaw", - "FSPhysicalIdealist", - "FSPhysicalIdealistSMR", - "FSRomanRevivalist", - "FSRomanRevivalistLaw", - "FSSlimnessEnthusiast", - "FSSlimnessEnthusiastSMR", - "FSSubjugationist", - "FSSubjugationistLawME", - "FSSubjugationistRace", - "FSSupremacist", - "FSSupremacistLawME", - "FSSupremacistRace", - "FSTransformationFetishist", - "FSTransformationFetishistSMR", - "FSYouthPreferentialist", - "FSYouthPreferentialistLaw", - "Flag", - "HGCareers", - "HGSuiteSlaves", - "LCRent", - "LurcherSpeed", - "MCRent", - "PCName", - "PCWounded", - "REBoobCollisionSub", - "REIfYouEnjoyItSub", - "RERelationshipSlave", - "RERepressedAnalVirginSub", - "RESadisticDescriptionSub", - "REShowerForceSub", - "SlaveSummaryFiler", - "TCRent", - "TradeShowHelots", - "UCRent", - "XX", - "XY", - "activeArcology", - "adopted", - "afghanSlaveNames", - "africaNationalities", - "africanAmericanSlaveNames", - "albanianSlaveNames", - "algerianSlaveNames", - "amerindianNationalities", - "analCount", - "ancientEgyptianSlaveNames", - "animalParts", - "appraiserGender", - "arcadeSlaves", - "arcologyName", - "argentinianSlaveNames", - "armenianSlaveNames", - "asiaNationalities", - "asianAmericanSlaveNames", - "asianNationalities", - "assayType", - "assayedSlave", - "assayedSlaveAvailable", - "assetAffected", - "assetDirection", - "assignFilter", - "attendantCareers", - "australiaNationalities", - "australianSlaveNames", - "austrianSlaveNames", - "aztecSlaveNames", - "badNames", - "badWords", - "bangladeshiSlaveNames", - "basenationalities", - "belarusianSlaveNames", - "belgianSlaveNames", - "bellyAccessories", - "bermudianSlaveNames", - "blackNationalities", - "blackSouthAfricanSlaveNames", - "bodyguardCareers", - "bolivianSlaveNames", - "boughtCanines", - "boughtCougars", - "boughtDingos", - "boughtFelines", - "boughtFoxes", - "boughtJackals", - "boughtJaguars", - "boughtLeopards", - "boughtLions", - "boughtLynx", - "boughtPumas", - "boughtTigers", - "boughtWolves", - "brazilianSlaveNames", - "britishSlaveNames", - "brothelSlaves", - "bruneianSlaveNames", - "burmeseSlaveNames", - "buttplugs", - "buyArcologyDirection", - "cambodianSlaveNames", - "cameroonianSlaveNames", - "canadianSlaveNames", - "captureAssetPrice", - "captureAssets", - "captureUpgradeAge", - "captureUpgradeGender", - "captureUpgradeRace", - "cellblockSlaves", - "chattelReligionistSlaveNames", - "chileanSlaveNames", - "chineseSlaveNames", - "clubSlaves", - "colombianSlaveNames", - "congoleseSlaveNames", - "corpCash", - "corpEasy", - "corpExpand", - "corpPeopleEnslaved", - "corpProfit", - "corpValue", - "cowSlaveNames", - "cubanSlaveNames", - "customValue", - "cyberMod", - "czechSlaveNames", - "dairySlaves", - "dangerousPregancy", - "danishSlaveNames", - "day", - "defaultCanine", - "defaultCaninePlural", - "defaultFeline", - "defaultFelinePlural", - "defaultHooved", - "defaultHoovedPlural", - "dickAccessories", - "djiboutianSlaveNames", - "dominicanSlaveNames", - "drugAssetPrice", - "drugAssets", - "drugUpgradeHormones", - "drugUpgradeInjectionOne", - "drugUpgradeInjectionTwo", - "drugs", - "dutchSlaveNames", - "edoSlaveNames", - "educatedCareers", - "egyptianSlaveNames", - "emiratiSlaveNames", - "enslaveChance", - "entertainmentCareers", - "entrapmentAssetPrice", - "entrapmentAssets", - "entrapmentUpgradeDevotionOne", - "entrapmentUpgradeDevotionTwo", - "entrapmentUpgradeIntelligence", - "estonianSlaveNames", - "ethiopianSlaveNames", - "europeNationalities", - "eventSlaves", - "fakeBellies", - "farmerCareers", - "farmyardSlaves", - "farmyardUpgradeList", - "fetishChangeChance", - "fighterOne", - "fighterOneDeadliness", - "fighterTwo", - "fighterTwoDeadliness", - "filipinaSlaveNames", - "finnishSlaveNames", - "frenchSlaveNames", - "gaboneseSlaveNames", - "generalAssetPrice", - "generalAssets", - "generalUpgradeBreaking", - "generalUpgradeMuscle", - "generalUpgradeWeight", - "germanSlaveNames", - "ghananSlaveNames", - "girls", - "gratefulCareers", - "greekSlaveNames", - "greenlandicSlaveNames", - "guatemalanSlaveNames", - "haitianSlaveNames", - "hare1", - "hare2", - "hare3", - "hareSpeed", - "hareSpeed1", - "hareSpeed2", - "hareSpeed3", - "harshCollars", - "helots", - "hostageCost", - "hungarianSlaveNames", - "icelandicSlaveNames", - "implanted", - "indianSlaveNames", - "individualCosts", - "indoaryanNationalities", - "indonesianSlaveNames", - "iranianSlaveNames", - "iraqiSlaveNames", - "irishSlaveNames", - "israeliSlaveNames", - "italianSlaveNames", - "jamaicanSlaveNames", - "japaneseSlaveNames", - "jordanianSlaveNames", - "kazakhSlaveNames", - "kenyanSlaveNames", - "koreanSlaveNames", - "latinaNationalities", - "latinaSlaveNames", - "lebaneseSlaveNames", - "libyanSlaveNames", - "limbs", - "limbsComplete", - "limbsCompleted", - "lithuanianSlaveNames", - "lowerClassSatisfied", - "lowerClassSexDemand", - "lowerRate", - "madamCareers", - "malayNationalities", - "malaysianSlaveNames", - "malianSlaveNames", - "manuallyRetired", - "marshalleseSlaveNames", - "masterSuiteSlaves", - "matronCareers", - "menialCareers", - "mexicanSlaveNames", - "middleClassSexDemand", - "middleRate", - "middleeastNationalities", - "middleeasternNationalities", - "milfSlave", - "milkmaidCareers", - "minimumChildAge", - "modded", - "modestClothes", - "monegasqueSlaveNames", - "montenegrinSlaveNames", - "month", - "moroccanSlaveNames", - "nepaleseSlaveNames", - "newZealanderSlaveNames", - "nigerianSlaveNames", - "northamericaNationalities", - "norwegianSlaveNames", - "nurseCareers", - "nurserySlaves", - "old", - "oldSharePrice", - "omaniSlaveNames", - "oralCount", - "organsCompleted", - "origin", - "origin1", - "origin2", - "origin3", - "origins", - "pacificislanderNationalities", - "pakistaniSlaveNames", - "personalAttentionChanged", - "personalShares", - "peruvianSlaveNames", - "piercingLocation", - "place", - "playerGetsMilked", - "polishSlaveNames", - "pornStarAbusiveID", - "pornStarAbusives", - "pornStarAnalAddictID", - "pornStarAnalAddicts", - "pornStarAnalID", - "pornStarAnals", - "pornStarAttentionWhoreID", - "pornStarAttentionWhores", - "pornStarBBWID", - "pornStarBBWs", - "pornStarBoobs", - "pornStarBoobsID", - "pornStarBreastGrowthID", - "pornStarBreastGrowths", - "pornStarBreederID", - "pornStarBreeders", - "pornStarCaringID", - "pornStarCarings", - "pornStarCumAddictID", - "pornStarCumAddicts", - "pornStarCumSlutID", - "pornStarCumSluts", - "pornStarDeepThroatID", - "pornStarDeepThroats", - "pornStarDomID", - "pornStarDoms", - "pornStarFuckdollID", - "pornStarFuckdolls", - "pornStarGainerID", - "pornStarGainers", - "pornStarHumiliationID", - "pornStarHumiliations", - "pornStarID", - "pornStarLoliID", - "pornStarLolis", - "pornStarMalicious", - "pornStarMaliciousID", - "pornStarMasochistID", - "pornStarMasochists", - "pornStarNeglectfulID", - "pornStarNeglectfuls", - "pornStarPainalID", - "pornStarPainals", - "pornStarPervertID", - "pornStarPerverts", - "pornStarPreggoID", - "pornStarPreggos", - "pornStarPregnancyID", - "pornStarPregnancySluts", - "pornStarRapeID", - "pornStarRapees", - "pornStarRomanticID", - "pornStarRomantics", - "pornStarSadistID", - "pornStarSadists", - "pornStarSelfHatingID", - "pornStarSelfHatings", - "pornStarSizeQueenID", - "pornStarSizeQueens", - "pornStarStruggleFuckID", - "pornStarStruggleFucks", - "pornStarStudID", - "pornStarStuds", - "pornStarSubID", - "pornStarSubs", - "pornStarTeaseID", - "pornStarTeases", - "pornStarUnflinchingID", - "pornStarUnflinchings", - "portugueseSlaveNames", - "pregNo", - "pregYes", - "publicShares", - "puertoRicanSlaveNames", - "recruiterCareers", - "recruiterMother", - "recruiterSister", - "recruiters", - "relations", - "rents", - "romanSlaveNames", - "romanianSlaveNames", - "russianSlaveNames", - "sammarineseSlaveNames", - "saudiSlaveNames", - "schoolTitle", - "schoolroomSlaves", - "schoolsPerfected", - "schoolsPresent", - "schoolteacherCareers", - "scottishSlaveNames", - "sellArcologyDirection", - "semiticNationalities", - "serbianSlaveNames", - "servantMilkersJobs", - "servantsQuartersSlaves", - "sexSubsidiesLC", - "sexSupplyBarriersLC", - "sharePrice", - "shoes", - "showBestiality", - "showMainClothing", - "showWardrobe", - "singaporeanSlaveNames", - "sissy", - "skillIncrease", - "slaveAssetPrice", - "slaveAssets", - "slaveDemandT", - "slaveDemandU", - "slaveExpiration", - "slaveProductivity", - "slaveRate", - "slavesOriginal", - "slim", - "slimPass", - "slovakSlaveNames", - "southamericaNationalities", - "southerneuropeanNationalities", - "spaSlaves", - "space", - "spanishSlaveNames", - "stacked", - "startingSlaveRelative", - "stewardessCareers", - "stockpile", - "sudaneseSlaveNames", - "surgicalAssetPrice", - "surgicalAssets", - "surgicalUpgradeCosmetics", - "surgicalUpgradeGenitalia", - "surgicalUpgradeImplants", - "swedishSlaveNames", - "swissSlaveNames", - "syrianSlaveNames", - "taitorWeeks", - "tanzanianSlaveNames", - "target1", - "target2", - "target3", - "targetEscape1", - "targetEscape2", - "targetEscape3", - "thaiSlaveNames", - "titles", - "topClassSexDemand", - "topRate", - "trainingAssetPrice", - "trainingAssets", - "trainingRegimen", - "trainingUpgradeAccent", - "trainingUpgradeEducation", - "trainingUpgradeSexEd", - "transaction", - "tunisianSlaveNames", - "turkishSlaveNames", - "tuvaluanSlaveNames", - "ugandanSlaveNames", - "ukrainianSlaveNames", - "uneducatedCareers", - "unmodded", - "upperClassSexDemand", - "upperRate", - "uruguayanSlaveNames", - "uzbekSlaveNames", - "vaginaTotal", - "vaginalAccessories", - "vaginalCount", - "venezuelanSlaveNames", - "veryYoungCareers", - "vietnameseSlaveNames", - "vignettes", - "wardenessCareers", - "weddingSlaveID", - "welfare", - "whiteAmericanSlaveNames", - "whiteNationalities", - "whiteSouthAfricanSlaveNames", - "whoreCareers", - "year", - "yemeniSlaveNames", - "young", - "youngCareers", - "zambianSlaveNames", - "zimbabweanSlaveNames" - ]; - // Shreds every game variable that is in shredList: - for (let shred of shredList) { - if (typeof V[shred] !== "undefined") { - if (V.debugMode) { - r += `<div>Found old value: $${shred}, deleted it.</div>`; - } - delete V[shred]; - } - } - return r += "Done!"; -}; - App.Update.globalVariables = function() { let r = `Setting missing global variables... `; if (Array.isArray(V.nationalities)) { diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 2739ce74f3d..7510522bae1 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -49,7 +49,7 @@ <</if>> </div> <div> - <<= App.Update.shred()>> + <<= App.Update.autoshred()>> </div> /* leave this at the bottom of BC */ <div> -- GitLab