From c32df3852eabca318d5462fc7bfb73a791002e1d Mon Sep 17 00:00:00 2001 From: DJSnapshot Date: Mon, 16 Dec 2013 22:07:54 -0800 Subject: [PATCH] Added checks so that space cleaner reagent and borgs can clean floors now too! --- code/modules/mob/living/silicon/robot/robot.dm | 4 +++- code/modules/reagents/Chemistry-Reagents.dm | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 611243f654..1c29abd372 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -1160,7 +1160,9 @@ if(module.type == /obj/item/weapon/robot_module/janitor) var/turf/tile = loc if(isturf(tile)) - tile.clean_blood() + if (istype(tile, /turf/simulated)) + var/turf/simulated/S = tile + S.dirt = 0 for(var/A in tile) if(istype(A, /obj/effect)) if(istype(A, /obj/effect/rune) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay)) diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm index ab7915dec0..80672b358e 100644 --- a/code/modules/reagents/Chemistry-Reagents.dm +++ b/code/modules/reagents/Chemistry-Reagents.dm @@ -906,6 +906,9 @@ datum for(var/mob/living/carbon/slime/M in T) M.adjustToxLoss(rand(5,10)) + reaction_turf(var/turf/simulated/S, var/volume) + if(volume >= 1) + S.dirt = 0 reaction_mob(var/mob/M, var/method=TOUCH, var/volume) if(iscarbon(M))