Fixes h/e pipes and thermal plates

Fixes #2864
Fixes #4078

They would radiate and make ultra cold gas under 10 moles, 10 moles is about 10kpa at 20C, which is simply way too high.

They will radiate at less than .001 only, less than the standard moles for a standard 'gasless' tile. And to similarly limit unnecessary gas exchange procs being called pointlessly, will only intermix with at least 1 mole in the atmosphere.
This commit is contained in:
clusterfack
2015-05-20 05:56:59 -05:00
parent 3b411f8281
commit c850a69443
2 changed files with 17 additions and 8 deletions

View File

@@ -26,14 +26,17 @@
//Get processable air sample and thermal info from environment
var/transfer_moles = 0.25 * environment.total_moles()
var/environment_moles = environment.total_moles()
var/transfer_moles = 0.25 * environment_moles
var/datum/gas_mixture/external_removed = environment.remove(transfer_moles)
if (!external_removed)
if(!external_removed)
return radiate()
if (external_removed.total_moles() < 10)
if(environment_moles < NO_GAS)
return radiate()
else if(environment_moles < SOME_GAS)
return 0
//Get same info from connected gas