Shower tweak

Showers no longer will apply water whenever check_heat is called, and
will now attempt to wash you while you remain under them during their
process() call (33% chance per process per mob)
This commit is contained in:
FalseIncarnate
2017-09-12 21:00:19 -04:00
parent 7a19c93862
commit 736c549f86
+6 -3
View File
@@ -470,13 +470,16 @@
qdel(E)
/obj/machinery/shower/process()
if(!on || !mobpresent) return
if(!on || !mobpresent)
return
for(var/mob/living/carbon/C in loc)
if(prob(33))
wash(C) //re-applies water and re-cleans mob while they remain under the shower, 33% chance per process to avoid message spam/quick death
check_heat(C)
/obj/machinery/shower/proc/check_heat(mob/M as mob)
M.water_act(100, convertHeat(), src) //convenience
if(!on || watertemp == "normal") return
if(!on || watertemp == "normal")
return
if(iscarbon(M))
var/mob/living/carbon/C = M