cheridan. cheridan. it's just be [name], not [src.name]


On Mon, Dec 30, 2013 at 10:25 PM, Cheridan <notifications@github.com> wrote:

> In code/game/objects/items/toys.dm:
>
> > +    name = "tommy gun"
> > +    desc = "Looks almost like the real thing! Great for practicing Drive-bys"
> > +    icon_state = "tommy"
> > +    item_state = "tommy"
> > +    flags = FPRINT | TABLEPASS| CONDUCT
> > +    w_class = 1.0
> > +    attack_verb = list("struck", "hammered", "hit", "bashed")
> > +    bullets = 20.0
> > +
> > +/obj/item/toy/crossbow/tommygun/attackby(obj/item/I as obj, mob/user as mob)
> > +	if(istype(I, /obj/item/toy/ammo/crossbow))
> > +		if(bullets <= 19)
> > +			user.drop_item()
> > +			del(I)
> > +			bullets++
> > +			user << "<span class='notice'>You load the foam dart into the tommy gun.</span>"
>
> [src.name] would be the usage in this case, but yeah same principle.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tgstation/-tg-station/pull/2147/files#r8591984>
> .
>