From ce53e671721ed52255e37956d9a17324c3bfcd34 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Fri, 21 Feb 2020 14:37:09 -0500 Subject: [PATCH] remove isUnlocked entirely --- src/js/itemAvailability.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index 2347815d0ff..cbb74415ff5 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -287,7 +287,7 @@ window.isClothingAccessible = (function() { return array; } function isAvailable(item, category, slave) { - if (!(item.hasOwnProperty("isUnlocked")) && !(item.hasOwnProperty("fs")) && !(item.hasOwnProperty("rs"))) { + if (!(item.hasOwnProperty("fs")) && !(item.hasOwnProperty("rs"))) { // No restriction, this clothing item is available to everyone return true; } @@ -301,9 +301,6 @@ window.isClothingAccessible = (function() { return true; } } - if (item.hasOwnProperty("isUnlocked")) { //Maybe remove - return item.isUnlocked(slave); - } if (slave) { return isAvailableForSlave(item, slave); } @@ -313,9 +310,6 @@ window.isClothingAccessible = (function() { switch (category) { case "clothing": case "clothes": - switch (item.value) { - - } break; case "collar": break; -- GitLab