Hollowfied121
New Member
- Jun 14, 2021
- 12
- 9
- 36
if anyone wants to have the shop remove purchased items instead of displaying all just update this function:
Original:
Updated:
Original:
Code:
clothesEv.getClothesList = function(type, subtype) {
let ret = [];
for(let item of clothes[type]) {
if(!item.nude && item.cost >0) {
if(!subtype || subtype === item.subtype) {
ret.push(clothesEv.getClothe(item.type, item.id));
}
}
}
return ret;
};
Code:
clothesEv.getClothesList = function(type, subtype) {
let ret = [];
for(let item of clothes[type]) {
if(!item.nude && item.cost >0) {
if((!subtype || subtype === item.subtype) && dressersEv.hasItem(item.type, item.id) === false) {
ret.push(clothesEv.getClothe(item.type, item.id));
}
}
}
return ret;
};