Exemplo n.º 1
0
        static public Color GetColor(this EquipmentStats.Durability durability)
        {
            Color res = Color.black;

            switch (durability)
            {
            case EquipmentStats.Durability.DAMAGED:
                res = new Color(133 / 255f, 0, 0);
                break;

            case EquipmentStats.Durability.WORN:
                res = new Color(133 / 255f, 102 / 255f, 0);
                break;

            case EquipmentStats.Durability.NEW:
                res = new Color(0, 110 / 255f, 0);
                break;
            }
            return(res);
        }
Exemplo n.º 2
0
        static public string GetNameLocalise(this EquipmentStats.Durability durability)
        {
            string res = string.Empty;

            switch (durability)
            {
            case EquipmentStats.Durability.DAMAGED:
                res = LocalizedStrings.durability_damaged;
                break;

            case EquipmentStats.Durability.WORN:
                res = LocalizedStrings.durability_worn;
                break;

            case EquipmentStats.Durability.NEW:
                res = LocalizedStrings.durability_new;
                break;

            default:
                res = "ERROR";
                break;
            }
            return(res);
        }