From 3ef9b39d565cb6b7964c96bf429dd72fca84cfa0 Mon Sep 17 00:00:00 2001 From: Lucy Date: Mon, 20 Dec 2021 22:57:22 -0500 Subject: [PATCH] clean up some `GLOB.gas_data.names` stuff --- code/game/objects/items/devices/scanners.dm | 4 ++-- code/modules/admin/verbs/diagnostics.dm | 2 +- code/modules/mob/living/silicon/pai/software.dm | 2 +- code/modules/mob/mob.dm | 2 +- .../modular_computers/file_system/programs/atmosscan.dm | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index ddccc7dec249..4e6229e9dfc4 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -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 diff --git a/code/modules/admin/verbs/diagnostics.dm b/code/modules/admin/verbs/diagnostics.dm index c8e779366307..880c155b19cf 100644 --- a/code/modules/admin/verbs/diagnostics.dm +++ b/code/modules/admin/verbs/diagnostics.dm @@ -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) diff --git a/code/modules/mob/living/silicon/pai/software.dm b/code/modules/mob/living/silicon/pai/software.dm index 845185919d7b..81e51cc9c07d 100644 --- a/code/modules/mob/living/silicon/pai/software.dm +++ b/code/modules/mob/living/silicon/pai/software.dm @@ -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)]%
" + dat += "[GLOB.gas_data.names[id]]: [round(gas_level*100)]%
" dat += "Temperature: [round(environment.return_temperature()-T0C)]°C
" dat += "Refresh Reading
" dat += "
" diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 1ee8594d611d..da192db1d8ba 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -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) diff --git a/code/modules/modular_computers/file_system/programs/atmosscan.dm b/code/modules/modular_computers/file_system/programs/atmosscan.dm index d53c38b05e48..753057bc9c33 100644 --- a/code/modules/modular_computers/file_system/programs/atmosscan.dm +++ b/code/modules/modular_computers/file_system/programs/atmosscan.dm @@ -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