[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
+8
View File
@@ -774,3 +774,11 @@
update_speed()
qdel(speed_potion)
return SPEED_POTION_STOP
/// Disables the mod link frequency attached to this unit.
/obj/item/mod/control/proc/disable_modlink()
if(isnull(mod_link))
return
mod_link.end_call()
mod_link.frequency = null