obj
Amaterasu1
icon = 'Amaterasu.dmi'
density = 1
pixel_x = -4
pixel_y = -4
Bump(A)
if(ismob(A))
var/mob/M = A
var/damage = src.Ninjutsu
if(damage >= 1)
var/mob/O = src.Fowner
M.health -= damage
view(M)<< "<b><font size=1 face=verdana color=red>[M] was hit by [O]'s Amaterasu for [damage] damage!!"
M.overlays+=/obj/AmaterasuBurn/
M.inamat = 1
src.loc=locate(101,101,1)
End
if(M.inamat==0)
M.overlays-=/obj/AmaterasuBurn/
M.inamat = 0
del(src)
return
else
M.health-=M.maxHP/6
M<<"Amateratsu burns your body."
if(M.health>=0)
sleep(60)
goto End
if(M.health<=0)
M.health=0
M.Death(O)
M.overlays-=/obj/AmaterasuBurn/
M.inamat = 0
M.inamat2 = 0
del(src)
return
M.Death(O)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
Problem description:
I've been trying to attach a poison like effect with the projectile. Never got the loop to work. I have no idea where to go from here.