[9216] Fixed hunter pet XP requirements.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also move calculation to function. And avoid use operator[] for access to per-area base xp table data.
This commit is contained in:
Lightguard 2010-01-20 04:59:20 +03:00 committed by VladimirMangos
parent 2b891624c6
commit 0088d1300c
5 changed files with 13 additions and 11 deletions

View file

@ -637,8 +637,9 @@ class ObjectMgr
void LoadTrainerSpell();
std::string GeneratePetName(uint32 entry);
uint32 GetBaseXP(uint32 level);
uint32 GetXPForLevel(uint32 level);
uint32 GetBaseXP(uint32 level) const;
uint32 GetXPForLevel(uint32 level) const;
uint32 GetXPForPetLevel(uint32 level) const { return GetXPForLevel(level)/20; }
int32 GetFishingBaseSkillLevel(uint32 entry) const
{