mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
- Fixes a runtime error when an ID Card slot is Destroy()-ed - Adds few presets for consoles, such as, engineering console, command console, etc. - Adds tablet and cheap tablet as loadout preferences with cost of 4 and 3 points respectively. Cheap tablet contains only worst battery, hard drive and network card, regular tablet has average components.
17 lines
523 B
Plaintext
17 lines
523 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
|
|
|
|
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
|
|
..() |