Put drop_item() calls inside ifs. Replaced some drop_item() with unEquip(

This commit is contained in:
xxalpha
2015-06-14 20:11:40 +01:00
parent 4f177d1ff5
commit b2e84a0d3c
113 changed files with 350 additions and 186 deletions
@@ -47,7 +47,8 @@
/obj/item/device/laser_pointer/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/weapon/stock_parts/micro_laser))
if(!diode)
user.drop_item()
if(!user.unEquip(W))
return
W.loc = src
diode = W
user << "<span class='notice'>You install a [diode.name] in [src].</span>"