Adds Eject ID verbs to record computers.

This commit is contained in:
Zuhayr
2014-07-02 06:17:54 +09:30
parent aa4581e72f
commit 04a6ea92db
2 changed files with 33 additions and 0 deletions

View File

@@ -16,6 +16,23 @@
var/temp = null
var/printing = null
/obj/machinery/computer/med_data/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
usr << "There is nothing to remove from the console."
return
/obj/machinery/computer/med_data/attackby(obj/item/O as obj, user as mob)
if(istype(O, /obj/item/weapon/card/id) && !scan)
usr.drop_item()

View File

@@ -22,6 +22,22 @@
var/sortBy = "name"
var/order = 1 // -1 = Descending - 1 = Ascending
/obj/machinery/computer/secure_data/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
usr << "There is nothing to remove from the console."
return
/obj/machinery/computer/secure_data/attackby(obj/item/O as obj, user as mob)
if(istype(O, /obj/item/weapon/card/id) && !scan)