mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-11-03 09:28:58 +00:00
🚀 hide badges and no sell items from selling in store
This commit is contained in:
parent
021f8161c8
commit
e390ca6869
1 changed files with 6 additions and 2 deletions
|
|
@ -214,10 +214,14 @@ const PokeMart = () => {
|
|||
close={() => setStage(0)}
|
||||
disabled={startMenuOpen || !!sellData}
|
||||
menuItems={inventory
|
||||
.filter((item: InventoryItemType) => item.amount > 0)
|
||||
.filter(
|
||||
(item: InventoryItemType) =>
|
||||
item.amount > 0 &&
|
||||
!itemData[item.item].badge &&
|
||||
!!itemData[item.item].sellPrice
|
||||
)
|
||||
.map((item: InventoryItemType) => {
|
||||
const data = itemData[item.item];
|
||||
if (!data.cost) throw new Error("No cost");
|
||||
return {
|
||||
label: data.name.toUpperCase(),
|
||||
action: () => sell(item.item),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue