obj
Shuriken
name = "Shuriken"
//dont have a base icon so cant make weights icon!lol
icon='projectile weapons.dmi'
icon_state="shuriken"
density=1
oname="Shuriken"
Bump(A)
if(istype(A,/mob/))
var/obj/Shuriken/L=new();L.loc=usr
spawn(10)
spawn(5)
del(L)
for(var/mob/M in view(L))
var/damage = round(usr.Str*1.5);damage+=rand(1,damage/1.5)
view(M)<<"[M] takes [damage] damage from the Shuriken"
M.Hp-=damage;M.Death()
Problem description:
ok this isnt the whole code i have throw in place it leaves the user perfectly ,but then when it comes in contact with i.e a npc it doesnt delete, im wondering what have i done wrong?
Also using usr in procs. You shouldn't do that. What you should have is something like this:
I included the takedamage stuff because you were probably also abusing usr in Death() as well.