mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9389] Cleanup config data. Use proper names and expected types.
This commit is contained in:
parent
58d188f21a
commit
ebfb0f9835
63 changed files with 1591 additions and 967 deletions
|
|
@ -579,7 +579,7 @@ void Pet::Regenerate(Powers power)
|
|||
case POWER_FOCUS:
|
||||
{
|
||||
// For hunter pets.
|
||||
addvalue = 24 * sWorld.getRate(RATE_POWER_FOCUS);
|
||||
addvalue = 24 * sWorld.getConfig(CONFIG_FLOAT_RATE_POWER_FOCUS);
|
||||
break;
|
||||
}
|
||||
case POWER_ENERGY:
|
||||
|
|
@ -696,7 +696,7 @@ void Pet::GivePetXP(uint32 xp)
|
|||
uint32 level = getLevel();
|
||||
|
||||
// XP to money conversion processed in Player::RewardQuest
|
||||
if(level >= sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL))
|
||||
if(level >= sWorld.getConfig(CONFIG_UINT32_MAX_PLAYER_LEVEL))
|
||||
return;
|
||||
|
||||
uint32 curXP = GetUInt32Value(UNIT_FIELD_PETEXPERIENCE);
|
||||
|
|
@ -709,7 +709,7 @@ void Pet::GivePetXP(uint32 xp)
|
|||
return;
|
||||
}
|
||||
|
||||
while( newXP >= nextLvlXP && level < sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL) )
|
||||
while( newXP >= nextLvlXP && level < sWorld.getConfig(CONFIG_UINT32_MAX_PLAYER_LEVEL) )
|
||||
{
|
||||
newXP -= nextLvlXP;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue