diff --git a/src/js/wardrobeUse.js b/src/js/wardrobeUse.js index caa1f017c833323f758ea6a7fa3af5c9479d84bb..d99b89235f67a539b653634753ee1820eaafc5dc 100644 --- a/src/js/wardrobeUse.js +++ b/src/js/wardrobeUse.js @@ -302,7 +302,7 @@ App.UI.Wardrobe.bellyAccessory = function(slave) { let choiceOptionsArray= []; choiceOptionsArray.push({text: `None`, updateSlave: {bellyAccessory: `none`}}); - let optionsArray= []; + let optionsArray = []; let clothingOption; App.Data.misc.bellyAccessories.forEach(item => { @@ -313,15 +313,15 @@ App.UI.Wardrobe.bellyAccessory = function(slave) { if (item.fs) { clothingOption.FS = item.fs; } - if (item.value !== "none") { - optionsArray.push(clothingOption); - } if (item.name.endsWith("belly") && (slave.belly >= 1500 && slave.weight >= 130)) { clothingOption.disabled = `${His} stomach is too big to fit an empathy belly around.`; } else if (item.name === "a support band" && slave.belly <= 10000) { clothingOption.disabled = `${His} stomach is too small to need this.`; } - + if (item.value !== "none") { + optionsArray.push(clothingOption); + } + }); // Sort optionsArray = optionsArray.sort((a, b) => (a.text > b.text) ? 1 : -1);