typos
This commit is contained in:
@@ -14,16 +14,12 @@
|
||||
/mob/living/carbon/adjustStaminaLoss(amount, updating_health = TRUE, forced = FALSE, affected_zone = BODY_ZONE_CHEST)
|
||||
if(!forced && (status_flags & GODMODE))
|
||||
return FALSE
|
||||
var/obj/item/bodypart/BP
|
||||
if(isbodypart(affected_zone)) //we specified a bodypart object
|
||||
BP = def_zone
|
||||
else
|
||||
BP = get_bodypart(check_zone(affecteed_zone)) || bodyparts[1]
|
||||
if(amount > 0? BP.receieve_damage(0, 0, amount) : BP.heal_damage(0, 0, abs(amount)))
|
||||
var/obj/item/bodypart/BP = isbodypart(affected_zone)? affected_zone : (get_bodypart(check_zone(affected_zone)) || bodyparts[1])
|
||||
if(amount > 0? BP.receive_damage(0, 0, amount) : BP.heal_damage(0, 0, abs(amount)))
|
||||
update_damage_overlays()
|
||||
if(updating_health)
|
||||
updatehealth()
|
||||
updatestamina()
|
||||
update_stamina()
|
||||
if((combat_flags & COMBAT_FLAG_HARD_STAMCRIT) && amount > 20)
|
||||
incomingstammult = max(0.01, incomingstammult/(amount*0.05))
|
||||
return amount
|
||||
|
||||
Reference in New Issue
Block a user