From 4950dd87e4ece75abc55d65985d604364b9ef926 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 1 Mar 2020 14:29:26 -0500 Subject: [PATCH] run oldest first --- src/js/backwardsCompatibility.js | 53 +++++++++++++++----------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/src/js/backwardsCompatibility.js b/src/js/backwardsCompatibility.js index f9f67a0394e..50bb891d604 100644 --- a/src/js/backwardsCompatibility.js +++ b/src/js/backwardsCompatibility.js @@ -3772,14 +3772,16 @@ window.backwardsCompatibility = (function() { function oldVersions() { r = ""; - if (V.releaseID < 1055) { - if (V.disableLisping === 0) { - V.disableLisping = 1; - } else { - V.disableLisping = 0; - } + if (V.releaseID < 1043) { + V.defaultRules.forEach((_rule) => { + if (_rule.condition.excludeSpecialSlaves) { + _rule.condition.specialSlaves = 0; + } else { + _rule.condition.specialSlaves = -1; + } + delete _rule.condition.excludeSpecialSlaves; + }); } - if (V.releaseID === 1043) { V.slaves.forEach(s => { s.skill.whoring = s.skill.whore / 2; }); V.tanks.forEach(s => { s.skill.whoring = s.skill.whore / 2; }); @@ -3791,28 +3793,9 @@ window.backwardsCompatibility = (function() { } }); } - - if (V.releaseID < 1043) { - V.defaultRules.forEach((_rule) => { - if (_rule.condition.excludeSpecialSlaves) { - _rule.condition.specialSlaves = 0; - } else { - _rule.condition.specialSlaves = -1; - } - delete _rule.condition.excludeSpecialSlaves; - }); - } - - if (V.releaseID < 1047) { - if (V.loliGrow > 0) { - V.loliGrow = 1; - } else { - V.loliGrow = 0; - } - } + /* unify cybermod & vanilla */ + /* limbs */ if (V.releaseID < 1045) { - /* unify cybermod & vanilla */ - /* limbs */ if (typeof V.limbs !== "undefined") { V.adjustProsthetics = []; V.limbs.forEach((_l) => { @@ -4025,6 +4008,20 @@ window.backwardsCompatibility = (function() { delete V.SlaveSummaryFiler; } + if (V.releaseID < 1047) { + if (V.loliGrow > 0) { + V.loliGrow = 1; + } else { + V.loliGrow = 0; + } + } + if (V.releaseID < 1055) { + if (V.disableLisping === 0) { + V.disableLisping = 1; + } else { + V.disableLisping = 0; + } + } return r; } -- GitLab