Adds drunkenness meter to the body scanner, removes paralysis meter (#18926)

* Adds drunkenness meter to the body scanner, removes paralysis meter

* Recompiled tgui bundle

* Removes accidental second conversion

* Deconflicts tgui maybe

* Added deciseconds to seconds conversion

* Changes drunkenness to inebriation

* Updates tgui
This commit is contained in:
Adri
2022-08-31 16:04:17 +02:00
committed by GitHub
parent e946c1cce0
commit 34e0831041
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -245,8 +245,7 @@
occupantData["radLoss"] = occupant.radiation
occupantData["cloneLoss"] = occupant.getCloneLoss()
occupantData["brainLoss"] = occupant.getBrainLoss()
occupantData["paralysis"] = occupant.AmountParalyzed()
occupantData["paralysisSeconds"] = round(occupant.AmountParalyzed() * 0.25)
occupantData["drunkenness"] = (occupant.get_drunkenness() / 10)
occupantData["bodyTempC"] = occupant.bodytemperature-T0C
occupantData["bodyTempF"] = (((occupant.bodytemperature-T0C) * 1.8) + 32)
@@ -409,7 +408,7 @@
extra_font = (occupant.getBrainLoss() < 1 ?"<font color='blue'>" : "<font color='red'>")
dat += "[extra_font]\tApprox. Brain Damage %: [occupant.getBrainLoss()]<br>"
dat += "Paralysis Summary: [round(occupant.AmountParalyzed() / 10)] seconds left.<br>"
dat += "Inebriation Severity: [round(occupant.get_drunkenness() / 10)] seconds<br>"
dat += "Body Temperature: [occupant.bodytemperature-T0C]&deg;C ([occupant.bodytemperature*1.8-459.67]&deg;F)<br>"
dat += "<hr>"
+1 -1
View File
@@ -36,7 +36,7 @@ const damages = [
['Brute', 'bruteLoss'],
['Genetic', 'cloneLoss'],
['Burn', 'fireLoss'],
['Paralysis', 'paralysis'],
['Inebriation', 'drunkenness'],
];
const damageRange = {
File diff suppressed because one or more lines are too long