diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index f87d705ca864b6fdb8c604b477349882382a3088..4b156f12054d415924e080fc75b24785fe37357c 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -321,6 +321,10 @@ window.isClothingAccessible = (function() { if (V[nestedRequirement] === item.rs.either[nestedRequirement]) { eitherCheck++; } + } else { + if (item.rs.either.nestedRequirement === V.nestedRequirement) { + eitherCheck++; + } } }); } else { @@ -341,10 +345,14 @@ window.isClothingAccessible = (function() { }); if (fail) { return false; + } else { + return true; } } else { // string if (V[item.rs] < 1) { return false; + } else { + return true; } } } diff --git a/src/uncategorized/wardrobe.tw b/src/uncategorized/wardrobe.tw index 53018e6985ecf74b58f965c0469f7759183a3718..d5f0a7e347b9b66ae6b5ef78013f85581e7fc608 100644 --- a/src/uncategorized/wardrobe.tw +++ b/src/uncategorized/wardrobe.tw @@ -147,7 +147,7 @@ The room containing all the clothes and accessories you have available to dress <<= SlaveArt(_model, 1, 0)>> </div> <</if>> -<<if !isClothingAccessible.entry("body oil") === true>> +<<if isClothingAccessible.entry("body oil") !== true>> [[Order a shipment of body oil|Wardrobe][cashX(forceNeg(Math.trunc(7500 * $upgradeMultiplierTrade)), "capEx"), $clothesBoughtOil = 1]] <div class="detail">Costs <<print cashFormat(Math.trunc(7500 * $upgradeMultiplierTrade))>></div> <<else>>