Skip to content

Commit

Permalink
fixes damage overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Aug 31, 2023
1 parent 749cad0 commit 4c7e73d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,9 @@ There are several things that need to be remembered:
*/



/mob/living/carbon/human/apply_overlay(cache_index)
var/image/images = overlays_standing[cache_index]

if(!images)
return

if(islist(images))
var/list/overlays = images
for(var/image/current_image as anything in overlays)
current_image.appearance_flags |= RESET_COLOR
else
images.appearance_flags |= RESET_COLOR

SEND_SIGNAL(src, COMSIG_HUMAN_OVERLAY_APPLIED, cache_index, images)
overlays += images

Expand Down
4 changes: 2 additions & 2 deletions code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1247,12 +1247,12 @@ treat_grafted var tells it to apply to grafted but unsalved wounds, for burn kit
damage_state = damage_state_text()
var/brutestate = copytext(damage_state, 1, 2)
if(brutestate != "0")
wound_overlay.icon_state = "grayscale_[brutestate]"
wound_overlay.icon_state = "grayscale_[icon_name]_[brutestate]"
. += wound_overlay

var/burnstate = copytext(damage_state, 2)
if(burnstate != "0")
burn_overlay.icon_state = "burn_[burnstate]"
burn_overlay.icon_state = "burn_[icon_name1]_[burnstate]"
. += wound_overlay

/*
Expand Down
Binary file modified icons/mob/humans/dam_human.dmi
Binary file not shown.

0 comments on commit 4c7e73d

Please sign in to comment.