feat: off-sale price items in avatar sandbox

thanks Alyx for fixing the store API
This commit is contained in:
Index 2024-07-20 13:10:34 -05:00
parent 66451aa9cc
commit 48975f06c5

View file

@ -602,6 +602,10 @@ async function LoadItems() {
document.getElementById('inventory').classList.add('itemgrid')
if (TabSelected !== 'outfit') {
Items.assets.forEach(item => {
if (item.price === null) {
item.price = false
}
const ItemColumn = document.createElement('div')
ItemColumn.classList = 'col-auto'
ItemColumn.innerHTML = `
@ -643,14 +647,6 @@ async function LoadItems() {
asset: undefined
}
if (item.price === 0) {
if (item.sales === 0) {
ItemCache[item.id].price = null
} else {
ItemCache[item.id].price = 0
}
}
if (item.type === 'hat') {
ItemCache[item.id].accessoryType = item.accessoryType
}