From 931ca1e54675a6c1fc5d4a30e65a650807022eb4 Mon Sep 17 00:00:00 2001 From: ForesterDev <11771800+ForesterDev@users.noreply.github.com> Date: Sat, 11 Apr 2020 21:49:36 +0400 Subject: Core/PacketIO: updated SMSG_FEATURE_SYSTEM_STATUS (#24403) * Core/Packets: updated SMSG_FEATURE_SYSTEM_STATUS (cherry picked from commit 231207970bf9c28971def453d2622aa17fe36b43) * Define complaint status values and replace magic numbers * Add missing header Co-authored-by: joschiwald (cherry picked from commit bfd73e7f47ec670308f72cbd0dbc42ef80cd7e92) --- src/server/game/Handlers/CharacterHandler.cpp | 3 +-- src/server/game/Miscellaneous/SharedDefines.h | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index d9c2aa5781d..4297cc4e79e 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -1400,7 +1400,7 @@ void WorldSession::SendFeatureSystemStatus() WorldPackets::System::FeatureSystemStatus features; /// START OF DUMMY VALUES - features.ComplaintStatus = 2; + features.ComplaintStatus = COMPLAINT_ENABLED_WITH_AUTO_IGNORE; features.ScrollOfResurrectionRequestsRemaining = 1; features.ScrollOfResurrectionMaxRequestsPerDay = 1; features.TwitterPostThrottleLimit = 60; @@ -1416,7 +1416,6 @@ void WorldSession::SendFeatureSystemStatus() features.EuropaTicketSystemStatus->ThrottleState.PerMilliseconds = 60000; features.EuropaTicketSystemStatus->ThrottleState.TryCount = 1; features.EuropaTicketSystemStatus->ThrottleState.LastResetTimeBeforeNow = 111111; - features.ComplaintStatus = 0; features.TutorialsEnabled = true; features.NPETutorialsEnabled = true; /// END OF DUMMY VALUES diff --git a/src/server/game/Miscellaneous/SharedDefines.h b/src/server/game/Miscellaneous/SharedDefines.h index 584092e82b1..afa4a132faf 100644 --- a/src/server/game/Miscellaneous/SharedDefines.h +++ b/src/server/game/Miscellaneous/SharedDefines.h @@ -6007,6 +6007,13 @@ enum CharacterUndeleteResult CHARACTER_UNDELETE_RESULT_ERROR_UNKNOWN = 5 }; +enum ComplaintStatus : uint8 +{ + COMPLAINT_DISABLED = 0, + COMPLAINT_ENABLED_WITHOUT_AUTO_IGNORE = 1, + COMPLAINT_ENABLED_WITH_AUTO_IGNORE = 2 +}; + /// Ban function modes enum BanMode { -- cgit v1.2.3