コード例 #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
ファイル: ArmorLevel.cs プロジェクト: Cloudxtreme/ACE-1
        /// <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);
        }