Skip to content

Commit

Permalink
feat: add Dreamland event and DLC rarity
Browse files Browse the repository at this point in the history
  • Loading branch information
GiyoMoon committed Sep 30, 2024
1 parent 5638cd0 commit d9819aa
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/items/ItemDetailDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const ItemDetailDialog: FunctionComponent<Props> = ({
<Divider />
</div>
<div className='flex flex-wrap justify-center'>
<Chip title='ID' text={item.id.toString()} />
{(item.tradeable && <Chip title='Tradable' text='Yes' />) || (
<Chip title='Tradable' text='No' />
)}
Expand Down
Binary file added public/assets/images/eventIcons/dreamland.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/svgs/rarity_circles/dlc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions shared/static/filterValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ export const itemEventValues: DropdownValue[] = [
displayName: 'Witch Forest',
imagePath: '/assets/images/eventIcons/witchforest.png',
},
{
id: 23,
key: 'dreamland',
displayName: 'Dreamland',
imagePath: '/assets/images/eventIcons/dreamland.png',
},
]

export const itemRarityValues: DropdownValue[] = [
Expand Down Expand Up @@ -383,6 +389,12 @@ export const itemRarityValues: DropdownValue[] = [
displayName: 'Promo',
imagePath: '/assets/svgs/rarity_circles/promo.svg',
},
{
id: 9,
key: 'dlc',
displayName: 'DLC',
imagePath: '/assets/svgs/rarity_circles/dlc.svg',
},
]

export const tradeableItemRarityValues: DropdownValue[] = [
Expand Down
10 changes: 10 additions & 0 deletions shared/static/searchFilterValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ export const itemEventValues: DropdownValue[] = [
displayName: 'Witch Forest',
imagePath: '/assets/images/eventIcons/witchforest.png',
},
{
key: 'dreamland',
displayName: 'Dreamland',
imagePath: '/assets/images/eventIcons/dreamland.png',
},
]

export const itemRarityValues: DropdownValue[] = [
Expand Down Expand Up @@ -246,6 +251,11 @@ export const itemRarityValues: DropdownValue[] = [
displayName: 'Promo',
imagePath: '/assets/svgs/rarity_circles/promo.svg',
},
{
key: 'dlc',
displayName: 'DLC',
imagePath: '/assets/svgs/rarity_circles/dlc.svg',
},
]

export const tradeableItemRarityValues: DropdownValue[] = [
Expand Down
3 changes: 3 additions & 0 deletions shared/stores/items/items.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export function itemRarityToColor(rarity: string) {
return '#FF00EA'
case 'promo':
return '#00E4FF'
case 'dlc':
return '#FFA500'
default:
return ''
}
Expand All @@ -51,5 +53,6 @@ export function getItemRarities(): string[] {
'veryrare',
'whimsical',
'promo',
'dlc',
]
}

0 comments on commit d9819aa

Please sign in to comment.