I want to use a certain damage formula in my game, but I can't figure out how to make a var equal a proc.
Here's the proc:
mob/proc // damage(mob/M in oview(1)) // usr.damage = usr.patk / M.pdef * usr.pdef / M.patk * 8
And here's the verb attempting to use the proc:
mob/verb Attack(mob/M in oview(1)) var/damage = damage() M.HP -= damage usr.levelup() usr.deathcheck()
return damage
I'm not sure if it would be the same on BYOND though.