mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 23:13:06 +00:00
Clicking the magnetic card slot option on the desktop will eject all cards. No more eating cards!
This commit is contained in:
@@ -186,6 +186,14 @@
|
||||
interact()
|
||||
return
|
||||
// else ???
|
||||
if(istype(C,/obj/item/part/computer/cardslot))
|
||||
if(computer.cardslot.reader != null)
|
||||
computer.cardslot.remove()
|
||||
if(istype(C,/obj/item/part/computer/cardslot/dual))
|
||||
if(computer.cardslot.writer != null)
|
||||
computer.cardslot.remove(computer.cardslot.writer)
|
||||
if(computer.cardslot.reader != null)
|
||||
computer.cardslot.remove(computer.cardslot.reader)
|
||||
interact()
|
||||
return
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@
|
||||
var/mob/living/carbon/human/user = usr
|
||||
if(istype(user) && !user.get_active_hand())
|
||||
user.put_in_hands(reader)
|
||||
else
|
||||
reader.loc = computer.loc
|
||||
reader = null
|
||||
|
||||
// Authorizes the user based on the computer's requirements
|
||||
@@ -190,5 +192,7 @@
|
||||
var/mob/living/carbon/human/user = usr
|
||||
if(ishuman(user) && !user.get_active_hand())
|
||||
user.put_in_hands(card)
|
||||
else
|
||||
card.loc = computer.loc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user