Fixed IPCs and Golems unequipping jumpsuit slot items on update (#16338)

* Fixes IPCs and Golems unequipping

* Formatting fixes

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
warior4356
2021-07-25 10:14:13 +01:00
committed by GitHub
co-authored by SabreML
parent 6a72cdb79a
commit e091faaef9
@@ -572,9 +572,22 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
standing.alpha = w_uniform.alpha
standing.color = w_uniform.color
overlays_standing[UNIFORM_LAYER] = standing
else
else if(!dna.species.nojumpsuit)
var/list/uniform_slots = list()
var/obj/item/organ/external/L = get_organ(BODY_ZONE_L_LEG)
if(!(L?.status & ORGAN_ROBOT))
uniform_slots += l_store
var/obj/item/organ/external/R = get_organ(BODY_ZONE_R_LEG)
if(!(R?.status & ORGAN_ROBOT))
uniform_slots += r_store
var/obj/item/organ/external/C = get_organ(BODY_ZONE_CHEST)
if(!(C?.status & ORGAN_ROBOT))
uniform_slots += wear_id
uniform_slots += wear_pda
uniform_slots += belt
// Automatically drop anything in store / id / belt if you're not wearing a uniform. //CHECK IF NECESARRY
for(var/obj/item/thing in list(r_store, l_store, wear_id, wear_pda, belt)) // whoever made this
for(var/obj/item/thing in uniform_slots) // whoever made this
if(thing) // you're a piece of fucking garbage
unEquip(thing) // why the fuck would you goddamn do this motherfucking shit
if(client) // INVENTORY CODE IN FUCKING ICON CODE