From 1b27ba2d42cc079b27fca953df722bfb5e4b13e0 Mon Sep 17 00:00:00 2001
From: turnop <17540-turnop@users.noreply.gitgud.io>
Date: Sat, 12 Sep 2020 12:52:51 -0700
Subject: [PATCH] Adds NeoImperialism to datatypecleanup in backwards compat

---
 .../backwardsCompatibility/datatypeCleanup.js | 21 +++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/data/backwardsCompatibility/datatypeCleanup.js b/src/data/backwardsCompatibility/datatypeCleanup.js
index c4b24719321..78ee379db30 100644
--- a/src/data/backwardsCompatibility/datatypeCleanup.js
+++ b/src/data/backwardsCompatibility/datatypeCleanup.js
@@ -2289,6 +2289,11 @@ App.Update.FScheatDatatypeCleanup = function() {
 		V.arcologies[0].FSRomanRevivalistDecoration = Number(V.arcologies[0].FSRomanRevivalistDecoration) || 0;
 		V.arcologies[0].FSRomanRevivalistLaw = Number(V.arcologies[0].FSRomanRevivalistLaw) || 0;
 	}
+	if (V.arcologies[0].FSNeoImperialist !== "unset") {
+		V.arcologies[0].FSNeoImperialist = Number(V.arcologies[0].FSNeoImperialist) || "unset";
+		V.arcologies[0].FSNeoImperialistDecoration = Number(V.arcologies[0].FSNeoImperialistDecoration) || 0;
+		V.arcologies[0].FSNeoImperialistLaw = Number(V.arcologies[0].FSNeoImperialistLaw) || 0;
+	}
 	if (V.arcologies[0].FSAztecRevivalist !== "unset") {
 		V.arcologies[0].FSAztecRevivalist = Number(V.arcologies[0].FSAztecRevivalist) || "unset";
 		V.arcologies[0].FSAztecRevivalistDecoration = Number(V.arcologies[0].FSAztecRevivalistDecoration) || 0;
@@ -2401,27 +2406,31 @@ App.Update.neighborArcologyCheatDatatypeCleanup = function() {
 		}
 		if (V.arcologies[_i].FSRomanRevivalist !== "unset") {
 			V.arcologies[_i].FSRomanRevivalist = Number(V.arcologies[_i].FSRomanRevivalist) || "unset";
-			V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = "unset";
+		}
+		if (V.arcologies[_i].FSNeoImperialist !== "unset") {
+			V.arcologies[_i].FSNeoImperialist = Number(V.arcologies[_i].FSNeoImperialist) || "unset";
+			V.arcologies[_i].FSRomanRevivalist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSAztecRevivalist !== "unset") {
 			V.arcologies[_i].FSAztecRevivalist = Number(V.arcologies[_i].FSAztecRevivalist) || "unset";
-			V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSEgyptianRevivalist !== "unset") {
 			V.arcologies[_i].FSEgyptianRevivalist = Number(V.arcologies[_i].FSEgyptianRevivalist) || "unset";
-			V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSEdoRevivalist !== "unset") {
 			V.arcologies[_i].FSEdoRevivalist = Number(V.arcologies[_i].FSEdoRevivalist) || "unset";
-			V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSArabianRevivalist !== "unset") {
 			V.arcologies[_i].FSArabianRevivalist = Number(V.arcologies[_i].FSArabianRevivalist) || "unset";
-			V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSChineseRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSChineseRevivalist !== "unset") {
 			V.arcologies[_i].FSChineseRevivalist = Number(V.arcologies[_i].FSChineseRevivalist) || "unset";
-			V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
+			V.arcologies[_i].FSNeoImperialist = V.arcologies[_i].FSArabianRevivalist = V.arcologies[_i].FSAztecRevivalist = V.arcologies[_i].FSEdoRevivalist = V.arcologies[_i].FSEgyptianRevivalist = V.arcologies[_i].FSRomanRevivalist = "unset";
 		}
 		if (V.arcologies[_i].FSNull !== "unset") {
 			V.arcologies[_i].FSNull = Number(V.arcologies[_i].FSNull) || "unset";
-- 
GitLab