Fixes lowered megamothwings not rendering (#60856)

This commit is contained in:
Time-Green
2021-08-20 10:31:51 -07:00
committed by GitHub
parent d94f892f65
commit 71aaf8a968
8 changed files with 18 additions and 10 deletions
+4 -1
View File
@@ -819,7 +819,7 @@
add_overlay(standing)
//Gives you a proper icon appearance for the dismembered limb
/obj/item/bodypart/proc/get_limb_icon(dropped)
/obj/item/bodypart/proc/get_limb_icon(dropped, draw_external_organs)
icon_state = "" //to erase the default sprite, we're building the visual aspects of the bodypart through overlays alone.
. = list()
@@ -921,6 +921,9 @@
aux_em_block.color = GLOB.em_block_color
aux.overlays += aux_em_block
if(!draw_external_organs)
return
//Draw external organs like horns and frills
for(var/obj/item/organ/external/external_organ in external_organs)
if(!dropped && !external_organ.can_draw_on_bodypart(owner))
+1 -1
View File
@@ -205,7 +205,7 @@
img.pixel_y = px_y
add_overlay(standing)
/obj/item/bodypart/head/get_limb_icon(dropped)
/obj/item/bodypart/head/get_limb_icon(dropped, draw_external_organs)
cut_overlays()
. = ..()
if(dropped) //certain overlays only appear when the limb is being detached from its owner.
+1 -2
View File
@@ -72,8 +72,7 @@
/obj/item/organ/external/proc/get_overlays(list/overlay_list, image_dir, image_layer, body_type, image_color)
if(!sprite_datum)
return
if(owner && HAS_TRAIT(owner, TRAIT_INVISIBLE_MAN))
return
var/gender = (body_type == FEMALE) ? "f" : "m"
var/finished_icon_state = (sprite_datum.gender_specific ? gender : "m") + "_" + preference + "_" + sprite_datum.icon_state + mutant_bodyparts_layertext(image_layer)
var/mutable_appearance/appearance = mutable_appearance(sprite_datum.icon, finished_icon_state, layer = -image_layer)