diff --git a/src/002-config/fc-version.js b/src/002-config/fc-version.js index 5e322c743b7c1ed3499e6d0791b1d98647f9af49..86917d4b34807cea99329f3261a336f25142af07 100644 --- a/src/002-config/fc-version.js +++ b/src/002-config/fc-version.js @@ -2,5 +2,5 @@ App.Version = { base: "0.10.7.1", // The vanilla version the mod is based off of, this should never be changed. pmod: "4.0.0-alpha.23", commitHash: null, - release: 1186, // When getting close to 2000, please remove the check located within the onLoad() function defined at line five of src/js/eventHandlers.js. + release: 1187, // When getting close to 2000, please remove the check located within the onLoad() function defined at line five of src/js/eventHandlers.js. }; diff --git a/src/data/backwardsCompatibility/pitBC.js b/src/data/backwardsCompatibility/pitBC.js index 855ab34c0182ebce843cb6f73217b2bc05b3bda6..c6303e044a4b96987a78935695d36c7a2079e7c9 100644 --- a/src/data/backwardsCompatibility/pitBC.js +++ b/src/data/backwardsCompatibility/pitBC.js @@ -6,7 +6,7 @@ App.Facilities.Pit.BC = function() { } if (V.pit) { - if (V.releaseID <= 1185) { // TODO + if (V.releaseID < 1186) { V.pit.name = V.pit.name || V.pitName || "the Pit"; V.pit.virginities = V.pit.virginities || V.pitVirginities || "neither"; @@ -49,6 +49,20 @@ App.Facilities.Pit.BC = function() { delete V.pit.animal; delete V.pit.bodyguardFights; delete V.pit.slaveFightingAnimal; + + if (V.pit.virginities === "neither") { + V.pit.virginities = "none"; + } + + V.pit.active = V.pit.active || false; + V.pit.fightsBase = V.pit.fightsBase || 0; + V.pit.seats = V.pit.seats || 0; + if (V.pit.minimumHealth !== true && V.pit.minimumHealth !== false) { + V.pit.minimumHealth = true; + } + if (V.pit.slavesFighting !== null && V.pit.slavesFighting.length !== 2) { + V.pit.slavesFighting = null; + } } if (V.pit && V.pit.trainingIDs) {