DblClick()
..()
var/lol
var/torp = locate(/obj/items/torpart1) in usr.client.screen
for(var/obj/items/O in usr.client.screen)if(O.equip==usr.hand)lol=O
if(istype(lol,/obj/items/welder)&& torp)
if(lol:fuel < 1)
usr<<"You don't have enough fuel to weld the torpedo parts together."
return
else
lol:fuel -= 5
usr<<"Please don't move while you're welding the torpedo parts together."
var/locater = usr.loc
sleep(30)
if(usr.loc == locater)
new /obj/items/torpart2(src.loc)
del(src)
del(torp)
Problem description:
Everything else works except del(torp), the other torpedo part is deleted, and the new one comes into place. I don't know why it doesn't delete it.