From 30385c22371a4e47ac43eac2fc953f7f8854fad4 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Mon, 30 Jun 2014 08:42:19 +0930 Subject: [PATCH] Fixes an access issue with the ID computer. --- code/game/machinery/computer/card.dm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm index 78e0b16c641..fd11787363f 100644 --- a/code/game/machinery/computer/card.dm +++ b/code/game/machinery/computer/card.dm @@ -30,6 +30,29 @@ return formatted +/obj/machinery/computer/card/verb/eject_id() + set category = "Object" + set name = "Eject ID Card" + set src in oview(1) + + if(!usr || usr.stat || usr.lying) return + + if(scan) + usr << "You remove \the [scan] from \the [src]." + scan.loc = get_turf(src) + if(!usr.get_active_hand()) + usr.put_in_hands(scan) + scan = null + else if(modify) + usr << "You remove \the [modify] from \the [src]." + modify.loc = get_turf(src) + if(!usr.get_active_hand()) + usr.put_in_hands(modify) + modify = null + else + usr << "There is nothing to remove from the console." + return + /obj/machinery/computer/card/attackby(obj/item/weapon/card/id/id_card, mob/user) if(!istype(id_card)) return ..()