Beispiel #1
0
        /// <summary>
        /// Sets the loot bag's owner entity.
        /// Called by SERVER only.
        /// </summary>
        /// <param name="entity">entity that dropped the loot bag</param>
        public void SetOwnerEntity(BaseCharacterEntity entity)
        {
            ownerEntity = entity;
            if (ownerEntity == null)
            {
                return;
            }

            OwnerObjectID = entity.ObjectId;

            if (entity is BasePlayerCharacterEntity)
            {
                Title = entity.CharacterName;
            }
            else
            {
                Title = entity.GetDatabase().DefaultTitle;
            }

            SetLootBagName();
        }