diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index a6b50a4a2a432f39d37d32fe43038f3549a4c147..04d6d2777246e82192e48f58c270d9002bc3c1c6 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -915,6 +915,13 @@ App.Update.globalVariables = function() { } } } + // move from "V.corpDivArcade" format to "V.corp.DivArcade" (put corp into one object) + for (let variable in State.Variables ) { + if (variable.startsWith('corp')) { + console.log ("Corp: moving V.", variable, "to V.corp.", variable.slice(4)); + V.corp[variable.slice(4)] = V[variable]; + } + } } // Organs