Merge pull request #1128 from Fox-McCloud/LINDA-Fixes

More Linda Fixes
This commit is contained in:
ZomgPonies
2015-05-22 17:22:20 -04:00
10 changed files with 25 additions and 26 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ RCD
if(useResource(1, user))
user << "Building Floor..."
activate()
A:ChangeTurf(/turf/simulated/floor/plating/airless)
A:ChangeTurf(/turf/simulated/floor/plating)
return 1
return 0
@@ -134,7 +134,7 @@ RCD
if(do_after(user, 40))
if(!useResource(5, user)) return 0
activate()
A:ChangeTurf(/turf/simulated/floor/plating/airless)
A:ChangeTurf(/turf/simulated/floor/plating)
return 1
return 0
@@ -356,18 +356,12 @@
var/datum/gas_mixture/G = T.air
if(get_dist(T, src) < 2) // Otherwise we'll get silliness like people using Nanofrost to kill people through walls with cold air
G.temperature = 2
air_update_turf()
var/hotspot = (locate(/obj/effect/hotspot) in T)
if(hotspot && !istype(T, /turf/space))
var/CT = 10
var/datum/gas_mixture/lowertemp = T.remove_air( T:air:total_moles() )
lowertemp.temperature = max( min(lowertemp.temperature-(CT*1000),lowertemp.temperature / CT) ,0)
lowertemp.react()
T.assume_air(lowertemp)
qdel(hotspot)
if(G.toxins)
G.nitrogen += (G.toxins)
G.toxins = 0
T.air_update_turf()
for(var/obj/effect/hotspot/H in T)
H.Kill()
if(G.toxins)
G.nitrogen += (G.toxins)
G.toxins = 0
for(var/obj/machinery/atmospherics/unary/vent_pump/V in T)
V.welded = 1
V.update_icon()