示例#1
0
        /// <summary>
        /// Returns the armor + clothing for a body part
        /// </summary>
        public List<WorldObject> GetArmorClothing(Creature creature, BodyPart bodyPart)
        {
            var bodyLocation = BodyParts.GetFlags(BodyParts.GetCoverageMask(bodyPart));

            var equipped = creature.EquippedObjects.Values.Where(e => e is Clothing && BodyParts.HasAny(e.ClothingPriority, bodyLocation)).ToList();

            return equipped;
        }
示例#2
0
        /// <summary>
        /// Returns the armor + clothing for a body part
        /// </summary>
        public List <WorldObject> GetArmorClothing(Creature creature, BodyPart bodyPart)
        {
            var bodyLocation = BodyParts.GetFlags(BodyParts.GetEquipMask(bodyPart));

            var equipped = creature.EquippedObjects.Values.Where(e => e is Clothing && BodyParts.HasAny(e.CurrentWieldedLocation, bodyLocation)).ToList();

            return(equipped);
        }
示例#3
0
文件: Monster_Melee.cs 项目: klp2/ACE
        /// <summary>
        /// Returns the creature armor for a body part
        /// </summary>
        public List <WorldObject> GetArmor(BodyPart bodyPart)
        {
            var target = AttackTarget as Creature;

            //Console.WriteLine("BodyPart: " + bodyPart);
            //Console.WriteLine("===");

            var bodyLocation = BodyParts.GetFlags(BodyParts.GetEquipMask(bodyPart));

            var equipped = target.EquippedObjects.Values.Where(e => e is Clothing && BodyParts.HasAny(e.CurrentWieldedLocation, bodyLocation)).ToList();

            return(equipped);
        }