Core/Players: Reenable transmog

Port From (https://github.com/TrinityCore/TrinityCore/commit/d27d0e0e3c004e7562c63b9527035095efd30974)
This commit is contained in:
Hondacrx
2025-08-25 21:00:34 -04:00
parent de9f0f9a7e
commit 2852828008
5 changed files with 142 additions and 3 deletions
+14 -1
View File
@@ -26,7 +26,7 @@ namespace Game
// Send current home realm. Also there is no need to send it later in realm queries.
var currentRealm = Global.RealmMgr.GetCurrentRealm();
if(currentRealm != null)
if (currentRealm != null)
{
response.SuccessInfo.VirtualRealmAddress = currentRealm.Id.GetAddress();
response.SuccessInfo.VirtualRealms.Add(new VirtualRealmInfo(currentRealm.Id.GetAddress(), true, false, currentRealm.Name, currentRealm.NormalizedName));
@@ -104,6 +104,19 @@ namespace Game
europaTicketConfig.ComplaintsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportComplaintsEnabled);
europaTicketConfig.SuggestionsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportSuggestionsEnabled);
foreach (var (gameRule, value) in Global.WorldMgr.GetGameRules())
{
GameRuleValuePair rule = new();
rule.Rule = (int)gameRule;
if (value is float)
rule.ValueF = (float)value;
else
rule.Value = Convert.ToInt32(value);
features.GameRules.Add(rule);
}
features.EuropaTicketSystemStatus = europaTicketConfig;
SendPacket(features);
+13
View File
@@ -1167,6 +1167,19 @@ namespace Game
features.SpeakForMeAllowed = false;
foreach (var (gameRule, value) in Global.WorldMgr.GetGameRules())
{
GameRuleValuePair rule = new();
rule.Rule = (int)gameRule;
if (value is float)
rule.ValueF = (float)value;
else
rule.Value = Convert.ToInt32(value);
features.GameRules.Add(rule);
}
SendPacket(features);
}