mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fixed airlock shells made from airlock electronics not triggering AAE circuit component (#69992)
Airlock shells made from airlock electronic and door assemblies would not trigger the 'Airlock Access Event' circuit component because the registered signals did not include the signals called by regular airlocks. This fixes that.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/door/airlock/shell/allowed(mob/user)
|
||||
if(SEND_SIGNAL(src, COMSIG_AIRLOCK_SHELL_ALLOWED, user) & COMPONENT_AIRLOCK_SHELL_ALLOW)
|
||||
if(SEND_SIGNAL(src, COMSIG_AIRLOCK_SHELL_ALLOWED, user) & COMPONENT_OBJ_ALLOW)
|
||||
return TRUE
|
||||
return isAdminGhostAI(user)
|
||||
|
||||
@@ -156,12 +156,16 @@
|
||||
. = ..()
|
||||
if(istype(shell, /obj/machinery/door/airlock))
|
||||
attached_airlock = shell
|
||||
RegisterSignal(shell, COMSIG_AIRLOCK_SHELL_ALLOWED , .proc/handle_allowed)
|
||||
RegisterSignal(shell, list(
|
||||
COMSIG_OBJ_ALLOWED,
|
||||
COMSIG_AIRLOCK_SHELL_ALLOWED,
|
||||
), .proc/handle_allowed)
|
||||
|
||||
/obj/item/circuit_component/airlock_access_event/unregister_shell(atom/movable/shell)
|
||||
attached_airlock = null
|
||||
UnregisterSignal(shell, list(
|
||||
COMSIG_AIRLOCK_SHELL_ALLOWED ,
|
||||
COMSIG_OBJ_ALLOWED,
|
||||
COMSIG_AIRLOCK_SHELL_ALLOWED
|
||||
))
|
||||
return ..()
|
||||
|
||||
@@ -193,4 +197,6 @@
|
||||
return
|
||||
|
||||
if(result["should_open"])
|
||||
return COMPONENT_AIRLOCK_SHELL_ALLOW
|
||||
return COMPONENT_OBJ_ALLOW
|
||||
else
|
||||
return COMPONENT_OBJ_DISALLOW
|
||||
|
||||
Reference in New Issue
Block a user