Skip to content

Commit

Permalink
Painkillers now reduce severity of damage overlays (#3845)
Browse files Browse the repository at this point in the history
## About The Pull Request
Having medication in your system that makes you resist pain will now
make the red hurt overlay not happen as hard.

## Why It's Good For The Game
immersion

## Changelog

:cl:
add: painkillers now reduce the intensity of the damage overlay
/:cl:
  • Loading branch information
Erikafox authored Nov 28, 2024
1 parent 1153f14 commit 48b91a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@

//Fire and Brute damage overlay (BSSR)
var/hurtdamage = getBruteLoss() + getFireLoss() + damageoverlaytemp
if(hurtdamage)
if(HAS_TRAIT(src, TRAIT_PAIN_RESIST))
hurtdamage = round(hurtdamage/2)
if(hurtdamage && !HAS_TRAIT(src, TRAIT_ANALGESIA))
var/severity = 0
switch(hurtdamage)
if(5 to 15)
Expand Down

0 comments on commit 48b91a0

Please sign in to comment.