private void ApplyConsumableItemEffect(BaseStats target) { if (isPercentage) { int value = Mathf.FloorToInt((target.GetStat(attributteToModify) * modifier) / 100); target.ModifyStatPermanent(attributteToModify, value); } else { if (attributteToModify == StatsAtributte.Health || attributteToModify == StatsAtributte.SkillPoints) { target.HealStat(attributteToModify, modifier); } else { target.ModifyStatPermanent(attributteToModify, modifier); } } }