Exemple #1
0
        public override IKeyedData Create(IAccount creator, StaffRank rank)
        {
            //approval will be handled inside the base call
            IKeyedData obj = base.Create(creator, rank);

            ParentLocation.RemapInterior();

            return(obj);
        }
Exemple #2
0
        private static void GetPlacementLocation(WorldObject item, EquipMask wieldedLocation, out Placement placement, out ParentLocation parentLocation)
        {
            switch (wieldedLocation)
            {
            case EquipMask.MeleeWeapon:
            case EquipMask.Held:
            case EquipMask.TwoHanded:
                placement      = ACE.Entity.Enum.Placement.RightHandCombat;
                parentLocation = ACE.Entity.Enum.ParentLocation.RightHand;
                break;

            case EquipMask.Shield:
                if (item.ItemType == ItemType.Armor)
                {
                    placement      = ACE.Entity.Enum.Placement.Shield;
                    parentLocation = ACE.Entity.Enum.ParentLocation.Shield;
                }
                else
                {
                    placement      = ACE.Entity.Enum.Placement.RightHandNonCombat;
                    parentLocation = ACE.Entity.Enum.ParentLocation.LeftWeapon;
                }
                break;

            case EquipMask.MissileWeapon:
                if (item.DefaultCombatStyle == CombatStyle.Bow || item.DefaultCombatStyle == CombatStyle.Crossbow)
                {
                    placement      = ACE.Entity.Enum.Placement.LeftHand;
                    parentLocation = ACE.Entity.Enum.ParentLocation.LeftHand;
                }
                else
                {
                    placement      = ACE.Entity.Enum.Placement.RightHandCombat;
                    parentLocation = ACE.Entity.Enum.ParentLocation.RightHand;
                }
                break;

            default:
                placement      = ACE.Entity.Enum.Placement.Default;
                parentLocation = ACE.Entity.Enum.ParentLocation.None;
                break;
            }
        }