mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
18 lines
561 B
Plaintext
18 lines
561 B
Plaintext
/obj/item/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 = FALSE
|
|
icon_state = "cardreader"
|
|
hardware_size = 1
|
|
origin_tech = list(TECH_DATA = 2)
|
|
|
|
var/obj/item/card/id/stored_card
|
|
|
|
/obj/item/computer_hardware/card_slot/Destroy()
|
|
if(parent_computer?.card_slot == src)
|
|
parent_computer.card_slot = null
|
|
if(stored_card)
|
|
stored_card.forceMove(get_turf(parent_computer))
|
|
parent_computer = null
|
|
return ..() |