Ejemplo n.º 1
0
 public void MakeHammerPick(Mobile from)
 {
     HammerPick weapon = new HammerPick();
     weapon.NewCrafting = true;
     weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
     weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
     weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
     weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
     weapon.Resource = m_Hilt.Resource;
     int quality = (int)(m_Blade.Durability * 0.2 + m_Hilt.Durability * 0.8);
     weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
     weapon.Crafter = from;
     weapon.CraftersOriginalName = from.Name;
     quality = (int)(m_Blade.Quality * 0.8 + m_Hilt.Quality * 0.2);
     if (quality == 500)
         weapon.Quality = WeaponQuality.Legendary;
     if (quality < 500)
         weapon.Quality = WeaponQuality.Masterwork;
     if (quality < 450)
         weapon.Quality = WeaponQuality.Illustrious;
     if (quality < 400)
         weapon.Quality = WeaponQuality.Extraordinary;
     if (quality < 350)
         weapon.Quality = WeaponQuality.Remarkable;
     if (quality < 300)
         weapon.Quality = WeaponQuality.Exceptional;
     if (quality < 250)
         weapon.Quality = WeaponQuality.Superior;
     if (quality < 200)
         weapon.Quality = WeaponQuality.Regular;
     if (quality < 150)
         weapon.Quality = WeaponQuality.Inferior;
     if (quality < 100)
         weapon.Quality = WeaponQuality.Low;
     if (quality < 50)
         weapon.Quality = WeaponQuality.Poor;
     weapon.BetaNerf = true;
     weapon.InvalidateProperties();
     from.AddToBackpack(weapon);
     weapon.AddItem(m_Blade);
     weapon.AddItem(m_Hilt);
 }