Beispiel #1
0
        /// <summary>
        /// Heals the player's character by specified amount
        /// </summary>
        /// <param name="amount"></param>
        public void Heal(float amount)
        {
            EntityPlayer entity = Object as EntityPlayer;

            entity?.AddHealth((int)amount);
        }