From 4c4cd801ce43554586c5b01c8a1a73eeead02cf8 Mon Sep 17 00:00:00 2001 From: san7890 Date: Wed, 24 Aug 2022 15:36:04 -0600 Subject: [PATCH] Allows Brig Subtypes To Be Usable for Departmental Orders (#69411) * Allows Brig Subtypes To Be Usable for Departmental Orders Hey there, I saw an odd thing on IceBox the other day, where they couldn't deliver the departmental order crate because they were trying to open it in `/area/station/security/brig/upper` and not `/area/station/security/brig`. When they went down a z-level and opened it in the correct area, it worked perfectly fine. However, I think it's a bit obtuse, and this sort of thing might only get worse as multi-z maps become more dominant. So, let's apply a code solution by making the areas list read off typesof for the department_delivery_areas for security crates. * typesof didn't actually work, we go explicit now --- code/modules/cargo/department_order.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/cargo/department_order.dm b/code/modules/cargo/department_order.dm index b93065751b0..87a226b7319 100644 --- a/code/modules/cargo/department_order.dm +++ b/code/modules/cargo/department_order.dm @@ -190,7 +190,10 @@ GLOBAL_LIST_INIT(department_order_cooldowns, list( /obj/machinery/computer/department_orders/security name = "security order console" circuit = /obj/item/circuitboard/computer/security_orders - department_delivery_areas = list(/area/station/security/brig) + department_delivery_areas = list( + /area/station/security/brig, + /area/station/security/brig/upper, + ) override_access = ACCESS_HOS req_one_access = REGION_ACCESS_SECURITY dep_groups = list("Security", "Armory")