removes atmos history (#67317)

Removes one unused global list and removes the other one that was used only 3 times.
This commit is contained in:
Ghilker
2022-05-27 16:13:42 +02:00
committed by GitHub
parent 6d3095b5c8
commit 9596a1ad2e
4 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -47,7 +47,7 @@
return FALSE
var/open_turf_gases = open_turf.air.gases
open_turf.air.assert_gases(arglist(GLOB.hardcoded_gases))
open_turf.air.assert_gases(/datum/gas/oxygen, /datum/gas/nitrogen, /datum/gas/carbon_dioxide, /datum/gas/plasma)
var/plas = open_turf_gases[/datum/gas/plasma][MOLES]
var/oxy = open_turf_gases[/datum/gas/oxygen][MOLES]
+2 -1
View File
@@ -140,9 +140,10 @@
return
var/list/floor_gases = floor_gas_mixture.gases
var/list/gases_to_check = list(/datum/gas/oxygen, /datum/gas/nitrogen, /datum/gas/carbon_dioxide, /datum/gas/plasma)
var/trace_gases
for(var/id in floor_gases)
if(id in GLOB.hardcoded_gases)
if(id in gases_to_check)
continue
trace_gases = TRUE
break
@@ -1,7 +1,3 @@
GLOBAL_LIST_INIT(hardcoded_gases, list(/datum/gas/oxygen, /datum/gas/nitrogen, /datum/gas/carbon_dioxide, /datum/gas/plasma)) //the main four gases, which were at one time hardcoded
//Now this is what I call history
GLOBAL_LIST_INIT(nonreactive_gases, typecacheof(list(/datum/gas/oxygen, /datum/gas/nitrogen, /datum/gas/carbon_dioxide, /datum/gas/pluoxium))) //unable to react amongst themselves
/proc/meta_gas_list()
. = subtypesof(/datum/gas)
for(var/gas_path in .)
@@ -325,7 +325,7 @@
var/turf/open/ST = loc
if(ST.air)
var/ST_gases = ST.air.gases
ST.air.assert_gases(arglist(GLOB.hardcoded_gases))
ST.air.assert_gases(/datum/gas/oxygen, /datum/gas/nitrogen, /datum/gas/carbon_dioxide, /datum/gas/plasma)
var/plas = ST_gases[/datum/gas/plasma][MOLES]
var/oxy = ST_gases[/datum/gas/oxygen][MOLES]