made fire extinguishers not freeze everything

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2012-10-27 19:20:51 +10:00
parent 98365e5996
commit 1d1c907bfb
2 changed files with 14 additions and 1 deletions
+12 -1
View File
@@ -233,7 +233,18 @@ datum
var/hotspot = (locate(/obj/fire) in T)
if(hotspot && !istype(T, /turf/space))
var/datum/gas_mixture/lowertemp = T.remove_air( T:air:total_moles() )
lowertemp.temperature = max( min(lowertemp.temperature-2000,lowertemp.temperature / 2) ,0)
var/excess_temp = lowertemp.temperature - WATER_BOIL_TEMP
if(excess_temp > 0)
while(T.wet > 0)
T.wet -= 0
excess_temp /= 2
if(T.wet_overlay)
if(prob(10))
T.visible_message("\icon[T.wet_overlay] You hear something [pick("hissing","sizzling")]!", "", "\icon[T.wet_overlay] You hear something [pick("hissing","sizzling")]!")
T.overlays -= T.wet_overlay
T.wet_overlay = null
lowertemp.temperature = WATER_BOIL_TEMP + excess_temp
//lowertemp.temperature = max( min(lowertemp.temperature-2000,lowertemp.temperature / 2) ,0)
lowertemp.react()
T.assume_air(lowertemp)
del(hotspot)