Showers now cause wet floors. Mops can now be used to clean shuttles (non-simulated floor).

This commit is contained in:
PsiOmega
2014-09-04 16:36:26 +02:00
parent 7a228c9677
commit 264504c595
2 changed files with 31 additions and 12 deletions
+18 -1
View File
@@ -128,6 +128,11 @@
var/ismist = 0 //needs a var so we can make it linger~
var/watertemp = "normal" //freezing, normal, or boiling
var/mobpresent = 0 //true if there is a mob on the shower's loc, this is to ease process()
var/is_washing = 0
/obj/machinery/shower/New()
..()
create_reagents(2)
//add heat controls? when emagged, you can freeze to death in it?
@@ -285,10 +290,22 @@
del(E)
/obj/machinery/shower/process()
if(!on || !mobpresent) return
if(!on) return
wash_floor()
if(!mobpresent) return
for(var/mob/living/carbon/C in loc)
check_heat(C)
/obj/machinery/shower/proc/wash_floor()
if(!ismist && is_washing)
return
is_washing = 1
var/turf/T = get_turf(src)
reagents.add_reagent("water", 2)
T.clean(src)
spawn(100)
is_washing = 0
/obj/machinery/shower/proc/check_heat(mob/M as mob)
if(!on || watertemp == "normal") return
if(iscarbon(M))