modules attached to active modsuits act as if the suit was activated, removed modules properly unequip themselves (#72341)

this seems neat for backend even if players cant use it right now also bug fix
This commit is contained in:
Fikou
2022-12-29 21:17:47 -06:00
committed by GitHub
parent d8bfb86c3d
commit 3630c3f497
+4 -1
View File
@@ -545,7 +545,8 @@
new_module.on_install()
if(wearer)
new_module.on_equip()
if(active)
new_module.on_suit_activation()
if(user)
balloon_alert(user, "[new_module] added")
playsound(src, 'sound/machines/click.ogg', 50, TRUE, SILENCED_SOUND_EXTRARANGE)
@@ -553,6 +554,8 @@
/obj/item/mod/control/proc/uninstall(obj/item/mod/module/old_module, deleting = FALSE)
modules -= old_module
complexity -= old_module.complexity
if(wearer)
old_module.on_unequip()
if(active)
old_module.on_suit_deactivation(deleting = deleting)
if(old_module.active)