diff --git a/src/data/backwardsCompatibility/updateSlaveObject.js b/src/data/backwardsCompatibility/updateSlaveObject.js index 719ac1ebaf3ded47f36dbe4374837cb9f23196c1..ec551c5664c60d3d97f017e63c73ef9bd940d2a9 100644 --- a/src/data/backwardsCompatibility/updateSlaveObject.js +++ b/src/data/backwardsCompatibility/updateSlaveObject.js @@ -930,4 +930,8 @@ App.Update.Slave = function(slave) { slave.chastityVagina = 0; } } + + if (slave.rules !== undefined && slave.rules.rest === undefined) { + slave.rules.rest = "restrictive"; + } }; diff --git a/src/js/SlaveState.js b/src/js/SlaveState.js index f7e926c6d499acc3c257ce4330e145d1fb8c76c5..60bc2997ec8401ce49a3a0b818449c784b084b0e 100644 --- a/src/js/SlaveState.js +++ b/src/js/SlaveState.js @@ -36,6 +36,13 @@ App.Entity.RuleState = class RuleState { * * "luxurious" */ this.living = "spare"; + /** + * * "none" + * * "restrictive" + * * "permissive" + * * "mandatory" + */ + this.rest = "restrictive"; /** * * "restrictive" * * "permissive" diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index 6660be9704146b0f034fc9e413b34e360ba92a90..cd6f66f96a9c9e63d118c45ddaa730b0e7336c64 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -1711,6 +1711,9 @@ window.PCDatatypeCleanup = function PCDatatypeCleanup() { if (typeof PC.rules.lactation !== "string") { PC.rules.lactation = "none"; } + if (typeof PC.rules.rest !== "string") { + PC.rules.rest = "permissive"; + } App.Entity.Utils.migratePronouns(PC); generatePlayerPronouns(PC); diff --git a/src/player/js/PlayerState.js b/src/player/js/PlayerState.js index 578511a999b7a49ad2853cea82d0114a5b230c50..6fd1837d6a85d938d6f64a945fbcac1fc98ebb79 100644 --- a/src/player/js/PlayerState.js +++ b/src/player/js/PlayerState.js @@ -62,6 +62,7 @@ App.Entity.PlayerRulesState = class { * * "luxurious" */ this.living = "luxurious"; + this.rest = "permissive"; this.speech = "permissive"; this.release = new App.Entity.PlayerReleaseRulesState(); this.relationship = "permissive";