[MIRROR] Cleaning machines and the cleanbot now scrubs instead of washes, wiping forensics (#402)

* Cleaning machines and the cleanbot now scrubs instead of washes, wiping forensics (#52983)

* Cleaning machines and the cleanbot now scrubs instead of washes, wiping forensics

Co-authored-by: Donkie <daniel.cf.hultgren@gmail.com>
This commit is contained in:
SkyratBot
2020-08-19 04:42:48 +02:00
committed by GitHub
co-authored by Donkie
parent 0a42289bdb
commit d8f5dc18d4
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -14,17 +14,17 @@
if(!isturf(tile))
return
tile.wash(CLEAN_WASH)
tile.wash(CLEAN_SCRUB)
for(var/A in tile)
// Clean small items that are lying on the ground
if(isitem(A))
var/obj/item/I = A
if(I.w_class <= WEIGHT_CLASS_SMALL && !ismob(I.loc))
I.wash(CLEAN_WASH)
I.wash(CLEAN_SCRUB)
// Clean humans that are lying down
else if(ishuman(A))
var/mob/living/carbon/human/cleaned_human = A
if(!(cleaned_human.mobility_flags & MOBILITY_STAND))
cleaned_human.wash(CLEAN_WASH)
cleaned_human.wash(CLEAN_SCRUB)
cleaned_human.regenerate_icons()
to_chat(cleaned_human, "<span class='danger'>[AM] cleans your face!</span>")