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
@@ -454,10 +454,12 @@
if(U.action(src))
to_chat(user, "<span class='notice'>You apply the upgrade to [src].</span>")
if(U.one_use)
U.afterInstall(src)
qdel(U)
else
U.forceMove(src)
upgrades += U
U.afterInstall(src)
else
to_chat(user, "<span class='danger'>Upgrade error.</span>")
U.forceMove(drop_location())