mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Updated to 11.0.2
This commit is contained in:
@@ -299,9 +299,15 @@ int32 ReputationMgr::GetRenownMaxLevel(FactionEntry const* renownFactionEntry) c
|
||||
void ReputationMgr::ApplyForceReaction(uint32 faction_id, ReputationRank rank, bool apply)
|
||||
{
|
||||
if (apply)
|
||||
{
|
||||
_forcedReactions[faction_id] = rank;
|
||||
_player->SetVisibleForcedReaction(faction_id, rank);
|
||||
}
|
||||
else
|
||||
{
|
||||
_forcedReactions.erase(faction_id);
|
||||
_player->RemoveVisibleForcedReaction(faction_id);
|
||||
}
|
||||
}
|
||||
|
||||
ReputationFlags ReputationMgr::GetDefaultStateFlags(FactionEntry const* factionEntry) const
|
||||
@@ -321,22 +327,6 @@ ReputationFlags ReputationMgr::GetDefaultStateFlags(FactionEntry const* factionE
|
||||
return flags;
|
||||
}
|
||||
|
||||
void ReputationMgr::SendForceReactions()
|
||||
{
|
||||
WorldPackets::Reputation::SetForcedReactions setForcedReactions;
|
||||
setForcedReactions.Reactions.resize(_forcedReactions.size());
|
||||
|
||||
std::size_t i = 0;
|
||||
for (ForcedReactions::const_iterator itr = _forcedReactions.begin(); itr != _forcedReactions.end(); ++itr)
|
||||
{
|
||||
WorldPackets::Reputation::ForcedReaction& forcedReaction = setForcedReactions.Reactions[i++];
|
||||
forcedReaction.Faction = int32(itr->first);
|
||||
forcedReaction.Reaction = int32(itr->second);
|
||||
}
|
||||
|
||||
_player->SendDirectMessage(setForcedReactions.Write());
|
||||
}
|
||||
|
||||
void ReputationMgr::SendState(FactionState const* faction)
|
||||
{
|
||||
WorldPackets::Reputation::SetFactionStanding setFactionStanding;
|
||||
|
||||
Reference in New Issue
Block a user