From 68a30e9969bbd199809a80a679dae50754088ca9 Mon Sep 17 00:00:00 2001
From: Fermi <>
Date: Wed, 20 Nov 2019 12:11:44 +0000
Subject: [PATCH] Final pass
---
code/game/machinery/Sleeper.dm | 4 +-
tgui/src/interfaces/reagent_sleeper.ract | 72 ------------------------
tgui/src/interfaces/sleeper.ract | 26 ++++++++-
3 files changed, 25 insertions(+), 77 deletions(-)
delete mode 100644 tgui/src/interfaces/reagent_sleeper.ract
diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm
index 48e6d6de47..7d7a03945f 100644
--- a/code/game/machinery/Sleeper.dm
+++ b/code/game/machinery/Sleeper.dm
@@ -130,7 +130,7 @@
if(istype(I, /obj/item/reagent_containers))
var/obj/item/reagent_containers/RC = I
for(var/datum/reagent/R in RC.reagents.reagent_list)
- if((!istype(R, /datum/reagent/medicine) && !(obj_flags & EMAGGED)) || ((allowed(usr) && scan_id)))
+ if((!istype(R, /datum/reagent/medicine) && !(obj_flags & EMAGGED)) || (allowed(usr)))
visible_message("The [src] gives out a hearty boop and rejects the [I]. The Sleeper's screen flashes with a pompous \"Medicines only, please.\"")
return
RC.reagents.trans_to(reagents, 1000)
@@ -295,7 +295,7 @@
return
reagents.add_reagent(chem_buttons[chem], 10) //other_purity = 0.75 for when the mechanics are in
if("purge")
- if((allowed(usr) && scan_id))
+ if(allowed(usr))
var/chem = params["chem"]
if(!is_operational())
return
diff --git a/tgui/src/interfaces/reagent_sleeper.ract b/tgui/src/interfaces/reagent_sleeper.ract
deleted file mode 100644
index 5038923103..0000000000
--- a/tgui/src/interfaces/reagent_sleeper.ract
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
- {{data.occupant.name ? data.occupant.name : "No Occupant"}}
-
- {{#if data.occupied}}
-
- {{data.occupant.stat}}
-
-
- {{Math.round(adata.occupant.health)}}
-
- {{#each [{label: "Brute", type: "bruteLoss"}, {label: "Respiratory", type: "oxyLoss"}, {label: "Toxin", type: "toxLoss"}, {label: "Burn", type: "fireLoss"}]}}
-
- {{Math.round(adata.occupant[type])}}
-
- {{/each}}
- {{#if data.occupant.blood}}
-
-
- {{& data.occupant.blood.currentBloodVolume <= data.occupant.blood.dangerBloodVolume ? "LOW" : "OK"}} - {{Math.round(data.occupant.blood.currentBloodVolume)}} cl
-
-
- {{data.occupant.blood.bloodType}}
-
-
- {{/if}}
-
- {{data.occupant.cloneLoss ? "Damaged" : "Healthy"}}
-
-
- {{data.occupant.brainLoss ? "Abnormal" : "Healthy"}}
-
-
- {{#each adata.occupant.reagents}}
- {{Math.fixed(volume, 1)}} units of {{name}}
- {{else}}
- Pure
- {{/each}}
-
- {{/if}}
-
-
-
- {{data.open ? "Open" : "Closed"}}
-
-
- {{#each data.synthchems}}
- {{name}}
- {{/each}}
-
-
- {{#each data.chems}}
- {{name}}: {{vol}}u
- {{#if data.efficiency >= 4}}
- Purity: {{purity}}
- {{/if}}
- {{#if data.efficiency >= 3}}
- 1
- {{/if}}
- {{#if adata.efficiency >= 2}}
- 5
- {{/if}}
- 10
- Purge
- {{/each}}
-
-
- {{data.current_vol}}
-
-
diff --git a/tgui/src/interfaces/sleeper.ract b/tgui/src/interfaces/sleeper.ract
index e5bad17461..5038923103 100644
--- a/tgui/src/interfaces/sleeper.ract
+++ b/tgui/src/interfaces/sleeper.ract
@@ -44,9 +44,29 @@
{{data.open ? "Open" : "Closed"}}
-
- {{#each data.chems}}
- {{name}}
+
+ {{#each data.synthchems}}
+ {{name}}
{{/each}}
+
+ {{#each data.chems}}
+ {{name}}: {{vol}}u
+ {{#if data.efficiency >= 4}}
+ Purity: {{purity}}
+ {{/if}}
+ {{#if data.efficiency >= 3}}
+ 1
+ {{/if}}
+ {{#if adata.efficiency >= 2}}
+ 5
+ {{/if}}
+ 10
+ Purge
+ {{/each}}
+
+
+ {{data.current_vol}}
+