Hey guys, did anyone figured out how to change haste rating? To change the maximum rating, increase or decrease it or make it a determined value.
Thanks, also is it possible to change the max HP of creatures i mean to bypass the 2147M limit?
Haven't figured it out yet
void Player::ApplyRatingMod(CombatRating cr, int32 value, bool apply)
{
m_baseRatingValue[cr]+=(apply ? value : -value);
// explicit affected values
switch (cr)
{
case CR_HASTE_MELEE:
{
float RatingChange = value * GetRatingMultiplier(cr);
ApplyAttackTimePercentMod(BASE_ATTACK, RatingChange, apply);
ApplyAttackTimePercentMod(OFF_ATTACK, RatingChange, apply);
break;
}
case CR_HASTE_RANGED:
{
float RatingChange = value * GetRatingMultiplier(cr);
ApplyAttackTimePercentMod(RANGED_ATTACK, RatingChange, apply);
break;
}
case CR_HASTE_SPELL:
{
float RatingChange = value * GetRatingMultiplier(cr);
ApplyCastTimePercentMod(RatingChange, apply);
break;
}
default:
break;
}
UpdateRating(cr);
}
I think I'm on good way to figure that out, thanks ! Also do you have any suggestion where should I start to look for the HP variables?
About the creature HP, does it give you an error I could search in the core or something? That would beat searching with no leads!