mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user