mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Adds Eject ID verbs to record computers.
This commit is contained in:
@@ -16,6 +16,23 @@
|
|||||||
var/temp = null
|
var/temp = null
|
||||||
var/printing = 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)
|
/obj/machinery/computer/med_data/attackby(obj/item/O as obj, user as mob)
|
||||||
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
||||||
usr.drop_item()
|
usr.drop_item()
|
||||||
|
|||||||
@@ -22,6 +22,22 @@
|
|||||||
var/sortBy = "name"
|
var/sortBy = "name"
|
||||||
var/order = 1 // -1 = Descending - 1 = Ascending
|
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)
|
/obj/machinery/computer/secure_data/attackby(obj/item/O as obj, user as mob)
|
||||||
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
||||||
|
|||||||
Reference in New Issue
Block a user