Fixes intellicard runtime

This commit is contained in:
ShizCalev
2018-10-03 23:07:57 -04:00
parent 4f1396ba36
commit c033d5093c
+3 -1
View File
@@ -26,10 +26,12 @@
if(!proximity || !target)
return
if(AI) //AI is on the card, implies user wants to upload it.
log_combat(user, AI, "uploaded", src, "to [target].")
target.transfer_ai(AI_TRANS_FROM_CARD, user, AI, src)
log_combat(user, AI, "carded", src)
else //No AI on the card, therefore the user wants to download one.
target.transfer_ai(AI_TRANS_TO_CARD, user, null, src)
if(AI)
log_combat(user, AI, "carded", src)
update_icon() //Whatever happened, update the card's state (icon, name) to match.
/obj/item/aicard/update_icon()