Allows setting vents to siphon

This commit is contained in:
Putnam3145
2021-10-17 19:55:13 -07:00
parent 1f7e65ad01
commit 42da1e2079
3 changed files with 5 additions and 2 deletions

View File

@@ -403,6 +403,9 @@
if("incheck")
send_signal(device_id, list("checks" = text2num(params["val"])^2), usr)
. = TRUE
if("direction")
send_signal(device_id, list("direction" = text2num(params["val"])), usr)
. = TRUE
if("set_external_pressure", "set_internal_pressure")
var/target = params["value"]

View File

@@ -144,7 +144,7 @@
"device" = "VP",
"timestamp" = world.time,
"power" = on,
"direction" = pump_direction ? "release" : "siphon",
"direction" = pump_direction,
"checks" = pressure_checks,
"internal" = internal_pressure_bound,
"external" = external_pressure_bound,

View File

@@ -37,7 +37,7 @@ export const Vent = (props, context) => {
<LabeledList.Item label="Mode">
<Button
icon="sign-in-alt"
content={direction ? 'Pressurizing' : 'Scrubbing'}
content={direction ? 'Pressurizing' : 'Siphoning'}
color={!direction && 'danger'}
onClick={() => act('direction', {
id_tag,