public static bool IsMatchWith(this ItemColor colorA, ItemColor colorB) { if (!colorA.IsMatchableColor() || !colorB.IsMatchableColor()) { return(false); } if (colorA == colorB) { return(true); } if (colorA.IsUniversalColor() || colorB.IsUniversalColor()) { return(true); } return(false); }
public static bool IsMatchableColor(this ItemColor color) { return(color.IsPhysicalColor() || color.IsUniversalColor()); }