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
+2 -1
View File
@@ -89,10 +89,11 @@
var/mob/M = user
if(isigniter(S.a_left) == isigniter(S.a_right)) //Check if either part of the assembly has an igniter, but if both parts are igniters, then fuck it
return
if(!M.drop_item()) //Remove the assembly from your hands
return
var/obj/item/device/onetankbomb/R = new /obj/item/device/onetankbomb(loc)
M.drop_item() //Remove the assembly from your hands
M.remove_from_mob(src) //Remove the tank from your character,in case you were holding it
M.put_in_hands(R) //Equips the bomb if possible, or puts it on the floor.