From 2c7fb828ec38e3aa1f323bc5b7855fc99b74381b Mon Sep 17 00:00:00 2001 From: pinatacolada Date: Wed, 27 Jan 2016 17:49:19 +0000 Subject: [PATCH] Adds a threshold for the health announcer also fixes a minor bug where blood type wouldn't show if the patient had less than 60%, and made it a bit more organized overall --- nano/templates/op_computer.tmpl | 54 +++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 10 deletions(-) diff --git a/nano/templates/op_computer.tmpl b/nano/templates/op_computer.tmpl index e34ccd8d85a..027fdf3443b 100644 --- a/nano/templates/op_computer.tmpl +++ b/nano/templates/op_computer.tmpl @@ -102,10 +102,10 @@ Used In File(s): \code\game\machinery\computer\Operating.dm
{{:data.occupant.bloodPercent}}%, {{:data.occupant.bloodLevel}}cl
+ {{/if}}
Blood Type:
{{:data.occupant.bloodType}}
- {{/if}}
Pulse:
{{:data.occupant.pulse}} bpm
@@ -130,7 +130,7 @@ Used In File(s): \code\game\machinery\computer\Operating.dm {{:helper.link('Off', 'close', {'verboseOff' : 1}, data.verbose ? null : 'selected')}}
- +
Health Announcer: @@ -142,15 +142,39 @@ Used In File(s): \code\game\machinery\computer\Operating.dm
-
- Critical Alert: -
-
- {{:helper.link('On', 'power-off', {'critOn' : 1}, data.crit ? 'selected' : null)}} - {{:helper.link('Off', 'close', {'critOff' : 1}, data.crit ? null : 'selected')}} +
+
Health Announcer Threshold:
+ {{:helper.link('-', null, {'health_adj' : -100}, (data.healthAlarm >= 0) ? null : 'disabled')}} + {{:helper.link('-', null, {'health_adj' : -10}, (data.healthAlarm >= -90) ? null : 'disabled')}} + {{:helper.link('-', null, {'health_adj' : -1}, (data.healthAlarm > -100) ? null : 'disabled')}} + + {{if data.healthAlarm >= 100}} + {{:helper.displayBar(data.healthAlarm, 0, 100, 'good')}} + {{else data.healthAlarm > 0}} + {{:helper.displayBar(data.healthAlarm, 0, 100, 'average')}} + {{else data.healthAlarm >= -100}} + {{:helper.displayBar(data.healthAlarm, 0, -100, 'average alignRight')}} + {{else}} + {{:helper.displayBar(data.healthAlarm, 0, -100, 'bad alignRight')}} + {{/if}} + + {{:helper.link('+', null, {'health_adj' : 1}, (data.healthAlarm < 100) ? null : 'disabled')}} + {{:helper.link('+', null, {'health_adj' : 10}, (data.healthAlarm <= 90) ? null : 'disabled')}} + {{:helper.link('+', null, {'health_adj' : 100}, (data.healthAlarm <= 0) ? null : 'disabled')}} +
 {{: data.healthAlarm }}  
- +
+
+
+ Oxygen Alarm: +
+
+ {{:helper.link('On', 'power-off', {'oxyOn' : 1}, data.oxy ? 'selected' : null)}} + {{:helper.link('Off', 'close', {'oxyOff' : 1}, data.oxy ? null : 'selected')}} +
+
+
Oxygen Alert Threshold:
@@ -164,7 +188,17 @@ Used In File(s): \code\game\machinery\computer\Operating.dm
 {{: data.oxyAlarm }}  
- +
+
+
+ Critical Alert: +
+
+ {{:helper.link('On', 'power-off', {'critOn' : 1}, data.crit ? 'selected' : null)}} + {{:helper.link('Off', 'close', {'critOff' : 1}, data.crit ? null : 'selected')}} +
+
+
{{:helper.link('Return', 'arrow-left', {'choiceOff' : 1})}}