This looks a lot cleaner than what was there. Thanks for digging into it.
I initially got the, "Your mana has absorbed %1 points of damage." message without the actual damage listed, but I can see the correct amount of mana being taken.
It looks like the Message_StringID() call is matching a template that doesn't apply parameters to the message.
I dump that to a stringstream and then pass it viewdmg.str().c_str() and the number displays.
Edit: I had some existing spell shield items that were muddying results.
Nice work, and thanks again for digging into this.
|