[MIRROR] SM monitor shows total moles & SM gets it's own defines file. (#3762)

* tgui: Total Moles in SM Monitor, Own Defines File (#57270)

Ever wondered why you failed to setup the scrungularity?

Well, wonder no more! The NT CIMS tab has been made to show total moles. The pressure got kicked however, since it's practically useless. The bar also turns red if your SM is eligible for scrung.

Moved the supermatter defines into it's own files too.

* SM monitor shows total moles & SM gets it's own defines file.

Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-02 20:11:52 +01:00
committed by GitHub
parent e5b212ec89
commit 37ce893873
5 changed files with 123 additions and 105 deletions
@@ -131,11 +131,13 @@
data["SM_power"] = active.power
data["SM_ambienttemp"] = air.temperature
data["SM_ambientpressure"] = air.return_pressure()
//data["SM_EPR"] = round((air.total_moles / air.group_multiplier) / 23.1, 0.01)
data["SM_bad_moles_amount"] = MOLE_PENALTY_THRESHOLD / active.gasefficency
data["SM_moles"] = 0
var/list/gasdata = list()
if(air.total_moles())
data["SM_moles"] = air.total_moles()
for(var/gasid in air.gases)
gasdata.Add(list(list(
"name"= air.gases[gasid][GAS_META][META_GAS_NAME],