mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[0023] Use DBC data to set the correct amount of hp and mana based on player level and class. Patch by Subv
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
6092ba754f
commit
0d7006dd23
12 changed files with 48 additions and 142 deletions
|
|
@ -509,12 +509,7 @@ class ObjectMgr
|
|||
|
||||
PetLevelInfo const* GetPetLevelInfo(uint32 creature_id, uint32 level) const;
|
||||
|
||||
PlayerClassInfo const* GetPlayerClassInfo(uint32 class_) const
|
||||
{
|
||||
if (class_ >= MAX_CLASSES) return NULL;
|
||||
return &playerClassInfo[class_];
|
||||
}
|
||||
void GetPlayerClassLevelInfo(uint32 class_, uint32 level, PlayerClassLevelInfo* info) const;
|
||||
void GetPlayerClassLevelInfo(uint32 class_, uint32 level, uint32& baseHP, uint32& baseMana) const;
|
||||
|
||||
PlayerInfo const* GetPlayerInfo(uint32 race, uint32 class_) const
|
||||
{
|
||||
|
|
@ -1174,8 +1169,6 @@ class ObjectMgr
|
|||
// PetLevelInfoMap[creature_id][level]
|
||||
PetLevelInfoMap petInfo; // [creature_id][level]
|
||||
|
||||
PlayerClassInfo playerClassInfo[MAX_CLASSES];
|
||||
|
||||
void BuildPlayerLevelInfo(uint8 race, uint8 class_, uint8 level, PlayerLevelInfo* plinfo) const;
|
||||
PlayerInfo playerInfo[MAX_RACES][MAX_CLASSES];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue