further optimizes performance by making all of the meta gas properties use their own individual lists instead of being in a messy nested list
This commit is contained in:
@@ -81,13 +81,13 @@
|
||||
if(air.total_moles())
|
||||
for(var/gasid in air.gases)
|
||||
gasdata.Add(list(list(
|
||||
"name"= GLOB.meta_gas_info[gasid][META_GAS_NAME],
|
||||
"name"= GLOB.meta_gas_names[gasid],
|
||||
"amount" = round(100*air.gases[gasid]/air.total_moles(),0.01))))
|
||||
|
||||
else
|
||||
for(var/gasid in air.gases)
|
||||
gasdata.Add(list(list(
|
||||
"name"= GLOB.meta_gas_info[gasid][META_GAS_NAME],
|
||||
"name"= GLOB.meta_gas_names[gasid],
|
||||
"amount" = 0)))
|
||||
|
||||
data["gases"] = gasdata
|
||||
|
||||
Reference in New Issue
Block a user