mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user