obj
Swarm
icon = 'Aburame insect swarm jutsu.dmi'
icon_state = "trail"
density = 1
Bump(A)
icon_state="Insect swarm"
if(ismob(A))
var/mob/M = A
var/damage = round(usr.Ninjutsu*8/6)
if(damage >= 1)
M.hp -= damage
view(M) << "[M] was hit by Insect Swarm for [damage] damage!!"
var/mob/O
// if(M.hp<=0)
// M.Death(O)
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
mob
verb
Swarm() // Verb used for firing the beam
set category = "Jutsus"
set name = "Insect Swarm"
if(usr.Chakra <= 150&&usr.hp >= 200)
usr<<"You dont have enough power!"
return
if(usr.froze)
usr<<"Your frozen"
return
else // If the firing var isn't 1...
if(usr.hp >= 100)
usr.hp -= 10
// if(usr.hp<=0)
// usr.Death(usr)
if(usr.Chakra<=0)
usr.Chakra = 0
usr.froze = 1
var/obj/Swarm/K = new /obj/Swarm
K.loc = usr.loc
K.dir = usr.dir
K.name="[usr]"
walk(K,K.dir)
sleep(300)
usr.froze = 0
del(K)
obj/Move()
..()
sleep(5)
Problem description The Obj Appears But and now moves but wont deal damage
Jub369 wrote:
In this single case, I ignored the lack of a problem description and decided to help some anyway. I didn't read any of your code besides these two lines, and I'll tell you this: If you don't call ..() in your Move() proc, your object won't move. When your object tries to move, all you're doing is calling sleep(4), but never anything involving actual movement.