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
+2
View File
@@ -1905,6 +1905,8 @@ namespace Game.Entities
}
else if (playerClass == Class.DemonHunter)
startLevel = Math.Max(WorldConfig.GetUIntValue(WorldCfg.StartDemonHunterPlayerLevel), startLevel);
else if (playerClass == CLASS_EVOKER)
startLevel = Math.Max(WorldConfig.GetUIntValue(WorldCfg.StartEvokerPlayerLevel), startLevel);
if (characterTemplateId.HasValue)
{
+3
View File
@@ -6503,6 +6503,9 @@ namespace Game
if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Legion && _class == Class.DemonHunter)
continue;
if (WorldConfig.GetIntValue(WorldCfg.Expansion) < (int)Expansion.Dragonflight && _class == Class.Evoker)
continue;
// fatal error if no level 1 data
if (playerInfo.levelInfo == null || playerInfo.levelInfo[0].stats[0] == 0)
{
@@ -238,7 +238,7 @@ namespace Game.Networking.Packets
public byte RaceId;
public Class ClassId;
public byte SexId;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
public byte ExperienceLevel;
public uint ZoneId;
public uint MapId;
@@ -580,7 +580,7 @@ namespace Game.Networking.Packets
public string Name;
public byte SexID;
public byte RaceID;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
}
}
@@ -892,7 +892,7 @@ namespace Game.Networking.Packets
}
public byte NewSex;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
public int CustomizedRace;
}
@@ -1042,7 +1042,7 @@ namespace Game.Networking.Packets
ObjectGuid CharGUID;
string CharName = "";
byte SexID;
Array<ChrCustomizationChoice> Customizations = new(50);
Array<ChrCustomizationChoice> Customizations = new(72);
}
class CharCustomizeFailure : ServerPacket
@@ -1104,7 +1104,7 @@ namespace Game.Networking.Packets
public Race RaceId = Race.None;
public Class ClassId = Class.None;
public Gender Sex = Gender.None;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
public uint? TemplateSet;
public bool IsTrialBoost;
public bool UseNPE;
@@ -1125,7 +1125,7 @@ namespace Game.Networking.Packets
public ObjectGuid CharGUID;
public Gender SexID = Gender.None;
public string CharName;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
}
public class CharRaceOrFactionChangeInfo
@@ -1136,7 +1136,7 @@ namespace Game.Networking.Packets
public ObjectGuid Guid;
public bool FactionChange;
public string Name;
public Array<ChrCustomizationChoice> Customizations = new(50);
public Array<ChrCustomizationChoice> Customizations = new(72);
}
public class CharacterUndeleteInfo
+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)
{