public void RegenerateStamina() { int staminaToRegenerate = mySpecialAbilities.GetMaxStamina() - mySpecialAbilities.GetCurrentStamina(); if (staminaToRegenerate > 0 && currentVitality >= staminaRegenCost) { mySpecialAbilities.RegainStamina(2); UpdateVitalityAmount(-staminaRegenCost); UpdateVitalityBar(); } }