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
+12
View File
@@ -1179,6 +1179,11 @@ namespace Game
SetPlayerAmountLimit((uint)ConfigMgr.GetDefaultValue("PlayerLimit", 100));
SetMotd(ConfigMgr.GetDefaultValue("Motd", "Welcome to a Cypher Core Server."));
_gameRules =
[
new() { Item1 = GameRule.TransmogEnabled, Item2 = true }
];
if (reload)
{
Global.SupportMgr.SetSupportSystemStatus(WorldConfig.GetBoolValue(WorldCfg.SupportEnabled));
@@ -2556,6 +2561,11 @@ namespace Game
public WorldUpdateTime GetWorldUpdateTime() { return _worldUpdateTime; }
public List<(GameRule, object)> GetGameRules()
{
return _gameRules;
}
#region Fields
uint m_ShutdownTimer;
ShutdownMask m_ShutdownMask;
@@ -2628,6 +2638,8 @@ namespace Game
bool _guidAlert;
uint _warnDiff;
long _warnShutdownTime;
List<(GameRule, object)> _gameRules = new();
#endregion
}