Пример #1
0
        public static int DefenseLevelNeeded(RuneArmorType toWearArmor)
        {
            switch (toWearArmor)
            {
            case RuneArmorType.Leather:
            case RuneArmorType.Bronze:
            case RuneArmorType.Iron:
                return(1);

            case RuneArmorType.Steel:
                return(5);

            case RuneArmorType.HardLeather:
            case RuneArmorType.StuddedLeather:
                return(10);

            case RuneArmorType.Mithril:
                return(20);

            case RuneArmorType.Adamantite:
                return(30);

            case RuneArmorType.Rune:
            case RuneArmorType.GreenDragonHide:
            case RuneArmorType.BlueDragonHide:
            case RuneArmorType.RedDragonHide:
            case RuneArmorType.BlackDragonHide:
                return(40);

            case RuneArmorType.Dragon:
                return(60);

            default:
                return(1);
            }
        }
Пример #2
0
 public static int DefenseLevelNeeded(RuneArmorType toWearArmor)
 {
     switch (toWearArmor)
     {
         case RuneArmorType.Leather:
         case RuneArmorType.Bronze:
         case RuneArmorType.Iron:
             return 1;
         case RuneArmorType.Steel:
             return 5;
         case RuneArmorType.HardLeather:
         case RuneArmorType.StuddedLeather:
             return 10;
         case RuneArmorType.Mithril:
             return 20;
         case RuneArmorType.Adamantite:
             return 30;
         case RuneArmorType.Rune:
         case RuneArmorType.GreenDragonHide:
         case RuneArmorType.BlueDragonHide:
         case RuneArmorType.RedDragonHide:
         case RuneArmorType.BlackDragonHide:
             return 40;
         case RuneArmorType.Dragon:
             return 60;
         default:
             return 1;
     }
 }