mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Correctly select GM level in case heroic class.
Signed-off-by: bloutix <bloutix@getmangos.com> Move heroic class starting level to mangos.conf Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c798318b7b
commit
f5c4fe86e8
4 changed files with 30 additions and 7 deletions
|
|
@ -675,6 +675,20 @@ void World::LoadConfigSettings(bool reload)
|
|||
m_configs[CONFIG_START_PLAYER_LEVEL] = m_configs[CONFIG_MAX_PLAYER_LEVEL];
|
||||
}
|
||||
|
||||
m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL] = sConfig.GetIntDefault("StartHeroicPlayerLevel", 55);
|
||||
if(m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL] < 1)
|
||||
{
|
||||
sLog.outError("StartHeroicPlayerLevel (%i) must be in range 1..MaxPlayerLevel(%u). Set to 55.",
|
||||
m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL],m_configs[CONFIG_MAX_PLAYER_LEVEL]);
|
||||
m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL] = 55;
|
||||
}
|
||||
else if(m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL] > m_configs[CONFIG_MAX_PLAYER_LEVEL])
|
||||
{
|
||||
sLog.outError("StartHeroicPlayerLevel (%i) must be in range 1..MaxPlayerLevel(%u). Set to %u.",
|
||||
m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL],m_configs[CONFIG_MAX_PLAYER_LEVEL],m_configs[CONFIG_MAX_PLAYER_LEVEL]);
|
||||
m_configs[CONFIG_START_HEROIC_PLAYER_LEVEL] = m_configs[CONFIG_MAX_PLAYER_LEVEL];
|
||||
}
|
||||
|
||||
m_configs[CONFIG_START_PLAYER_MONEY] = sConfig.GetIntDefault("StartPlayerMoney", 0);
|
||||
if(m_configs[CONFIG_START_PLAYER_MONEY] < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue