Core/Characters: Added Dracthyr Evoker creation data

Port From (https://github.com/TrinityCore/TrinityCore/commit/b71b121c51214d220163a3c278f212b6804ad644)
This commit is contained in:
hondacrx
2023-01-06 17:49:02 -05:00
parent 7273c7aa7c
commit 5c439a6bae
7 changed files with 127 additions and 7 deletions
+12
View File
@@ -462,6 +462,18 @@ namespace Game
Values[WorldCfg.StartDemonHunterPlayerLevel] = Values[WorldCfg.MaxPlayerLevel];
}
Values[WorldCfg.StartEvokerPlayerLevel] = GetDefaultValue("StartEvokerPlayerLevel", 58);
if ((int)Values[WorldCfg.StartEvokerPlayerLevel] < 1)
{
Log.outError(LogFilter.ServerLoading, $"StartEvokerPlayerLevel ({Values[WorldCfg.StartEvokerPlayerLevel]}) must be in range 1..MaxPlayerLevel({Values[WorldCfg.MaxPlayerLevel]}). Set to 1.");
Values[WorldCfg.StartEvokerPlayerLevel] = 1;
}
else if ((int)Values[WorldCfg.StartEvokerPlayerLevel] > (int)Values[WorldCfg.MaxPlayerLevel])
{
Log.outError(LogFilter.ServerLoading, $"StartEvokerPlayerLevel ({Values[WorldCfg.StartEvokerPlayerLevel]}) must be in range 1..MaxPlayerLevel({Values[WorldCfg.MaxPlayerLevel]}). Set to {Values[WorldCfg.MaxPlayerLevel]}.");
Values[WorldCfg.StartEvokerPlayerLevel] = Values[WorldCfg.MaxPlayerLevel];
}
Values[WorldCfg.StartAlliedRaceLevel] = GetDefaultValue("StartAlliedRacePlayerLevel", 10);
if ((int)Values[WorldCfg.StartAlliedRaceLevel] < 1)
{