From ab42921047f41122484cf989ad225ef19624a7ac Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Tue, 18 Feb 2020 12:09:15 -0500 Subject: [PATCH] fix --- src/js/wardrobeUse.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/wardrobeUse.js b/src/js/wardrobeUse.js index caa1f017c83..d99b89235f6 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); -- GitLab