diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index c2b51f0b23553dabb0ccd11eea47641c6788fac9..c00d459196f5e7dc12d9130b077da63a6726e6b3 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -214,12 +214,10 @@ window.isClothingAccessible = function(string) { return false; /* couldn't be found */ } if (!(item.hasOwnProperty("unlock")) && !(item.hasOwnProperty("fs"))) { - console.log(`${string} is free for everyone!`); return true; } if (item.hasOwnProperty("fs")) { if (V.arcologies[0][item.fs] > 0) { - console.log(`${string} is in FS!`); return true; } } @@ -227,10 +225,8 @@ window.isClothingAccessible = function(string) { let keys = Object.keys(item.unlock); for (let key in keys) { if (keys[key] === "continent" && V.continent === item.unlock[keys[key]]) { - console.log(`${string} is in continent!`); return true; } else if (V[keys[key]] > 0 ) { - console.log(`${string} because ${keys[key]} is true for us!`); return true; } } @@ -241,8 +237,6 @@ window.isClothingAccessible = function(string) { } } } - console.log("this sucks, we couldn't get: "); - console.log(item); return false; }; diff --git a/src/js/wardrobeUse.js b/src/js/wardrobeUse.js index 9fa59c1f1f5926e99ef91b3986085897586e4106..cc8ed87bd1aaa8a04e5a0ac25d8fdc686da0ac41 100644 --- a/src/js/wardrobeUse.js +++ b/src/js/wardrobeUse.js @@ -95,7 +95,7 @@ App.UI.Wardrobe.clothes = function(slave) { break; } } - if (isClothingAccessible(array[i].updateSlave.clothes)) { + if (array[i].updateSlave.clothes === `choosing her own clothes` || isClothingAccessible(array[i].updateSlave.clothes)) { // is it just text? if (array[i].disabled) { link = App.UI.DOM.disabledLink(array[i].text, [array[i].disabled]);