Core/PacketIO: Fill new packet fields with data

Port From (https://github.com/TrinityCore/TrinityCore/commit/83eecaf2c40cc72c1dc42335766534eb8d227e60)
This commit is contained in:
hondacrx
2020-12-10 10:22:13 -05:00
parent 7d392baf2e
commit 87160961fa
10 changed files with 266 additions and 177 deletions
@@ -100,6 +100,18 @@ namespace Game
features.MinimumExpansionLevel = (int)Expansion.Classic;
features.MaximumExpansionLevel = WorldConfig.GetIntValue(WorldCfg.Expansion);
var europaTicketConfig = new EuropaTicketConfig();
europaTicketConfig.ThrottleState.MaxTries = 10;
europaTicketConfig.ThrottleState.PerMilliseconds = 60000;
europaTicketConfig.ThrottleState.TryCount = 1;
europaTicketConfig.ThrottleState.LastResetTimeBeforeNow = 111111;
europaTicketConfig.TicketsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportTicketsEnabled);
europaTicketConfig.BugsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportBugsEnabled);
europaTicketConfig.ComplaintsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportComplaintsEnabled);
europaTicketConfig.SuggestionsEnabled = WorldConfig.GetBoolValue(WorldCfg.SupportSuggestionsEnabled);
features.EuropaTicketSystemStatus.Set(europaTicketConfig);
SendPacket(features);
}
}