From a0c1ef8801ea4203a004cf085ebb6a205f4b9b19 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Tue, 3 Mar 2020 01:38:38 -0500
Subject: [PATCH] hide destruction of some vars I don't care about

---
 js/003-data/gameVariableData.js               | 84 +++++++++++++++++++
 .../backwardsCompatibility.js                 | 12 ++-
 2 files changed, 95 insertions(+), 1 deletion(-)

diff --git a/js/003-data/gameVariableData.js b/js/003-data/gameVariableData.js
index a748375c08a..749222625aa 100644
--- a/js/003-data/gameVariableData.js
+++ b/js/003-data/gameVariableData.js
@@ -1472,3 +1472,87 @@ App.Data.defaultGameStateVariables = {
 	enduringDevotion: 0,
 	defaultRules: [],
 };
+
+App.Data.ignoreGameStateVariables = [
+	// pronouns
+	"Mothers",
+	"mothers",
+	"Fathers",
+	"Husbands",
+	"Husband",
+	"Brother",
+	"Son",
+	"Shota",
+	"Men",
+	"Man",
+	"fathers",
+	"husbands",
+	"husband",
+	"brother",
+	"son",
+	"shota",
+	"men",
+	"man",
+	"Mother",
+	"Wives",
+	"Wife",
+	"Sister",
+	"Daughter",
+	"Loli",
+	"Women",
+	"Woman",
+	"mother",
+	"wives",
+	"wife",
+	"sister",
+	"daughter",
+	"loli",
+	"women",
+	"woman",
+	"Girl",
+	"Herself",
+	"Hers",
+	"Her",
+	"She",
+	"girl",
+	"herself",
+	"hers",
+	"her",
+	"she",
+	"Father",
+	"father",
+	"Boy",
+	"Himself",
+	"His",
+	"Him",
+	"He",
+	"boy",
+	"himself",
+	"his",
+	"him",
+	"he",
+
+	// Enunciate
+	"XEnunciate",
+	"xEnunciate",
+	"SchEnunciate",
+	"schEnunciate",
+	"ScEnunciate",
+	"scEnunciate",
+	"ShEnunciate",
+	"shEnunciate",
+	"PsEnunciate",
+	"psEnunciate",
+	"ChEnunciate",
+	"chEnunciate",
+	"zzEnunciate",
+	"ZEnunciate",
+	"zEnunciate",
+	"ccEnunciate",
+	"CEnunciate",
+	"cEnunciate",
+	"ssEnunciate",
+	"SEnunciate",
+	"sEnunciate",
+	"sayEnunciate"
+];
diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js
index cc2b844e085..fd61c9a5436 100644
--- a/src/data/backwardsCompatibility/backwardsCompatibility.js
+++ b/src/data/backwardsCompatibility/backwardsCompatibility.js
@@ -1,12 +1,22 @@
 App.Update.autoshred = function() {
 	const defaultGameStateVariables = new Set(Object.getOwnPropertyNames(App.Data.defaultGameStateVariables));
+	let extraCount = 0;
 
 	for (const v in V) {
 		if (!defaultGameStateVariables.has(v)) {
-			console.log("Not on whitelist, removed:", "V."+v+":", V[v]);
+			if (V.debugMode) {
+				if (!App.Data.ignoreGameStateVariables.includes(v)) {
+					console.log("Not on whitelist, removed:", "V."+v+":", V[v]);
+				} else {
+					extraCount++;
+				}
+			}
 			delete V[v];
 		}
 	}
+	if (extraCount !== 0) {
+		console.log(`and ${extraCount} more`);
+	}
 };
 
 App.Update.setNonexistantProperties = function(obj, props) {
-- 
GitLab