mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-24 23:49:29 -04:00
Core/Unit: rename several getters to follow codestyle
uint8 GetLevel()
uint8 GetLevelForTarget(WorldObject const* /*target*/)
void SetLevel(uint8 lvl)
uint8 GetRace()
uint32 GetRaceMask()
uint8 GetClass()
uint32 GetClassMask()
uint8 GetGender()
(cherry picked from commit 5c09ff51f7)
This commit is contained in:
@@ -256,7 +256,7 @@ public:
|
||||
if (Unit* pet = GetUnitOwner())
|
||||
if (_tempBonus)
|
||||
{
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->getLevel());
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->GetLevel());
|
||||
uint32 healthMod = 0;
|
||||
uint32 baseHealth = pInfo->health;
|
||||
switch (pet->GetEntry())
|
||||
@@ -288,7 +288,7 @@ public:
|
||||
if (Unit* pet = GetUnitOwner())
|
||||
if (pet->IsPet())
|
||||
{
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->getLevel());
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->GetLevel());
|
||||
pet->ToPet()->SetCreateHealth(pInfo->health);
|
||||
}
|
||||
}
|
||||
@@ -400,7 +400,7 @@ public:
|
||||
if (Unit* pet = GetUnitOwner())
|
||||
if (_tempBonus)
|
||||
{
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->getLevel());
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->GetLevel());
|
||||
uint32 manaMod = 0;
|
||||
uint32 baseMana = pInfo->mana;
|
||||
switch (pet->GetEntry())
|
||||
@@ -428,7 +428,7 @@ public:
|
||||
if (Unit* pet = GetUnitOwner())
|
||||
if (pet->IsPet())
|
||||
{
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->getLevel());
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(pet->GetEntry(), pet->GetLevel());
|
||||
pet->ToPet()->SetCreateMana(pInfo->mana);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user