mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user