Beispiel #1
0
 protected EquipmentItem(int id, int nameId, int level, Sprites sprite, TypeOfItemRarity rarity, int descriptionId, int modelId, MaterialOfEquipment material, PartOfEquipment part, int count = 1) : base(id, nameId, level, sprite, rarity, descriptionId, ClassOfItem.Equipment, count, -1)
 {
     EquipmentPart         = part;
     Material              = material;
     ModelID               = modelId;
     price                 = price + getPriceByMaterial(material) + getPriceByPartOfEquipment(part);
     CurrentCharacteristic = Characteristic.CreateEmpty();
     MaterialName          = Localization.Current.EquipmentMaterialNames[( int )material];
     EquipmentPartName     = Localization.Current.EquipmentPartNames[( int )part];
 }
Beispiel #2
0
        protected static int getPriceByMaterial(MaterialOfEquipment material)
        {
            switch (material)
            {
            case MaterialOfEquipment.PlateArmour:     // Лати
                return(12);

            case MaterialOfEquipment.Hauberk:     // Кольчуга
                return(9);

            case MaterialOfEquipment.Leather:     // Шкіра
                return(4);

            case MaterialOfEquipment.Cloth:     // Тканина
                return(2);
            }
            return(1); // Різне
        }
Beispiel #3
0
 public HeadEquipment(int id, int nameId, int level, Sprites sprite, TypeOfItemRarity rarity, int modelId, MaterialOfEquipment material, int count = 1) : base(id, nameId, level, sprite, rarity, 19, modelId, material, PartOfEquipment.Head, count)
 {
 }
Beispiel #4
0
 public ShouldersEquipment(int id, int nameId, int level, Sprites sprite, TypeOfItemRarity rarity, int modelId, MaterialOfEquipment material, int count = 1) : base(id, nameId, level, sprite, rarity, 22, modelId, material, PartOfEquipment.Shoulders, count)
 {
 }