Multiple AI fixes (#68451)

* AI (de)construction posibrains will not ping ghosts

* fixes MMIs not transferring brainmob to ejected brain
adds ability to (un)anchor AIs with a wrench

* adds comments for new posibrain creation
adds arg to deactivated ai core structure Initialize() to skip creating an MMI which will be overwritten anyway
This commit is contained in:
13spacemen
2022-07-18 11:21:39 +05:00
committed by GitHub
parent 81077df271
commit 2300cf63fa
5 changed files with 21 additions and 8 deletions
+4 -2
View File
@@ -68,11 +68,13 @@
anchored = TRUE
state = AI_READY_CORE
/obj/structure/ai_core/deactivated/Initialize(mapload, posibrain = FALSE)
/obj/structure/ai_core/deactivated/Initialize(mapload, skip_mmi_creation = FALSE, posibrain = FALSE)
. = ..()
circuit = new(src)
if(skip_mmi_creation)
return
if(posibrain)
core_mmi = new/obj/item/mmi/posibrain(src)
core_mmi = new/obj/item/mmi/posibrain(src, /* autoping = */ FALSE)
else
core_mmi = new(src)
core_mmi.brain = new(core_mmi)