Fixing more issues.

This commit is contained in:
Ghommie
2019-11-03 05:37:10 +01:00
parent 401f21d746
commit 02935c062d
2 changed files with 10 additions and 9 deletions
+7 -3
View File
@@ -33,7 +33,7 @@
var/lip_style = null
var/lip_color = "white"
//If the head is a special sprite
var/custom_head
var/image/custom_head
/obj/item/bodypart/head/can_dismember(obj/item/I)
if(!((owner.stat == DEAD) || owner.InFullCritical()))
@@ -120,8 +120,6 @@
..()
/obj/item/bodypart/head/update_icon_dropped()
if(custom_head)
return
var/list/standing = get_limb_icon(1)
if(!standing.len)
icon_state = initial(icon_state)//no overlays found, we default back to initial icon.
@@ -132,6 +130,12 @@
add_overlay(standing)
/obj/item/bodypart/head/get_limb_icon(dropped)
if(custom_head)
if(!dropped)
custom_head.layer = BODYPARTS_LAYER
else
custom_head.layer = initial(custom_head.layer)
return list(custom_head)
cut_overlays()
. = ..()
if(dropped) //certain overlays only appear when the limb is being detached from its owner.