From 8f56610e1eef232188ed57403ddeb5469dd0bfac Mon Sep 17 00:00:00 2001 From: Kyep Date: Tue, 28 Jul 2020 20:39:59 -0700 Subject: [PATCH] updates explanation in comments --- code/__DEFINES/construction.dm | 2 +- code/datums/wires/airlock.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/construction.dm b/code/__DEFINES/construction.dm index d1251402b5f..1ef94c8ba65 100644 --- a/code/__DEFINES/construction.dm +++ b/code/__DEFINES/construction.dm @@ -32,7 +32,7 @@ #define AICONTROLDISABLED_OFF 0 // Silicons can control the airlock normally. #define AICONTROLDISABLED_ON 1 // Silicons cannot control the airlock, but can hack the airlock. #define AICONTROLDISABLED_BYPASS 2 // Silicons can control the airlock because they succeeded on the hack -#define AICONTROLDISABLED_PERMA 3 // Wire cutting has rendered it permanently bypassed +#define AICONTROLDISABLED_PERMA 3 // Wire cutting an airlock on AICONTROLDISABLED_BYPASS toggles it between AICONTROLDISABLED_BYPASS and this. //plastic flaps construction states #define PLASTIC_FLAPS_NORMAL 0 diff --git a/code/datums/wires/airlock.dm b/code/datums/wires/airlock.dm index 4db560a0749..b82c8f2cc8d 100644 --- a/code/datums/wires/airlock.dm +++ b/code/datums/wires/airlock.dm @@ -113,7 +113,7 @@ if(!mended) //one wire for AI control. Cutting this prevents the AI from controlling the door unless it has hacked the door through the power connection (which takes about a minute). If both main and backup power are cut, as well as this wire, then the AI cannot operate or hack the door at all. - //aiControlDisabled: If 1, AI control is disabled until the AI hacks back in and disables the lock. If 2, the AI has bypassed the lock. If -1, the control is enabled but the AI had bypassed it earlier, so if it is disabled again the AI would have no trouble getting back in. + //aiControlDisabled: see explanation in code\__DEFINES\construction.dm#32 if(A.aiControlDisabled == AICONTROLDISABLED_OFF) A.aiControlDisabled = AICONTROLDISABLED_ON else if(A.aiControlDisabled == AICONTROLDISABLED_PERMA)