Merge pull request #42293 from coiax/fix-42269

Fixes ghosts and camera mobs feeling cold showers
This commit is contained in:
Jordan Brown
2019-01-10 11:04:13 -05:00
committed by GitHub
+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))