POLARIS: Sometimes items have this set to null because they are bad.

This commit is contained in:
Arokha Sieyes
2018-03-17 21:27:46 -04:00
parent 14bdc519e4
commit 54d06dbef0

View File

@@ -727,12 +727,14 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
return icon_override return icon_override
//2: species-specific sprite sheets (skipped for inhands) //2: species-specific sprite sheets (skipped for inhands)
if(LAZYLEN(sprite_sheets))
var/sheet = sprite_sheets[body_type] var/sheet = sprite_sheets[body_type]
if(sheet && !inhands) if(sheet && !inhands)
return sheet return sheet
//3: slot-specific sprite sheets //3: slot-specific sprite sheets
sheet = item_icons[slot_name] if(LAZYLEN(item_icons))
var/sheet = item_icons[slot_name]
if(sheet) if(sheet)
return sheet return sheet
@@ -751,6 +753,7 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
/obj/item/proc/get_worn_icon_state(var/slot_name) /obj/item/proc/get_worn_icon_state(var/slot_name)
//1: slot-specific sprite sheets //1: slot-specific sprite sheets
if(LAZYLEN(item_state_slots))
var/state = item_state_slots[slot_name] var/state = item_state_slots[slot_name]
if(state) if(state)
return state return state