obj
Training_Log
icon = 'Turfs.dmi'
icon_state = "Log"
density = 1
obj
Needle
icon = 'Needle.dmi'
Price = 500
var/Material
Bump(atom/A)
var/mob/Owner
if(ismob(A))
var/mob/M = A
var/dmg = round(Owner.NeedleSkill + Owner.Taijutsu)
switch(Material)
if("Bronze") dmg=dmg*1
if("Iron") dmg=dmg*1.5
if("Steel") dmg=dmg*2
M.Health -= dmg
view(M)<<"[M] was hit by \a [src] for [dmg]"
M.Death(Owner)
if(istype(A,/obj/Training/Training_Log))
Owner.NeedleEXP += 25
Owner.NeedleLvlUp()
del(src)
Problem description:
I think I messed up in the typecasting or whatever, but when the Knife obj bumps into the Training_Log obj, it doesn't give any experience to whatever mob "O" is.
Lummox JR