feat: off-sale price items in avatar sandbox
thanks Alyx for fixing the store API
This commit is contained in:
parent
66451aa9cc
commit
48975f06c5
1 changed files with 4 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue