diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index eeb7d700abbbd20c0d9e881b607dc82160bd621f..38238dc5e8fac3f48a230242c4bcebdcc2e5ccf2 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -886,7 +886,7 @@ window.SlaveDatatypeCleanup = (function SlaveDatatypeCleanup() { slave.onDiet = Math.clamp(+slave.onDiet, 0, 1) || 0; slave.hormones = Math.clamp(+slave.hormones, -2, 2) || 0; slave.hormoneBalance = Math.clamp(+slave.hormoneBalance, -400, 400) || 0; - if (typeof slave.drugs !== "string") { + if (typeof slave.drugs !== "string" || slave.drugs === "none") { slave.drugs = "no drugs"; } slave.aphrodisiacs = Math.clamp(+slave.aphrodisiacs, 0, 2) || 0; @@ -1444,7 +1444,7 @@ window.childDietDatatypeCleanup = function childDietDatatypeCleanup(child) { child.onDiet = Math.clamp(+child.onDiet, 0, 1) || 0; child.hormones = Math.clamp(+child.hormones, -2, 2) || 0; child.hormoneBalance = Math.clamp(+child.hormoneBalance, -400, 400) || 0; - if (typeof child.drugs !== "string") { + if (typeof child.drugs !== "string" || slave.drugs === "none") { child.drugs = "no drugs"; } child.aphrodisiacs = Math.clamp(+child.aphrodisiacs, 0, 2) || 0;