コード例 #1
0
        public void BuildWeapon(WorldObject weapon, WorldObject wielder)
        {
            WeaponProfile   = new WeaponProfile(weapon, wielder);
            WeaponHighlight = WeaponMaskHelper.GetHighlightMask(weapon, wielder);
            WeaponColor     = WeaponMaskHelper.GetColorMask(weapon, wielder);

            // item enchantments can also be on wielder currently
            AddSpells(SpellBook, wielder);
        }
コード例 #2
0
 /// <summary>
 /// Writes the weapon appraisal info to the network stream
 /// </summary>
 public static void Write(this BinaryWriter writer, WeaponProfile profile)
 {
     writer.Write((uint)profile.DamageType);
     writer.Write(profile.WeaponTime);
     writer.Write((uint)profile.WeaponSkill);
     writer.Write(profile.Damage);
     writer.Write(profile.DamageVariance);
     writer.Write(profile.DamageMod);
     writer.Write(profile.WeaponLength);
     writer.Write(profile.MaxVelocity);
     writer.Write(profile.WeaponOffense);
     writer.Write(profile.MaxVelocityEstimated);
 }
コード例 #3
0
ファイル: AppraiseInfo.cs プロジェクト: zegegerslittlesis/ACE
        private void BuildWeapon(WorldObject weapon, WorldObject wielder)
        {
            var weaponProfile = new WeaponProfile(weapon, wielder);

            //WeaponHighlight = WeaponMaskHelper.GetHighlightMask(weapon, wielder);
            //WeaponColor = WeaponMaskHelper.GetColorMask(weapon, wielder);
            WeaponHighlight = WeaponMaskHelper.GetHighlightMask(weaponProfile);
            WeaponColor = WeaponMaskHelper.GetColorMask(weaponProfile);

            if (!(weapon is Caster))
                WeaponProfile = weaponProfile;

            // item enchantments can also be on wielder currently
            AddSpells(SpellBook, weapon, wielder);
        }
コード例 #4
0
        private void BuildWeapon(WorldObject weapon)
        {
            if (!Success)
            {
                return;
            }

            var weaponProfile = new WeaponProfile(weapon);

            //WeaponHighlight = WeaponMaskHelper.GetHighlightMask(weapon, wielder);
            //WeaponColor = WeaponMaskHelper.GetColorMask(weapon, wielder);
            WeaponHighlight = WeaponMaskHelper.GetHighlightMask(weaponProfile);
            WeaponColor     = WeaponMaskHelper.GetColorMask(weaponProfile);

            if (!(weapon is Caster))
            {
                WeaponProfile = weaponProfile;
            }

            // item enchantments can also be on wielder currently
            AddEnchantments(weapon);
        }