Allows setting vents to siphon
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user