View Single Post
  #1  
Old 07-17-2008, 03:35 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default Chaotic Potential

i was going though the code working on a magelo clone and i noticed my hp on the clone where not showing up right in game then i did a show stats and boom there where the stats so i started looking though them in the code and what do you know..

Chaotic Potential as not being calculated into the getmaxstat() setting..

i set this but have not tested

works in the clone though.'
client_mods.cpp
Code:
sint16 Client::GetMaxStat() const {
	int level = GetLevel();
	
	sint16 base = 0;
	
	if (level < 61) {
		base = 255;
	}
	else if (level < 71) {
		base =  255 + 5 * (level - 60);
	}
	else {
		base = 280;
	}
	
	base += GetAA(aaPlanarPower) * 5;
//////////ADDED/////////////////////////////////////
	base += GetAA(aaChaoticPotential) * 5;
////////END ADDED///////////////////////////////////
	return(base);
}
like i said have not tested it not sure if aaChaoticPotential is defined anywhere but it at lests show what im talking about.
Reply With Quote