auxtools atmos works now

This commit is contained in:
Putnam
2020-10-31 02:55:31 -07:00
parent 46c4c347f9
commit 90e3be2a12
7 changed files with 11 additions and 15 deletions
@@ -38,7 +38,7 @@
if(!blocks_air)
air = new(2500,src)
air.copy_from_turf(src)
update_air_ref(!planetary_atmos)
update_air_ref(planetary_atmos ? 1 : 2)
. = ..()
/turf/open/Destroy()
@@ -121,7 +121,7 @@
if (nonoverlaying_gases[id])
continue
var/gas_overlay = GLOB.meta_gas_overlays[id]
if(gas_overlay && air.get_moles(id) > GLOB.meta_gas_visibility[META_GAS_MOLES_VISIBLE])
if(gas_overlay && air.get_moles(id) > GLOB.meta_gas_visibility[id])
new_overlay_types += gas_overlay[min(FACTOR_GAS_VISIBLE_MAX, CEILING(air.get_moles(id) / MOLES_GAS_VISIBLE_STEP, 1))]
if (atmos_overlay_types)
@@ -112,10 +112,9 @@ GLOBAL_LIST_INIT(auxtools_atmos_initialized,FALSE)
message_admins("[key_name(usr)] modified gas mixture [REF(src)]: Changed volume to [volume].")
set_volume(volume)
/*
/datum/gas_mixture/Del()
__gasmixture_unregister()
. = ..()*/
. = ..()
/datum/gas_mixture/proc/__gasmixture_unregister()
/datum/gas_mixture/proc/__gasmixture_register()