mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user