Project

General

Profile

Bug #118

Updated by Hilapdatus over 4 years ago

Some NPCs have outrageously high (>1000) stats 
 It has been noted that some NPCs have outrageously high stats.    The Maze Keeper, for instance, has stats that are greater than 1000. 

 I discovered that this can happen when SetLevel() is called before SetRace(). 

 SetRace() calls genetics::eventInitializeStats().    This function is whack and has been for a long time!    Some recent change that I made elsewhere seems to have allowed the crazy of this function to emerge. 

 It takes the base stat level for the given race and multiples it by 1/10th of the NPCs level.    It then halves this multiples it by a factor determined by the stat class, anywhere from 1.8 for Excellent stats to 0.5 for horrendous stats.    This value and is then multipled by the NPCs level and divided by 3.5. 

 So, let's look at the Maze Keeper, a level 42 god.    The god race has a stat class of 1 (Excellent) for all stats so the factor is 1.8.    The base stat level for each stat is 43.    So, given the information above, each stat would be: 

 <pre>43 * 42 / 10.0 / 2 * 43 / 3.5 == 1109</pre> <pre> 
 </pre> 


 <pre>0</pre>

Back