Makes stamcrit completely unaffected by health (#7865)
* makes stamina completely unaffected by health * oh, and these lines too
This commit is contained in:
@@ -102,9 +102,9 @@
|
||||
return FALSE
|
||||
|
||||
/mob/living/carbon/update_stamina()
|
||||
var/total_health = (min(health*2,100) - getStaminaLoss())
|
||||
if(getStaminaLoss())
|
||||
if(!recoveringstam && total_health <= STAMINA_CRIT_TRADITIONAL && !stat)
|
||||
var/total_health = getStaminaLoss()
|
||||
if(total_health)
|
||||
if(!recoveringstam && total_health >= STAMINA_CRIT && !stat)
|
||||
to_chat(src, "<span class='notice'>You're too exhausted to keep going...</span>")
|
||||
resting = TRUE
|
||||
if(combatmode)
|
||||
@@ -112,7 +112,7 @@
|
||||
recoveringstam = TRUE
|
||||
filters += CIT_FILTER_STAMINACRIT
|
||||
update_canmove()
|
||||
if(recoveringstam && total_health >= STAMINA_SOFTCRIT_TRADITIONAL)
|
||||
if(recoveringstam && total_health <= STAMINA_SOFTCRIT)
|
||||
to_chat(src, "<span class='notice'>You don't feel nearly as exhausted anymore.</span>")
|
||||
recoveringstam = FALSE
|
||||
filters -= CIT_FILTER_STAMINACRIT
|
||||
|
||||
Reference in New Issue
Block a user