示例#1
0
        public static void DropArmor(BaseCreature bc)
        {
            HorseArmor armor = new HorseArmor();

            armor.Hue           = 0;
            armor.ArmorMaterial = null;
            if (bc.Hue == MaterialInfo.GetMaterialColor("dull copper", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("dull copper", "classic", 0);       armor.ArmorMaterial = "Dull Copper";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("shadow iron", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("shadow iron", "classic", 0);       armor.ArmorMaterial = "Shadow Iron";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("copper", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("copper", "classic", 0);            armor.ArmorMaterial = "Copper";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("bronze", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("bronze", "classic", 0);            armor.ArmorMaterial = "Bronze";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("gold", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("gold", "classic", 0);                      armor.ArmorMaterial = "Gold";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("agapite", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("agapite", "classic", 0);           armor.ArmorMaterial = "Agapite";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("verite", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("verite", "classic", 0);            armor.ArmorMaterial = "Verite";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("valorite", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("valorite", "classic", 0);          armor.ArmorMaterial = "Valorite";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("nepturite", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("nepturite", "classic", 0);         armor.ArmorMaterial = "Nepturite";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("obsidian", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("obsidian", "classic", 0);          armor.ArmorMaterial = "Obsidian";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("steel", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("steel", "classic", 0);             armor.ArmorMaterial = "Steel";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("brass", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("brass", "classic", 0);             armor.ArmorMaterial = "Brass";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("mithril", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("mithril", "classic", 0);           armor.ArmorMaterial = "Mithril";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("xormite", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("xormite", "classic", 0);           armor.ArmorMaterial = "Xormite";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("dwarven", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("dwarven", "classic", 0);           armor.ArmorMaterial = "Dwarven";
            }
            else if (bc.Hue == MaterialInfo.GetMaterialColor("silver", "classic", 0))
            {
                armor.Hue = MaterialInfo.GetMaterialColor("silver", "classic", 0);            armor.ArmorMaterial = "Silver";
            }

            if (armor.ArmorMaterial != null)
            {
                bc.AddItem(armor);
            }
            else
            {
                armor.Delete();
            }
        }
示例#2
0
 public HorseTarget(HorseArmor armor, string metal) : base(8, false, TargetFlags.None)
 {
     m_Horse         = armor;
     m_ArmorMaterial = metal;
 }