This code is now complete and is very accurate within about 1 point or so. All issues have been resolved. The only standing addition that needs to be made to be 100% finalized is for spell +attack that is supposed to exceed the worn cap. If there is a way to find the spell attack from spells like Avatar/Champion, it should be very easy to get it added to this code. I added this to the SVN as-is. Currently, it is only used for #showstats, but it could easily be expanded to be used for mitigation calculation. Feedback welcome
