fixes KA modkits being installed in borgs by others

These have been broken for so long holy fuck
This commit is contained in:
DeltaFire
2020-10-01 17:13:03 +02:00
parent f52e136faa
commit d54a899695
3 changed files with 24 additions and 11 deletions
@@ -27,6 +27,13 @@
return FALSE
return TRUE
/*
This proc gets called by upgrades after installing them. Use this for things that for example need to be moved into a specific borg module,
as performing this in action() will cause the module to end up in the borg instead of its intended location due to forceMove() being called afterwards..
*/
/obj/item/borg/upgrade/proc/afterInstall(mob/living/silicon/robot/R, user = usr)
return
/obj/item/borg/upgrade/proc/deactivate(mob/living/silicon/robot/R, user = usr)
if (!(src in R.upgrades))
return FALSE