Dex-chan lover
- Joined
- Jan 26, 2018
- Messages
- 911
I'm gonna go out on a limb and assume his stat display is a signed long int for some reason, while his actual mana is an unsigned long long int or something, assuming 32 bits and 64 bits for those respectively (C++ standard as of C++11). Effectively, he has for instance 6442450944 (or 2^32 * 1.5) + his shown max MP, enough that it loops from 0 to the maximum positive value that fits in a 32 bit int, overflows into the negative, and then passes zero again to get to his positive number. Though it could be even as high as 18446744071562067968 (or 2^64 - 2^32* 0.5) + his shown stat by that logic, then it'd just loop around a bunch of times.