ID:143112
 
Code:i need some feed back on this code can u tell me if evertthing is all right
obj
Getsuga_Tensho
icon = 'Getsuga_Tensho.dmi'
icon_state = "1"
density = 1
icon_state = "1"
var/mob/O
New(location, owner) // this is for
O = owner
..()
Bump(atom/A) // when it bumps something
if(ismob(A)) // if it is a mob, damage the mob
var/mob/M = A
var/damage = round(O.reiatsu*0.50)
M.health -= damage
M.Death()
del(src)
obj
Getsuga_Tensho2
icon = 'Getsuga_Tensho.dmi'
icon_state = "2"
density = 1
icon_state = "2"
var/mob/O
New(location, owner) // this is for
O = owner
..()
Bump(atom/A) // when it bumps something
if(ismob(A)) // if it is a mob, damage the mob
var/mob/M = A
var/damage = round(O.reiatsu*0.50)
M.health -= damage
M.Death()
del(src)
mob
verb
Getsuga_Tensho()
set category = "Zanpakuto/Abilties"
set name = "Getsuga Tensho "
if(usr.Doing==1)
return
if(usr.reiatsu <= 500)
usr<<"You do not have enough reiatsu"
return
var/obj/Getsuga_Tensho/E1 = new /obj/Getsuga_Tensho (src.loc, src)
var/obj/Getsuga_Tensho2/E2 = new /obj/Getsuga_Tensho2 (src.loc, src)
if(usr.dir==NORTH)
E1.loc=locate(usr.x,usr.y,usr.z)
E2.loc=locate(usr.x-1,usr.y,usr.z)
walk(E1,NORTH)
walk(E2,NORTH)
if(usr.dir==SOUTH)
E1.loc=locate(usr.x,usr.y,usr.z)
E2.loc=locate(usr.x-1,usr.y,usr.z)
walk(E1,SOUTH)
walk(E2,SOUTH)
if(usr.dir==EAST)
E1.loc=locate(usr.x+1,usr.y,usr.z)
E2.loc=locate(usr.x+2,usr.y,usr.z)
if(usr.dir==WEST)
E1.loc=locate(usr.x-1,usr.y,usr.z)
E2.loc=locate(usr.x-2,usr.y,usr.z)
src.reiatsu -= 500
E1.loc = usr.loc
E1.dir = usr.dir
usr.Doing=1
sleep(50)
usr.Doing=0
del(E1)
del(E2)


Problem description: