Skip to content

Commit

Permalink
fixes damage and wound overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
KoboldCommando committed Sep 21, 2023
1 parent 6c9e2c0 commit b8c8c61
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions code/modules/mob/living/carbon/carbon_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,15 @@
if(iter_part.burnstate)
damage_overlay.add_overlay("[iter_part.dmg_overlay_type]_[iter_part.body_zone]_0[iter_part.burnstate]")

var/mob/living/carbon/human/human = src
if(human)
var/height = human.get_mob_height()
if(height == HUMAN_HEIGHT_DWARF)
height += 2
height = num2text(height)
var/offsets = GLOB.human_heights_to_offsets[height]
damage_overlay.pixel_y += offsets[1]

apply_overlay(DAMAGE_LAYER)

/mob/living/carbon/update_wound_overlays()
Expand All @@ -345,6 +354,15 @@
if(iter_part.bleed_overlay_icon)
wound_overlay.add_overlay(iter_part.bleed_overlay_icon)

var/mob/living/carbon/human/human = src
if(human)
var/height = human.get_mob_height()
if(height == HUMAN_HEIGHT_DWARF)
height += 2
height = num2text(height)
var/offsets = GLOB.human_heights_to_offsets[height]
wound_overlay.pixel_y += offsets[1]

apply_overlay(WOUND_LAYER)

/mob/living/carbon/update_worn_mask()
Expand Down

0 comments on commit b8c8c61

Please sign in to comment.