Merge pull request #13487 from DeltaFire15/borg-KA-upgrade-fix

Fixes borg KA upgrade installation
This commit is contained in:
silicons
2020-10-03 18:03:11 -07:00
committed by GitHub
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 item,
as performing this in action() will cause the upgrade 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