From f4acef3cf831bbd1aad0796830c13fd48d8c9ac7 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sun, 20 Sep 2020 02:17:14 -0700 Subject: [PATCH] fixes --- code/modules/mob/living/stamina_buffer.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/living/stamina_buffer.dm b/code/modules/mob/living/stamina_buffer.dm index 9d38e50948..931a76d3cb 100644 --- a/code/modules/mob/living/stamina_buffer.dm +++ b/code/modules/mob/living/stamina_buffer.dm @@ -33,5 +33,6 @@ * Boosts our stamina buffer by this much. */ /mob/living/proc/RechargeStaminaBuffer(amount) + var/missing_stamina_percent = getStaminaLoss() / STAMINA_CRIT var/stamina_buffer_max = src.stamina_buffer_max * (1 - (missing_stamina_percent * STAMINA_BUFFER_STAMCRIT_CAPACITY_PERCENT_PENALTY)) stamina_buffer += min(amount, stamina_buffer_max - stamina_buffer)