mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 18:13:48 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -2256,9 +2256,21 @@ public:
|
||||
/*** FLOOD FILTER SYSTEM ***/
|
||||
/*********************************************************/
|
||||
|
||||
void UpdateSpeakTime(uint32 specialMessageLimit = 0);
|
||||
struct ChatFloodThrottle
|
||||
{
|
||||
enum Index
|
||||
{
|
||||
REGULAR = 0,
|
||||
ADDON = 1,
|
||||
MAX
|
||||
};
|
||||
|
||||
time_t Time = 0;
|
||||
uint32 Count = 0;
|
||||
};
|
||||
|
||||
void UpdateSpeakTime(ChatFloodThrottle::Index index);
|
||||
[[nodiscard]] bool CanSpeak() const;
|
||||
void ChangeSpeakTime(int utime);
|
||||
|
||||
/*********************************************************/
|
||||
/*** VARIOUS SYSTEMS ***/
|
||||
@@ -2697,8 +2709,7 @@ public:
|
||||
uint16 m_additionalSaveTimer; // pussywizard
|
||||
uint8 m_additionalSaveMask; // pussywizard
|
||||
uint16 m_hostileReferenceCheckTimer; // pussywizard
|
||||
time_t m_speakTime;
|
||||
uint32 m_speakCount;
|
||||
std::array<ChatFloodThrottle, ChatFloodThrottle::MAX> m_chatFloodData;
|
||||
Difficulty m_dungeonDifficulty;
|
||||
Difficulty m_raidDifficulty;
|
||||
Difficulty m_raidMapDifficulty;
|
||||
|
||||
Reference in New Issue
Block a user