Merge pull request #7374 from Citadel-Station-13/kevinz000-patch-1

hardcaps stamina to 200 again
This commit is contained in:
deathride58
2018-07-18 18:07:37 -04:00
committed by GitHub

View File

@@ -8,3 +8,13 @@
stambufferregentime = world.time + 2 SECONDS
if(updating_stamina)
update_health_hud()
/mob/living/carbon/adjustStaminaLoss(amount, updating_health = TRUE, forced = FALSE)
if(!forced && (status_flags & GODMODE))
return FALSE
if(amount > 0)
amount = CLAMP(amount, 0, 200 - getStaminaLoss())
take_overall_damage(0, 0, amount, updating_health)
else
heal_overall_damage(0, 0, abs(amount), FALSE, FALSE, updating_health)
return amount