From 00db69ffdd7a4b247371dba386da1181d3570724 Mon Sep 17 00:00:00 2001 From: Fikou <23585223+Fikou@users.noreply.github.com> Date: Wed, 6 Apr 2022 04:37:56 +0200 Subject: [PATCH] you can no longer stuff infinite ais in modsuits (#65915) --- code/modules/mod/mod_ai.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mod/mod_ai.dm b/code/modules/mod/mod_ai.dm index 58cd73fafcf..ed653109b8d 100644 --- a/code/modules/mod/mod_ai.dm +++ b/code/modules/mod/mod_ai.dm @@ -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