From 37f5508270f3bd84c4dffb34d6eff6d485ff5e14 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 20 Dec 2020 17:16:06 -0500 Subject: [PATCH] fix every --- src/facilities/wardrobe/wardrobeShopping.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/facilities/wardrobe/wardrobeShopping.js b/src/facilities/wardrobe/wardrobeShopping.js index 61ea7a32555..7e5254f24ad 100644 --- a/src/facilities/wardrobe/wardrobeShopping.js +++ b/src/facilities/wardrobe/wardrobeShopping.js @@ -7,9 +7,14 @@ App.UI.WardrobeShopping = function() { let r = []; r.push(`The room containing all the clothes and accessories you have available to dress your slaves in, as well as the supplies and tools your tailor needs to resize them to better fit your slaves. Several mirrors are set up for a slave to try on outfits should they be allowed to dress themselves. The selection includes`); - const ownItAll = ( - App.Data.clothes.every((i) => isItemAccessible.entry(i.value, "clothing")) - ); + let ownItAll = true; + for (const [key, value] of App.Data.clothes) { + if(isItemAccessible.entry(key, "clothing")) { + ownItAll = false; + break; + } + } + if (ownItAll) { r.push(`outfits from all manner of cultures and societies; not a single style eludes you.`); } else { -- GitLab