From e1143f7375fff2a919aeb0504f16fc3cc12a123d Mon Sep 17 00:00:00 2001 From: Blank_Alt <12406-Blank_Alt@users.noreply.gitgud.io> Date: Thu, 21 May 2020 12:38:51 -0700 Subject: [PATCH] Move SecExp removal and minor cleaning. --- js/003-data/gameVariableData.js | 3 +-- src/Mods/SecExp/js/secExp.js | 1 + src/Mods/SpecialForce/SpecialForce.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/003-data/gameVariableData.js b/js/003-data/gameVariableData.js index 66564913911..ec378a28afb 100644 --- a/js/003-data/gameVariableData.js +++ b/js/003-data/gameVariableData.js @@ -584,7 +584,7 @@ App.Data.resetOnNGPlus = { sectionInFirebase: 0, /* base vars */ - secExp: {}, + SecExp: {}, PCvictories: 0, PClosses: 0, @@ -615,7 +615,6 @@ App.Data.resetOnNGPlus = { farmyardShows: 0, DJignoresFlaws: 0, slaveFightingBG: 0, - SecExp: {}, HGSlaveSuccess: 0, unMadam: 0, madamCashBonus: 0, diff --git a/src/Mods/SecExp/js/secExp.js b/src/Mods/SecExp/js/secExp.js index b13b67b4325..013a57b987b 100644 --- a/src/Mods/SecExp/js/secExp.js +++ b/src/Mods/SecExp/js/secExp.js @@ -396,6 +396,7 @@ App.SecExp.Check = (function() { } V.SecExp = V.SecExp || SecExpBase(); V.SecExp.settings = V.SecExp.settings || {}; + delete V.SecExp.settings.show; delete V.SecExp.army; diff --git a/src/Mods/SpecialForce/SpecialForce.js b/src/Mods/SpecialForce/SpecialForce.js index b6568e5b02b..205e8ee1df8 100644 --- a/src/Mods/SpecialForce/SpecialForce.js +++ b/src/Mods/SpecialForce/SpecialForce.js @@ -351,7 +351,6 @@ App.SF.BC = function() { TradeShowClean(); UnitsClean(); delete V.SF.Subsidy; - delete V.SecExp.settings.show; if (jsDef(V.SF.UC)) { delete V.SF.UC.num; } -- GitLab