Update pai_shell.dm
This commit is contained in:
@@ -29,6 +29,13 @@
|
||||
if(!L.temporarilyRemoveItemFromInventory(card))
|
||||
to_chat(src, "<span class='warning'>Error: Unable to expand to mobile form. Chassis is restrained by some device or person.</span>")
|
||||
return FALSE
|
||||
if(istype(card.loc, /obj/item/integrated_circuit/input/pAI_connector))
|
||||
var/obj/item/integrated_circuit/input/pAI_connector/C = card.loc
|
||||
C.RemovepAI()
|
||||
C.visible_message("<span class='notice'>[src] ejects itself from [C]!</span>")
|
||||
playsound(src, 'sound/items/Crowbar.ogg', 50, 1)
|
||||
C.installed_pai = null
|
||||
C.push_data()
|
||||
forceMove(get_turf(card))
|
||||
card.forceMove(src)
|
||||
if(client)
|
||||
|
||||
Reference in New Issue
Block a user