update
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../game/enums.dart';
|
||||
import '../game/config/theme_config.dart';
|
||||
|
||||
class ItemUtils {
|
||||
static Color getRarityColor(ItemRarity rarity) {
|
||||
switch (rarity) {
|
||||
case ItemRarity.magic:
|
||||
return ThemeConfig.rarityMagic;
|
||||
case ItemRarity.rare:
|
||||
return ThemeConfig.rarityRare;
|
||||
case ItemRarity.legendary:
|
||||
return ThemeConfig.rarityLegendary;
|
||||
case ItemRarity.unique:
|
||||
return ThemeConfig.rarityUnique;
|
||||
}
|
||||
}
|
||||
|
||||
static IconData getIcon(EquipmentSlot slot) {
|
||||
switch (slot) {
|
||||
case EquipmentSlot.weapon:
|
||||
|
||||
Reference in New Issue
Block a user