ID Cards ejected from modular computers are no longer ejected onto the floor. (#4883)

Tries to put ID cards and intellicards into the hands of the user instead of throwing it onto the floor
This commit is contained in:
Werner
2018-06-16 21:15:37 +02:00
committed by Erki
parent 8fac9ea624
commit f2e2d32359
2 changed files with 39 additions and 2 deletions

View File

@@ -63,7 +63,7 @@
for(var/datum/computer_file/program/P in idle_threads)
P.event_idremoved(1)
card_slot.stored_card.forceMove(get_turf(src))
user.put_in_hands(card_slot.stored_card)
card_slot.stored_card = null
update_uis()
to_chat(user, "You remove the card from \the [src]")
@@ -88,7 +88,7 @@
to_chat(user, "There is no intellicard connected to \the [src].")
return
ai_slot.stored_card.forceMove(get_turf(src))
user.put_in_hands(ai_slot.stored_card)
ai_slot.stored_card = null
ai_slot.update_power_usage()
update_uis()