From 804547cdc30525e6bae0936232b543a452a89b50 Mon Sep 17 00:00:00 2001 From: VforValens Date: Thu, 17 Mar 2022 12:00:07 -0500 Subject: [PATCH] Added Reserve D2 functionality. --- ValensHasThePower/Program.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/ValensHasThePower/Program.cs b/ValensHasThePower/Program.cs index 1a103ee..e1d0af1 100644 --- a/ValensHasThePower/Program.cs +++ b/ValensHasThePower/Program.cs @@ -46,12 +46,22 @@ namespace ValensHasThePower Switch.DoorState = EDoorState.Open; } - if (Switch.ExfiltrationPoint == "EXFIL_ZONE_ZB013") - { - Switch.ExfiltrationPoint.Status = ?? - } + //Activate Exfil for ZB-013 + //if (Switch.ExfiltrationPoint == "EXFIL_ZONE_ZB013") + //{ + // Switch.ExfiltrationPoint.Status = ?? + //} //Reserve + if (Switch.Id == "autoId_00000_D2_LEVER" && Switch.name == "reserve_electric_switcher_lever") + { + Switch.DoorState = EDoorState.Open; + } + + if (Switch.Id == "00453" && Switch.name == "Node_GatesButton") + { + Switch.DoorState = EDoorState.Interacting; + } } } }