mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 13:10:28 -04:00
Only show items that haven't been bought
This commit is contained in:
parent
b67e8db996
commit
496490306e
1 changed files with 2 additions and 0 deletions
|
@ -1006,6 +1006,8 @@ Select a number from the list below to purchase an item:
|
|||
|
||||
`
|
||||
let deals = findItemShopDeals(state.itemShopCategoryName, false)
|
||||
deals = deals.filter(item => !item.bought)
|
||||
|
||||
if (deals.length == 0) text += "There are no items left for sale!\n"
|
||||
for (var i = 0; i < deals.length; i++) {
|
||||
let itemStoryCard = findItemCard(deals[i].name, deals[i].storyCardName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue