Fixes borgs adding their anylyzers to security cameras.

This commit is contained in:
Firecage
2016-07-14 19:00:25 +02:00
parent b73fd0b457
commit c409c7f70a
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -162,6 +162,8 @@
else if(istype(W, /obj/item/device/analyzer))
if(!isXRay())
if(!user.drop_item(W))
return
upgradeXRay()
qdel(W)
user << "[msg]"
@@ -103,11 +103,11 @@
// Upgrades!
if(is_type_in_list(W, possible_upgrades) && !is_type_in_list(W, upgrades)) // Is a possible upgrade and isn't in the camera already.
if(!user.unEquip(W))
if(!user.drop_item(W))
return
user << "<span class='notice'>You attach \the [W] into the assembly inner circuits.</span>"
upgrades += W
W.loc = src
W.forceMove(src)
return
// Taking out upgrades