Ejemplo n.º 1
0
        private static bool ApplyHealAmount(Entity user, InventoryItem itemUsed, ItemSpec itemSpec)
        {
            var healAmount = itemSpec.GetHealAmount();

            if (healAmount == 0)
            {
                return(false);
            }

            user.SetHealth(user.GetHealth() + healAmount);

            return(true);
        }