Update damage_procs.dm

This commit is contained in:
kevinz000
2018-07-15 23:00:48 -07:00
committed by GitHub
parent b727404f48
commit f081239613
@@ -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
amount = CLAMP(amount, 0, 200 - getStaminaLoss())
if(amount > 0)
take_overall_damage(0, 0, amount, updating_health)
else
heal_overall_damage(0, 0, abs(amount), FALSE, FALSE, updating_health)
return amount