Example #1
0
        private void BuildArmor(WorldObject wo)
        {
            ArmorProfile   = new ArmorProfile(wo);
            ArmorHighlight = ArmorMaskHelper.GetHighlightMask(wo);
            ArmorColor     = ArmorMaskHelper.GetColorMask(wo);

            AddSpells(SpellBook, wo);
        }
Example #2
0
        public void BuildArmor(WorldObject wo, WorldObject wielder)
        {
            ArmorProfile   = new ArmorProfile(wo, wielder);
            ArmorHighlight = ArmorMaskHelper.GetHighlightMask(wo, wielder);
            ArmorColor     = ArmorMaskHelper.GetColorMask(wo, wielder);

            // item enchantments can also be on wielder currently
            AddSpells(SpellBook, wielder);
        }
Example #3
0
 /// <summary>
 /// Writes the ArmorProfile to the network stream
 /// </summary>
 public static void Write(this BinaryWriter writer, ArmorProfile profile)
 {
     writer.Write(profile.SlashingProtection);
     writer.Write(profile.PiercingProtection);
     writer.Write(profile.BludgeoningProtection);
     writer.Write(profile.ColdProtection);
     writer.Write(profile.FireProtection);
     writer.Write(profile.AcidProtection);
     writer.Write(profile.NetherProtection);
     writer.Write(profile.LightningProtection);
 }
Example #4
0
        private void BuildArmor(WorldObject wo)
        {
            if (!Success)
            {
                return;
            }

            ArmorProfile   = new ArmorProfile(wo);
            ArmorHighlight = ArmorMaskHelper.GetHighlightMask(wo);
            ArmorColor     = ArmorMaskHelper.GetColorMask(wo);

            AddEnchantments(wo);
        }