示例#1
0
        public GameObject GetPrimaryPolearm()
        {
            GameObject      result        = null;
            int             num           = 0;
            Body            part          = ParentObject.GetPart <Body>();
            List <BodyPart> equippedParts = part.GetEquippedParts();

            foreach (BodyPart item in equippedParts)
            {
                XRL.World.Parts.acegiak_Reach part2 = item.Equipped.GetPart <XRL.World.Parts.acegiak_Reach>();
                if (part2 != null)
                {
                    result = item.Equipped;
                }
            }
            return(result);
        }
示例#2
0
        public override bool ModificationApplicable(GameObject Object)
        {
            MeleeWeapon part = Object.GetPart <MeleeWeapon>();

            if (part == null)
            {
                return(false);
            }

            acegiak_Reach part2 = Object.GetPart <acegiak_Reach>();

            if (part2 != null)
            {
                return(false);
            }

            return(true);
        }