Fixes some awful defines to not be hacks

This commit is contained in:
MrPerson
2016-01-22 19:07:37 -08:00
parent a12cea1f9c
commit e1b3815539
13 changed files with 15 additions and 20 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
for(var/id in env_gases)
var/gas_level = env_gases[id][MOLES]/total_moles
if(id in hardcoded_gases || gas_level > 0.01)
dat += "[env_gases[id][GAS_NAME]]: [round(gas_level*100)]%<br>"
dat += "[env_gases[id][GAS_META][META_GAS_NAME]]: [round(gas_level*100)]%<br>"
dat += "Temperature: [round(environment.temperature-T0C)]&deg;C<br>"
dat += "<br>"
+1 -1
View File
@@ -302,7 +302,7 @@ MASS SPECTROMETER
if(id in hardcoded_gases)
continue
var/gas_concentration = env_gases[id][MOLES]/total_moles
user << "<span class='alert'>[env_gases[id][GAS_NAME]]: [round(gas_concentration*100)] %</span>"
user << "<span class='alert'>[env_gases[id][GAS_META][META_GAS_NAME]]: [round(gas_concentration*100)] %</span>"
user << "<span class='info'>Temperature: [round(environment.temperature-T0C)] &deg;C</span>"