diff options
author | Roc13x <roc13x@gmail.com> | 2018-04-22 19:04:02 +0100 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2018-04-22 20:04:02 +0200 |
commit | 6b9948857057cfe495807a61b6797c75d9fc7a6a (patch) | |
tree | cd1a825be5c9a1dd57944677d09eb80ea20b21ee /src/server/game/Guilds/Guild.h | |
parent | 4feaf2463ddf87621a3571f90043d8e8c5c1a22b (diff) |
Core/Guild: Implemented guild master dethrone (#21833)
Diffstat (limited to 'src/server/game/Guilds/Guild.h')
-rw-r--r-- | src/server/game/Guilds/Guild.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Guilds/Guild.h b/src/server/game/Guilds/Guild.h index d8684ebd3ea..03781d37ab0 100644 --- a/src/server/game/Guilds/Guild.h +++ b/src/server/game/Guilds/Guild.h @@ -48,6 +48,7 @@ enum GuildMisc GUILD_BANK_MAX_TABS = 8, // send by client for money log also GUILD_BANK_MAX_SLOTS = 98, GUILD_BANK_MONEY_LOGS_TAB = 100, // used for money log in DB + GUILD_MASTER_DETHRONE_INACTIVE_DAYS = 90, GUILD_RANKS_MIN_COUNT = 2, GUILD_RANKS_MAX_COUNT = 10, GUILD_RANK_NONE = 0xFF, @@ -353,6 +354,7 @@ class TC_GAME_API Guild uint32 GetAccountId() const { return m_accountId; } uint8 GetRankId() const { return m_rankId; } uint64 GetLogoutTime() const { return m_logoutTime; } + float GetInactiveDays() const; std::string GetPublicNote() const { return m_publicNote; } std::string GetOfficerNote() const { return m_officerNote; } uint8 GetClass() const { return m_class; } @@ -758,7 +760,7 @@ class TC_GAME_API Guild void HandleSetMOTD(WorldSession* session, std::string const& motd); void HandleSetInfo(WorldSession* session, std::string const& info); void HandleSetEmblem(WorldSession* session, const EmblemInfo& emblemInfo); - void HandleSetNewGuildMaster(WorldSession* session, std::string const& name); + void HandleSetNewGuildMaster(WorldSession* session, std::string const& name, bool isSelfPromote); void HandleSetBankTabInfo(WorldSession* session, uint8 tabId, std::string const& name, std::string const& icon); void HandleSetMemberNote(WorldSession* session, std::string const& note, ObjectGuid guid, bool isPublic); void HandleSetRankInfo(WorldSession* session, uint8 rankId, std::string const& name, uint32 rights, uint32 moneyPerDay, GuildBankRightsAndSlotsVec const& rightsAndSlots); |