Пример #1
0
    public static WeaponInfo copyMe(WeaponInfo copy)
    {
        WeaponInfo temp = new WeaponInfo();

        temp.ID               = copy.ID;
        temp.Beauty           = copy.Beauty;
        temp.SellPrice        = copy.SellPrice;
        temp.BasePrice        = copy.BasePrice;
        temp.CurrentDurablity = copy.CurrentDurablity;
        temp.Damage           = copy.Damage;
        temp.Damagetype       = copy.Damagetype;
        temp.QualityNum       = copy.QualityNum;
        foreach (WeaponEnchantInfo tempo in copy.Enchants)
        {
            WeaponEnchantInfo tempy = new WeaponEnchantInfo();
            tempy.DamageMod      = tempo.DamageMod;
            tempy.Damagetype     = tempo.Damagetype;
            tempy.DurMod         = tempo.DurMod;
            tempy.HeroLevelreq   = tempo.HeroLevelreq;
            tempy.Name           = tempo.Name;
            tempy.Rangemod       = tempo.Rangemod;
            tempy.Weightmod      = tempo.Weightmod;
            tempy.Wizardlevelreq = tempo.Wizardlevelreq;
            temp.Enchants.Add(tempy);
        }
        //temp.MatType = MatInfo.copyMe( copy.MatType);
        temp.MaxDurablity = copy.MaxDurablity;
        temp.Name         = copy.Name;
        temp.OneHanded    = copy.OneHanded;
        temp.Quality      = copy.Quality;
        temp.Range        = copy.Range;
        temp.Weight       = copy.Weight;
        temp.MyBaseinfo   = WeapArmorBaseInfo.Copyme(copy.MyBaseinfo);
        return(temp);
    }
Пример #2
0
    public static WeapArmorBaseInfo Copyme(WeapArmorBaseInfo copy)
    {
        WeapArmorBaseInfo temp = new WeapArmorBaseInfo();

        temp.BaseBeauty    = copy.BaseBeauty;
        temp.name          = copy.name;
        temp.BaseDamage    = copy.BaseDamage;
        temp.BaseDurablity = copy.BaseDurablity;
        temp.BaseRange     = copy.BaseRange;
        temp.BaseDefense   = copy.BaseDefense;
        foreach (Partinfo temper in copy.Parts)
        {
            Partinfo tempy = new Partinfo();
            tempy.Mat           = MatInfo.copyMe(temper.Mat);
            tempy.Name          = temper.Name;
            tempy.DamagePercent = temper.DamagePercent;
            tempy.DefPercent    = temper.DefPercent;
            tempy.DurPercent    = temper.DurPercent;
            tempy.WeightPercent = temper.WeightPercent;
            tempy.PricePercent  = temper.PricePercent;

            temp.Parts.Add(tempy);
        }
        temp.BaseWeight         = copy.BaseWeight;
        temp.Onehand            = copy.Onehand;
        temp.CostToCraftPerSlot = copy.CostToCraftPerSlot;
        temp.TimeToCraft        = copy.TimeToCraft;
        temp.Price = copy.Price;
        return(temp);
    }
Пример #3
0
 public ArmorInfo()
 {
     Damagereduc      = 0;
     CurrentDurablity = 0;
     MaxDurablity     = 0;
     SellPrice        = 0;
     BasePrice        = 0;
     Weight           = 0;
     Name             = "";
     Quality          = "";
     Enchants         = new List <ArmorEnchantinfo> ();
     MyBaseinfo       = new WeapArmorBaseInfo();
     Beauty           = 0;
     QualityNum       = 0;
     Size             = "";
     Location         = "";
 }
Пример #4
0
 public ArmorInfo(int Damgre, int curdur, int maxdur, int weight, string Nam, string Qual, int QualNum, WeapArmorBaseInfo Base, int Sellprice, int Baseprice, int beaut, string si, string loc, int IDS)
 {
     Beauty           = beaut;
     Damagereduc      = Damgre;
     CurrentDurablity = curdur;
     MaxDurablity     = maxdur;
     SellPrice        = Sellprice;
     BasePrice        = Baseprice;
     Weight           = weight;
     Name             = Nam;
     Quality          = Qual;
     QualityNum       = QualNum;
     Enchants         = new List <ArmorEnchantinfo>();
     MyBaseinfo       = WeapArmorBaseInfo.Copyme(Base);
     Size             = si;
     Location         = loc;
     ID = IDS;
 }
Пример #5
0
 public WeaponInfo(int Dam, int MaxDur, int CurDur, int Weigh, int RAng, string DamgTyp, string Namey, bool Onehan, string Qual, int qualNum, WeapArmorBaseInfo MyBase, int Sellprice, int Baseprice, int beauty, int IDS)
 {
     Beauty           = beauty;
     Damage           = Dam;
     CurrentDurablity = CurDur;
     MaxDurablity     = MaxDur;
     SellPrice        = Sellprice;
     BasePrice        = Baseprice;
     Weight           = Weigh;
     Range            = RAng;
     Damagetype       = DamgTyp;
     Name             = Namey;
     OneHanded        = Onehan;
     Quality          = Qual;
     Enchants         = new List <WeaponEnchantInfo> ();
     MyBaseinfo       = WeapArmorBaseInfo.Copyme(MyBase);
     QualityNum       = qualNum;
     ID = IDS;
 }
Пример #6
0
 public WeaponInfo()
 {
     ID               = -1;
     Damage           = 0;
     CurrentDurablity = 0;
     MaxDurablity     = 0;
     SellPrice        = 0;
     BasePrice        = 0;
     Weight           = 0;
     Range            = 0;
     Damagetype       = "";
     Name             = "";
     OneHanded        = true;
     Quality          = "";
     Beauty           = 0;
     Enchants         = new List <WeaponEnchantInfo> ();
     MyBaseinfo       = new WeapArmorBaseInfo();
     QualityNum       = 0;
 }
Пример #7
0
    public static ArmorInfo CopyMe(ArmorInfo copy)
    {
        ArmorInfo temp = new ArmorInfo();

        temp.Beauty           = copy.Beauty;
        temp.Damagereduc      = copy.Damagereduc;
        temp.CurrentDurablity = copy.CurrentDurablity;
        temp.Enchants         = copy.Enchants;
        temp.BasePrice        = copy.BasePrice;
        temp.SellPrice        = copy.SellPrice;
        temp.MaxDurablity     = copy.MaxDurablity;
        temp.MyBaseinfo       = WeapArmorBaseInfo.Copyme(copy.MyBaseinfo);
        temp.Name             = copy.Name;
        temp.Quality          = copy.Quality;
        temp.Weight           = copy.Weight;
        temp.QualityNum       = copy.QualityNum;
        temp.Size             = copy.Size;
        temp.Location         = copy.Location;
        temp.ID = copy.ID;
        return(temp);
    }