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
+8
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