[MIRROR] Disables mod links from virtual modsuits [NO GBP] [MDB IGNORE] (#25370)

* Disables mod links from virtual modsuits [NO GBP] (#80038)

## About The Pull Request
Via discussion in discord:

![image](https://github.com/tgstation/tgstation/assets/42397676/b1990bce-35c3-4266-9ee1-3f6abde846bb)
## Why It's Good For The Game
Virtual entities, however suited up they are, shouldn't be able to
communicate station side with crew or with syndicate entities.
## Changelog
🆑
fix: Mod links are now disabled in the virtual realm.
/🆑

* Disables mod links from virtual modsuits [NO GBP]

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-12-02 08:56:57 -05:00
committed by GitHub
co-authored by Jeremiah
parent ec1358d47d
commit 67c8055df5
6 changed files with 48 additions and 23 deletions
@@ -78,6 +78,16 @@
var/obj/effect/mob_spawn/corpse/spawner = thing
mutation_candidate_refs.Add(spawner.spawned_mob_ref)
continue
if(istype(thing, /obj/machinery/suit_storage_unit))
var/obj/machinery/suit_storage_unit/storage = thing
storage.disable_modlink()
continue
if(istype(thing, /obj/item/mod/control))
var/obj/item/mod/control/modsuit = thing
modsuit.disable_modlink()
UnregisterSignal(source, COMSIG_LAZY_TEMPLATE_LOADED)