diff --git a/src/data/backwardsCompatibility/datatypeCleanup.js b/src/data/backwardsCompatibility/datatypeCleanup.js index 3394f4df8f054861712b1ba225ee962b8e37e740..60a17047a0e5579de773a24678db928f63fc925a 100644 --- a/src/data/backwardsCompatibility/datatypeCleanup.js +++ b/src/data/backwardsCompatibility/datatypeCleanup.js @@ -1049,7 +1049,9 @@ globalThis.SlaveDatatypeCleanup = (function SlaveDatatypeCleanup() { slave.choosesOwnChastity = Math.clamp(+slave.choosesOwnChastity, 0, 1) || 0; slave.breedingMark = Math.clamp(+slave.breedingMark, 0, 1) || 0; slave.rudeTitle = Math.clamp(+slave.rudeTitle, 0, 1) || 0; - slave.mobilityAid = Math.clamp(+slave.mobilityAid, 0, 1) || 0; + if (typeof slave.rules.mobility !== "string") { + slave.rules.mobility = "restrictive"; + } } /** diff --git a/src/js/SlaveState.js b/src/js/SlaveState.js index 43a8a59e4d459a752bf1fa5eb0d1d2bef5d84fad..92f35f702d2f61f60101b8c11ff2fd131ffaa698 100644 --- a/src/js/SlaveState.js +++ b/src/js/SlaveState.js @@ -44,6 +44,12 @@ App.Entity.RuleState = class RuleState { * * "mandatory" */ this.rest = "restrictive"; + /** + * Is the slave allowed to use mobility aids + * * "restrictive" + * * "permissive" + */ + this.mobility = "restrictive"; /** * * "restrictive" * * "permissive" @@ -1917,12 +1923,6 @@ App.Entity.SlaveState = class SlaveState { * * "cow tail" */ this.buttplugAttachment = "none"; - /** - * Is the slave allowed to use mobility aids - * * 0: no - * * 1: yes - */ - this.mobilityAid = 0; /** * slave intelligence * * -100 - -96: borderline retarded diff --git a/src/player/js/enslavePlayer.js b/src/player/js/enslavePlayer.js index b995e6412f2e575f1ff9584ac3b3b8cd7020f024..1632de4b3f9b283566e26f2419ea085b65a9b1f8 100644 --- a/src/player/js/enslavePlayer.js +++ b/src/player/js/enslavePlayer.js @@ -89,6 +89,7 @@ globalThis.convertPlayerToSlave = function(slave, badEnd = "boring") { slave.currentRules = []; slave.HGExclude = 0; slave.choosesOwnChastity = 0; + slave.mobilityAid = "restrictive"; slave.pregControl = "none"; slave.readyProsthetics = []; slave.death = "";