From ed9428e29b9c1459682f0fa3cccaf23d4581e6c9 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 18 Jan 2018 17:59:45 -0500 Subject: [PATCH] Merge pull request #34563 from ShizCalev/clean-icon Regens icons on clean_act if item is loc'd on a mob --- code/datums/components/cleaning.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/components/cleaning.dm b/code/datums/components/cleaning.dm index bab2461947..9566b5faab 100644 --- a/code/datums/components/cleaning.dm +++ b/code/datums/components/cleaning.dm @@ -20,6 +20,9 @@ else if(istype(A, /obj/item)) var/obj/item/I = A I.SendSignal(COMSIG_COMPONENT_CLEAN_ACT, CLEAN_STRENGTH_BLOOD) + if(ismob(I.loc)) + var/mob/M = I.loc + M.regenerate_icons() else if(ishuman(A)) var/mob/living/carbon/human/cleaned_human = A if(cleaned_human.lying) @@ -33,4 +36,5 @@ cleaned_human.shoes.SendSignal(COMSIG_COMPONENT_CLEAN_ACT, CLEAN_STRENGTH_BLOOD) cleaned_human.SendSignal(COMSIG_COMPONENT_CLEAN_ACT, CLEAN_STRENGTH_BLOOD) cleaned_human.wash_cream() + cleaned_human.regenerate_icons() to_chat(cleaned_human, "[AM] cleans your face!")