Carding AIs now takes time. (#22564)

* Adds a do-after for living AIs

* Fixes some leftovers

* do_after_once
This commit is contained in:
Luc
2023-10-03 12:11:42 -04:00
committed by GitHub
parent 73df3fcf14
commit 3e176f6e0d
@@ -1323,6 +1323,14 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
if(!mind)
to_chat(user, "<span class='warning'>No intelligence patterns detected.</span>")//No more magical carding of empty cores, AI RETURN TO BODY!!!11
return
if(stat != DEAD)
to_chat(user, "<span class='notice'>Beginning active intelligence transfer: please wait.</span>")
if(!do_after_once(user, 5 SECONDS, target = src) || !Adjacent(user))
to_chat(user, "<span class='warning'>Intelligence transfer aborted.</span>")
return
new /obj/structure/AIcore/deactivated(loc)//Spawns a deactivated terminal at AI location.
aiRestorePowerRoutine = 0//So the AI initially has power.
control_disabled = TRUE //Can't control things remotely if you're stuck in a card!