obj
katon
icon='katon.dmi'
density=1
var/katondamage=10
Bump(var/M)//this is what it does when it hits stuff
if(istype(M,/mob))//checks if M is a mob
M:hp-=src.katondamage//does the combined damage
M:Deathcheck()//run a death check? i duno what yours is lol
del src//then deletes the needle
else
del src//this deletes it if it hits anything other then a mob
mob
verb
Katon_Goukakyuu_no_Jutsu()
hidden = 1
if(usr.char_clan == "Uchiha")
hidden = 0
if(usr.Chakra >= 2)
set category = "Ninjutsu"
usr.katon = 'katon.dmi'
if(usr.Rest==1)
usr<<"Not while resting"
return
if(Chakra > 9)
view(6) << "[usr]:Katon......"
usr.Chakra-= 25
sleep(15)
usr.blasting = 1
sleep(15)
if(src)
var/katondamage=10
var/damage = katondamage
view(6) << "[usr]:Goukakyuu no Jutsu!"
usr.projectile(new/obj/katon(usr.loc),usr.dir,40)
view(6) << "[usr] does [damage] damage!"
src.hp-=damage + usr.ninjutsu
for(var/obj/O in katon)//get all the needles in the list!
O:katondamage+=usr.ninjutsu//(change str to ninjutsu)this adds the users ninjutsu to the 3 needle damage
O.loc=usr.loc
usr.Deathcheck()
usr.blasting = 0
if(usr.Rest==1)
usr<<"Not while resting"
return
else
usr << "You are too exhausted!,Rest"
mob
proc
projectile(obj/projectile,var/dir,var/delay)
walk(projectile,dir)
sleep(10)
del(projectile)
Problem description:It says it hits me for 10 damage but it hits me for 30 and my max hp and hp is going down =\ it shouldnt even be hitting me