diff --git a/js/003-data/slaveWearData.js b/js/003-data/slaveWearData.js index acce98a8329fa781d6d392059ee753aa1f261429..ee5f17b6f40c2bd78e4fb0360f5554ebc3d9450c 100644 --- a/js/003-data/slaveWearData.js +++ b/js/003-data/slaveWearData.js @@ -828,7 +828,7 @@ App.Data.clothes = new Map([ */ /** - * @typedef {Map<string, slaveWear|slaveWearChastity>} slaveWearCategory + * @typedef {Map<string, slaveWear>} slaveWearCategory */ /** @type {Object.<string, slaveWearCategory>} */ @@ -1267,13 +1267,12 @@ App.Data.buttplugs = new Map([ /** * @typedef {object} slaveWearChastity * @property {string} name - * @property {string} value * @property {object} updateSlave * @property {FC.FutureSociety} [fs] */ /** @type {Map<string, slaveWearChastity>} */ -App.Data.slaveWear.chastityDevices = new Map([ +App.Data.chastityDevices = new Map([ // '.value' must be a string, so using update slave so I can update multiple values. ["none", { diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js index 6db2efd28da4339f90816a23490cfeb35002f723..5ce522bbb185278210505758ef579ba8574118ff 100644 --- a/src/interaction/siWardrobe.js +++ b/src/interaction/siWardrobe.js @@ -7,7 +7,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) { let filters = {}; const el = document.createElement("span"); el.id = "content"; - el.append(contents()) + el.append(contents()); return el; @@ -34,7 +34,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) { App.UI.DOM.appendNewElement("h3", frag, `Shopping`); frag.append(shopping()); - + return frag; } @@ -756,7 +756,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) { let optionsArray = []; - for (const [key, object] of App.Data.slaveWear.chastityDevices) { + for (const [key, object] of App.Data.chastityDevices) { if (key === "none") { // skip none in set, we set the link elsewhere. continue; diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index 3721d2bf853d8c39bb4ea85fc3bd070776488a5e..d8975c4fcb1d77997979d22ff243bb5cce4960ca 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -46,7 +46,7 @@ globalThis.isItemAccessible = (function() { selectedDB = App.Data.shoes; break; case "chastity": - selectedDB = App.Data.slaveWear.chastityDevices; + selectedDB = App.Data.chastityDevices; break; default: // console.log(`made a category for ${category} automatically, may need to define this by hand`);