clean up some GLOB.gas_data.names stuff

This commit is contained in:
Lucy
2021-12-20 22:57:22 -05:00
parent b33e299535
commit 3ef9b39d56
5 changed files with 6 additions and 6 deletions

View File

@@ -630,7 +630,7 @@ GENE SCANNER
if(id in GLOB.hardcoded_gases)
continue
var/gas_concentration = environment.get_moles(id)/total_moles
to_chat(user, span_alert("[GLOB.gas_data.names[id]]: [round(gas_concentration*100, 0.01)] % ([round(environment.get_moles(id), 0.01)] mol)"))
to_chat(user, span_alert("[[GLOB.gas_data.names[id]]: [round(gas_concentration*100, 0.01)] % ([round(environment.get_moles(id), 0.01)] mol)"))
to_chat(user, span_info("Temperature: [round(environment.return_temperature()-T0C, 0.01)] °C ([round(environment.return_temperature(), 0.01)] K)"))
/obj/item/analyzer/AltClick(mob/user) //Barometer output for measuring when the next storm happens
@@ -720,7 +720,7 @@ GENE SCANNER
for(var/id in air_contents.get_gases())
var/gas_concentration = air_contents.get_moles(id)/total_moles
to_chat(user, span_notice("[GLOB.gas_data.names[id]]: [round(gas_concentration*100, 0.01)] % ([round(air_contents.get_moles(id), 0.01)] mol)"))
to_chat(user, span_notice("[[GLOB.gas_data.names[id]]: [round(gas_concentration*100, 0.01)] % ([round(air_contents.get_moles(id), 0.01)] mol)"))
to_chat(user, span_notice("Temperature: [round(temperature - T0C,0.01)] °C ([round(temperature, 0.01)] K)"))
else

View File

@@ -10,7 +10,7 @@
for(var/id in env.get_gases())
var/moles = env.get_moles(id)
if (abs(moles) >= 0.00001)
lines += "GLOB.gas_data.names[id]]: [moles] mol"
lines += "[GLOB.gas_data.names[id]]: [moles] mol"
to_chat(usr, lines.Join("\n"))
/client/proc/air_status(turf/target)

View File

@@ -573,7 +573,7 @@
for(var/id in environment.get_gases())
var/gas_level = environment.get_moles(id)/total_moles
if(gas_level > 0.01)
dat += "GLOB.gas_data.names[id]]: [round(gas_level*100)]%<br>"
dat += "[GLOB.gas_data.names[id]]: [round(gas_level*100)]%<br>"
dat += "Temperature: [round(environment.return_temperature()-T0C)]&deg;C<br>"
dat += "<a href='byond://?src=[REF(src)];software=atmosensor;sub=0'>Refresh Reading</a> <br>"
dat += "<br>"

View File

@@ -120,7 +120,7 @@
t += span_danger("Temperature: [environment.return_temperature()] \n")
for(var/id in environment.get_gases())
if(environment.get_moles(id))
t+=span_notice("GLOB.gas_data.names[id]]: [environment.get_moles(id)] \n")
t+=span_notice("[GLOB.gas_data.names[]id]]: [environment.get_moles(id)] \n")
to_chat(usr, t)

View File

@@ -34,7 +34,7 @@
var/moles = environment.get_moles(id)
var/gas_level = moles/total_moles
if(gas_level > 0)
airlist += list(list("name" = "GLOB.gas_data.names[id]]", "percentage" = round(gas_level*100, 0.01)))
airlist += list(list("name" = "[GLOB.gas_data.names[id]]", "percentage" = round(gas_level*100, 0.01)))
data["AirData"] = airlist
else
data["AirPressure"] = 0