update
This commit is contained in:
@@ -32,4 +32,19 @@ class ItemUtils {
|
||||
return 'assets/images/icons/potions/potion_blue.png';
|
||||
}
|
||||
}
|
||||
|
||||
static String getBorderPath(ItemRarity rarity) {
|
||||
switch (rarity) {
|
||||
case ItemRarity.normal:
|
||||
return 'assets/images/icons/borders/border_000.png';
|
||||
case ItemRarity.magic:
|
||||
return 'assets/images/icons/borders/border_001.png';
|
||||
case ItemRarity.rare:
|
||||
return 'assets/images/icons/borders/border_004.png';
|
||||
case ItemRarity.legendary:
|
||||
return 'assets/images/icons/borders/border_005.png';
|
||||
case ItemRarity.unique:
|
||||
return 'assets/images/icons/borders/border_014.png';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user