View Single Post
  #64  
Old 11-17-2017, 07:18 PM
Jaxon Jaxon is offline
Sarnak


Join Date: Aug 2010
Posts: 373
Default

Another interesting point of agreement is in the formula that EQemu uses to calculate your base mana pool. That formula is at https://www.project1999.com/forums/s...47#post1580147

Code:
if((( Wis - 199 ) / 2) > 0)
	MindLesserFactor = ( Wis - 199 ) / 2;
else
	MindLesserFactor = 0;

MindFactor = Wis - MindLesserFactor;

if(Wis > 100)
	max_m = (((5 * (MindFactor + 20)) / 2) * 3 * GetLevel() / 40);
else
	max_m = (((5 * (MindFactor + 200)) / 2) * 3 * GetLevel() / 100);
These numbers are integers, so you truncate the decimals after each division operation.

If you want to calculate the base mana pool of a level 60 character with 255 WIS, it works out like this:
Code:
MindLesserFactor = (255 - 199) / 2 = 28
MindFactor       = 255 - 28 = 227
max_m            = 5 * (227 + 20) / 2 = 617 (617.5 truncated)
                   617  * 3 =  1851
                   1851 * 60 = 111060
                   111060 / 40 = 2776 (2776.5 truncated)
If you take 4164, which is the maximum mana seen in ShowEQ, and subtract 1388 from that, you end up with 2776 mana. The fact that these two numbers agree exactly lends support to the idea that the base mana formula in the emulator is the same base mana formula that was used during Luclin.
Reply With Quote