HE pipe turf interaction (#8409)

* HE pipe turf interaction

* Update code/ATMOSPHERICS/pipes/he_pipes.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

* Update code/ATMOSPHERICS/pipes/he_pipes.dm

Co-authored-by: Spookerton <spkrtn@pm.me>

Co-authored-by: Spookerton <spkrtn@pm.me>
This commit is contained in:
Felix
2022-04-20 01:29:55 -04:00
committed by VirgoBot
co-authored by Spookerton
parent 7f0b7494f8
commit dec7534ed9
4 changed files with 13 additions and 1 deletions
+9
View File
@@ -161,7 +161,16 @@
if(istype(target, /turf/simulated))
var/turf/simulated/modeled_location = target
if(modeled_location.special_temperature)//First do special interactions then the usuall stuff
var/delta_temp = modeled_location.special_temperature - air.temperature//2200C - 20C = 2180K
//assuming aluminium with thermal conductivity 235 W * K / m, Copper (400), Silver (430), steel (50), gold (320)
var/heat_gain = 23500 * 100 * delta_temp
air.add_thermal_energy(heat_gain)
if(network)
network.update = 1
if(modeled_location.blocks_air)
if((modeled_location.heat_capacity>0) && (partial_heat_capacity>0))
+2 -1
View File
@@ -98,7 +98,8 @@
else
var/datum/gas_mixture/environment = loc.return_air()
environment_temperature = environment.temperature
if(abs(environment_temperature-pipe_air.temperature) > minimum_temperature_difference)
var/turf/simulated/loc_as_turf = loc
if((abs(environment_temperature-pipe_air.temperature) > minimum_temperature_difference) || (loc_as_turf.special_temperature))
parent.temperature_interact(loc, volume, thermal_conductivity)
else if(istype(loc, /turf/space/))
parent.radiate_heat_to_space(surface, 1)