mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Co-authored-by: Changelogs <action@github.com> Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
18 lines
544 B
Plaintext
18 lines
544 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 = 0
|
|
icon_state = "cardreader"
|
|
hardware_size = 1
|
|
origin_tech = list(TECH_DATA = 2)
|
|
|
|
var/obj/item/card/id/stored_card = null
|
|
|
|
/obj/item/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
|
|
return ..() |