you can no longer stuff infinite ais in modsuits (#65915)

This commit is contained in:
Fikou
2022-04-05 19:37:56 -07:00
committed by GitHub
parent 579bbdfd48
commit 00db69ffdd
+7
View File
@@ -14,6 +14,8 @@
if(!do_after(user, 5 SECONDS, target = src))
balloon_alert(user, "interrupted!")
return
if(!ai)
return
intAI = ai
intAI.ai_restore_power()//So the AI initially has power.
intAI.control_disabled = TRUE
@@ -34,6 +36,9 @@
if(!intAI)
balloon_alert(user, "no AI in card!")
return
if(ai)
balloon_alert(user, "already has AI!")
return
if(intAI.deployed_shell) //Recall AI if shelled so it can be checked for a client
intAI.disconnect_shell()
if(intAI.stat || !intAI.client)
@@ -43,6 +48,8 @@
if(!do_after(user, 5 SECONDS, target = src))
balloon_alert(user, "interrupted!")
return
if(ai)
return
balloon_alert(user, "AI transferred to suit")
ai_enter_mod(intAI)
card.AI = null