Ejemplo n.º 1
0
    public void WearDown(ArmorType type)
    {
        switch (type)
        {
        case ArmorType.Body:
            if (BodyID != -1)
            {
                Pocket.Add(BodyID);
                ChangeCharacteristicsWithItem(BodyID, 1);
            }
            BodyID = -1;
            break;

        case ArmorType.Hands:
            if (HandsID != -1)
            {
                Pocket.Add(HandsID);
                ChangeCharacteristicsWithItem(HandsID, 1);
            }
            HandsID = -1;
            break;

        case ArmorType.Head:
            if (HeadID != -1)
            {
                Pocket.Add(HeadID);
                ChangeCharacteristicsWithItem(HeadID, 1);
            }
            HeadID = -1;
            break;

        case ArmorType.Legs:
            if (LegsID != -1)
            {
                Pocket.Add(LegsID);
                ChangeCharacteristicsWithItem(LegsID, 1);
            }
            LegsID = -1;
            break;
        }
    }