// Some items will never be in App.Data.slaveWear, especially "none" if it falls in between harsh and nice data sets. Trying to look it up would cause an error, which is what access check works around.
letunlocked=false;
if (accessCheck===true){
constitemName=(category==="chastity")?array[i].text.toLowerCase():array[i].updateSlave[category];// Yucky. Category name does not match for chastity (since it sets multiple kinds of chastity at once). Compare using a lowercase name instead.
constitemName=(category==="chastity")?item.text.toLowerCase():item.updateSlave[category];// Yucky. Category name does not match for chastity (since it sets multiple kinds of chastity at once). Compare using a lowercase name instead.