mob
verb
Attack(mob/M as mob in oview(1))
var/damage = usr.str - M.def
if(damage <= 1)
damage = 1
if(damage >= 1) src.Str_Mastery += 100
else
M.hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()
mob
proc
deathcheck()
if(src.hp <= 0)
view() << "\red [src] dies!"
src.hp = 10
src.Move(locate(1,1,1))
usr.str += 1
usr.def += 1
Problem description:
loading Map1.dmm
saving Game2.dmb
Game2.dmb - 0 errors, 1 warning (double-click on an error to jump to it)