Fix Pre-Loaded Syndicate AI appearing in PDA messenger (#83692)

## About The Pull Request

What it says on the tin.

I experienced this one personally when a lawyer (ofc) called out my
existence mere moments after being activated through no fault of my own
🧂

## Why It's Good For The Game

Fix good.

## Changelog
🆑
fix: Pre-Loaded Syndicate Intellicard AI's no longer appear in PDA
messenger.
/🆑
This commit is contained in:
Wayland-Smithy
2024-06-06 00:56:27 -04:00
committed by GitHub
parent 2bd002d5ed
commit f0f3459d79
@@ -62,6 +62,11 @@
// Make it look evil!!!
new_ai.hologram_appearance = mutable_appearance('icons/mob/silicon/ai.dmi',"xeno_queen") //good enough
new_ai.icon_state = resolve_ai_icon("hades")
// Hide PDA from messenger
var/datum/computer_file/program/messenger/msg = locate() in new_ai.modularInterface.stored_files
if(msg)
msg.invisible = TRUE
// Transfer the AI from the core we created into the card, then delete the core
capture_ai(new_ai, user)
var/obj/structure/ai_core/deactivated/detritus = locate() in get_turf(src)