I added some of the flexibility to the !bp command as well.
Damage calculation moved to its own file, so the chat commands can simply import it.
Also added tests.
This was a long time in the making, and it's very possible I've screwed something up, although I tried to break it in every way I could think of. Please do let me know if there's anything to change!
This adds damage calculations, accessible by any of the following commands:
Argument order is very flexible. The following are all equivalent:
I added some of the flexibility to the
!bp
command as well. Damage calculation moved to its own file, so the chat commands can simply import it. Also added tests.This was a long time in the making, and it's very possible I've screwed something up, although I tried to break it in every way I could think of. Please do let me know if there's anything to change!