mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
18 lines
558 B
Plaintext
18 lines
558 B
Plaintext
/obj/item/weapon/computer_hardware/card_slot
|
|
name = "RFID card slot"
|
|
desc = "Slot that allows this computer to write data on RFID cards. Necessary for some programs to run properly."
|
|
power_usage = 10 //W
|
|
critical = 0
|
|
icon_state = "cardreader"
|
|
hardware_size = 1
|
|
origin_tech = list(TECH_DATA = 2)
|
|
|
|
var/obj/item/weapon/card/id/stored_card = null
|
|
|
|
/obj/item/weapon/computer_hardware/card_slot/Destroy()
|
|
if(holder2 && (holder2.card_slot == src))
|
|
holder2.card_slot = null
|
|
if(stored_card)
|
|
stored_card.forceMove(get_turf(holder2))
|
|
holder2 = null
|
|
..() |