Get verb mysteriously stopped working... in Developer Help
|
|
The get verb used to work all fine and dandy, but just recently, it quit working on me. If the gun is already in my inventory, it adds the ammo like it should, but if the gun is not in my inventory, it does nothing.
Get() set src in oview(0) for(var/obj/Weapon/Deringer/D in usr.contents) if(!D) if(Move(usr)) usr << "You pick up the [src]" return else usr << "You cannot pick up the [src]" return D.maxclip += rand(1,10) if(D.maxclip >= 16) D.maxclip = 15 del(src) return
|
|
Also, the if(!D) part will never execute.
Here's what you need instead:
Lummox JR