Clicking the magnetic card slot option on the desktop will eject all cards. No more eating cards!

This commit is contained in:
DJSnapshot
2014-06-23 14:43:43 -07:00
parent db6a403c2f
commit c007b013d0
2 changed files with 12 additions and 0 deletions

View File

@@ -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

View File

@@ -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