Fixes ghosts and camera mobs feeling cold showers

🆑 coiax
fix: Ghosts and camera mobs no longer feel if the shower is cold or too hot.
/🆑

Fixes #42269.

- In addition, replaces some "the shower" with [src].
This commit is contained in:
Jack Edge
2019-01-09 18:27:14 +00:00
parent f48e3a9dea
commit cbf3b770dd
+3 -3
View File
@@ -105,7 +105,7 @@
wash_obj(A)
else if(isturf(A))
wash_turf(A)
else if(ismob(A))
else if(isliving(A))
wash_mob(A)
check_heat(A)
@@ -219,12 +219,12 @@
if(current_temperature == SHOWER_FREEZING)
if(iscarbon(L))
C.adjust_bodytemperature(-80, 80)
to_chat(L, "<span class='warning'>The shower is freezing!</span>")
to_chat(L, "<span class='warning'>[src] is freezing!</span>")
else if(current_temperature == SHOWER_BOILING)
if(iscarbon(L))
C.adjust_bodytemperature(35, 0, 500)
L.adjustFireLoss(5)
to_chat(L, "<span class='danger'>The shower is searing!</span>")
to_chat(L, "<span class='danger'>[src] is searing!</span>")
/obj/machinery/shower/proc/check_clothes(mob/living/carbon/human/H)
if(H.wear_suit && (H.wear_suit.clothing_flags & SHOWEROKAY))