mob/verb
Pyrodarts(mob/M in oview(src))
set category = "Spells"
if(usr.MP < 5)
usr << "You don't have enough MP to cast Pyrodarts!"
else
var/obj/projectile/fireball/F = new (src.loc, src)
walk_to(F, M, 5)
usr << "PYRODARTS!"
spawn(50)
del(F)
obj/projectile
var/mob/fireball
density = 1
New(l, mob/M)
src = M
..()
fireball
icon = 'Pyrodarts.dmi'
Bump(atom/A)
if(ismob(A))
var/mob/M = A
var/damage = usr.Magic_Attack + usr.Fire_Skill - M.Resistance
M.HP -= damage
usr << "[M] has taken [damage] damage!"
M.DeathCheck()
del(src)
Problem description:
everything checks out,but the icon doesn't appear nor does it deal damage. i also want to set a range to it. plz help. this wil be a huge help with all spells.
you never specified an icon