mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
Carding AIs now takes time. (#22564)
* Adds a do-after for living AIs * Fixes some leftovers * do_after_once
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user