Mistakes were made.

This commit is contained in:
Ghommie
2019-11-03 15:13:18 +01:00
parent 02935c062d
commit 7bd905e6b2
3 changed files with 10 additions and 8 deletions
+4 -6
View File
@@ -33,7 +33,7 @@
var/lip_style = null
var/lip_color = "white"
//If the head is a special sprite
var/image/custom_head
var/custom_head
/obj/item/bodypart/head/can_dismember(obj/item/I)
if(!((owner.stat == DEAD) || owner.InFullCritical()))
@@ -120,6 +120,8 @@
..()
/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.
@@ -131,11 +133,7 @@
/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)
return
cut_overlays()
. = ..()
if(dropped) //certain overlays only appear when the limb is being detached from its owner.