mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
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:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user