mob/Bump(mob/M as mob in oview(1))
if(M != src)
var/damage= M.str - src.def
if(damage <= 0)
src<<"You bumped into [M] but took no damage!"
step_away(src,M,600,10)
else
src<<"You bumped into [M] causing [damage] damage!"
src.hp-=damage
step_away(src,M,600,10)
When running the game, i get the "You bumped into [M] causing [damage] damage!" message twice. Why would that happen? In these early stages, it's not that big of a problem, but in the long run it means it will take double the damage, and i don't want that.