mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 18:20:47 +01:00
Add rarities composable and remove unused code
This commit is contained in:
11
composables/useRarities.ts
Normal file
11
composables/useRarities.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function useRarities(value: any) {
|
||||
const rarities: any = {
|
||||
"1": "Rare",
|
||||
"2": "Epic",
|
||||
"3": "Legendary",
|
||||
"4": "Mythic",
|
||||
"5": "Ultimate"
|
||||
};
|
||||
if (Object.hasOwn(rarities, value)) return rarities[value];
|
||||
return "";
|
||||
}
|
||||
Reference in New Issue
Block a user