Merge pull request #7374 from Citadel-Station-13/kevinz000-patch-1
hardcaps stamina to 200 again
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user