diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 5a4ff3ec780993c73d671c216579401cff8a6bf4..03c7e54dd811e5b53697122134efaf339b2d5506 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -33664,7 +33664,9 @@ window.SlaveDatatypeCleanup = function SlaveDatatypeCleanup (slave) { } slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; - slave.areolaeShape = "" + slave.areolaeShape || "circle"; + if (typeof slave.areolaeShape !== "string") { + slave.areolaeShape = "circle"; + } if (typeof slave.boobsTat !== "string") { slave.boobsTat = 0; } diff --git a/src/js/datatypeCleanupJS.tw b/src/js/datatypeCleanupJS.tw index aa49e6b8ba4183401cc9bb296f109262e63dee1a..018f5961bc776c830982009c5220cb7ad5915de7 100644 --- a/src/js/datatypeCleanupJS.tw +++ b/src/js/datatypeCleanupJS.tw @@ -221,7 +221,9 @@ window.SlaveDatatypeCleanup = function SlaveDatatypeCleanup (slave) { } slave.areolae = Math.clamp(+slave.areolae, 0, 3) || 0; slave.areolaePiercing = Math.clamp(+slave.areolaePiercing, 0, 2) || 0; - slave.areolaeShape = "" + slave.areolaeShape || "circle"; + if (typeof slave.areolaeShape !== "string") { + slave.areolaeShape = "circle"; + } if (typeof slave.boobsTat !== "string") { slave.boobsTat = 0; }