Removed NotSet from ItemRarity enum
This commit is contained in:
parent
4052d6e020
commit
79274df0fb
|
@ -4,8 +4,6 @@ namespace Filtration.ObjectModel.Enums
|
||||||
{
|
{
|
||||||
public enum ItemRarity
|
public enum ItemRarity
|
||||||
{
|
{
|
||||||
[Description("Not Set")]
|
|
||||||
NotSet,
|
|
||||||
[Description("Normal")]
|
[Description("Normal")]
|
||||||
Normal,
|
Normal,
|
||||||
[Description("Magic")]
|
[Description("Magic")]
|
||||||
|
|
|
@ -26,14 +26,11 @@ namespace Filtration.ObjectModel.Extensions
|
||||||
{
|
{
|
||||||
return PathOfExileNamedColors.Colors[PathOfExileNamedColor.UniqueItem];
|
return PathOfExileNamedColors.Colors[PathOfExileNamedColor.UniqueItem];
|
||||||
}
|
}
|
||||||
case ItemRarity.NotSet:
|
|
||||||
{
|
|
||||||
return PathOfExileNamedColors.Colors[PathOfExileNamedColor.QuestItem];
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
{
|
||||||
throw new ArgumentOutOfRangeException(nameof(itemRarity), itemRarity, null);
|
throw new ArgumentOutOfRangeException(nameof(itemRarity), itemRarity, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -121,10 +121,8 @@ namespace Filtration.ObjectModel
|
||||||
return PathOfExileNamedColors.Colors[PathOfExileNamedColor.QuestItem];
|
return PathOfExileNamedColors.Colors[PathOfExileNamedColor.QuestItem];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ItemRarity != ItemRarity.NotSet ? ItemRarity.DefaultRarityTextColor() : PathOfExileNamedColors.Colors[PathOfExileNamedColor.WhiteItem];
|
return ItemRarity.DefaultRarityTextColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue