Code.dm:13446:error: M.deathcheck: undefined proc
Code.dm:13448:error: M.Wdeathcheck: undefined proc
Errors are here:
Bump(mob/M)
..()
var/mob/P = src
if(istype(M,/mob/Pokemon))
if(M == owner||M.owner == P.owner||Wfight==0||fighting)
return
else
var/Damage = P.str
M.hp -= Damage
view() << "[src] attacks [M] for [Damage]!"
if(P.owned==1)
M.deathcheck()
else
M.Wdeathcheck()
src.fighting = 1
sleep(5)
src.fighting = 0
The procs:
mob/Pokemon/proc/deathcheck(mob/M as mob)
if(!M) return
mob/Wild_Pokemon/proc/Wdeathcheck(mob/M)
if(src.hp<=0)
oview(12) << "[src] fainted!"
del(M)
mob/Pokemon/deathcheck(mob/M)
if(src.hp <=0)
src.happiness-=5
src.fainted=1
oview(12) <<"[src] fainted!"
src.returning(src.owner)
usr.PkmInInven+=1
Problem description:
The procs are defined, but dream maker says they are not.
I've been working on it for a day, and still can't get them fixed =O.