private void BuildArmor(WorldObject wo) { ArmorProfile = new ArmorProfile(wo); ArmorHighlight = ArmorMaskHelper.GetHighlightMask(wo); ArmorColor = ArmorMaskHelper.GetColorMask(wo); AddSpells(SpellBook, wo); }
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); }
/// <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); }
private void BuildArmor(WorldObject wo) { if (!Success) { return; } ArmorProfile = new ArmorProfile(wo); ArmorHighlight = ArmorMaskHelper.GetHighlightMask(wo); ArmorColor = ArmorMaskHelper.GetColorMask(wo); AddEnchantments(wo); }