From 88467087279a62b9e5975160a6cf75f4a722ce55 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 17 Sep 2017 22:25:59 -0500 Subject: [PATCH] [MIRROR] Fixes cyborg airlock interaction (#2827) * Fixes cyborg airlock interaction (#30809) * changes the sheet check to respect cyborgs * Uses the proc instead of a hack that we wound need to fix again * I can code totaly, yeah, sober... * I cant posibly be drunk yet i only GOT the wine a minute ago * Fixes cyborg airlock interaction --- code/game/machinery/doors/airlock.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 13e6ca1253..54292a3af3 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -1011,7 +1011,7 @@ if(AIRLOCK_SECURITY_NONE) if(istype(C, /obj/item/stack/sheet/metal)) var/obj/item/stack/sheet/metal/S = C - if(S.amount < 2) + if(S.get_amount() < 2) to_chat(user, "You need at least 2 metal sheets to reinforce [src].") return to_chat(user, "You start reinforcing [src]") @@ -1025,7 +1025,7 @@ return else if(istype(C, /obj/item/stack/sheet/plasteel)) var/obj/item/stack/sheet/plasteel/S = C - if(S.amount < 2) + if(S.get_amount() < 2) to_chat(user, "You need at least 2 plasteel sheets to reinforce [src].") return to_chat(user, "You start reinforcing [src].")