When Mob Defeated No EXP Gain? in Developer Help
|
|
Code:
mob/Monster/Goblin icon = 'monster.dmi' icon_state = "" HP = 25 Strength = 7 expplus = 7 var/mob/player/P New() . = ..() spawn() Wander() proc/Wander() while(src) var/Found = FALSE for(P in oview(5,src)) step_towards(src,P) Found = TRUE break if(Found != TRUE) step_rand(src) sleep(10) sleep(5) Bump(mob/M) if(istype(M,/mob/player)) Attack(M) proc/Attack(mob/M) flick("attack",src) sleep(2) var/damage = rand(1,Strength) M.HP -= damage view(src) << "[src] attacks [M]!" view(src) << "[damage] damage!" M.Death()
|
Problem description:My problem is when I kill the mob is doesn't give any EXP at all any suggestions?
|