mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7540] Move most reputation/force faction reaction code to new ReputationMgr.
This commit is contained in:
parent
ef014420a5
commit
c33eff13f4
19 changed files with 773 additions and 647 deletions
|
|
@ -2985,10 +2985,10 @@ void ObjectMgr::LoadQuests()
|
|||
// no changes, quest can't be done for this requirement
|
||||
}
|
||||
|
||||
if(qinfo->RequiredMinRepValue && qinfo->RequiredMinRepValue > Player::Reputation_Cap)
|
||||
if(qinfo->RequiredMinRepValue && qinfo->RequiredMinRepValue > ReputationMgr::Reputation_Cap)
|
||||
{
|
||||
sLog.outErrorDb("Quest %u has `RequiredMinRepValue` = %d but max reputation is %u, quest can't be done.",
|
||||
qinfo->GetQuestId(),qinfo->RequiredMinRepValue,Player::Reputation_Cap);
|
||||
qinfo->GetQuestId(),qinfo->RequiredMinRepValue,ReputationMgr::Reputation_Cap);
|
||||
// no changes, quest can't be done for this requirement
|
||||
}
|
||||
|
||||
|
|
@ -6591,7 +6591,7 @@ bool PlayerCondition::Meets(Player const * player) const
|
|||
case CONDITION_REPUTATION_RANK:
|
||||
{
|
||||
FactionEntry const* faction = sFactionStore.LookupEntry(value1);
|
||||
return faction && player->GetReputationRank(faction) >= value2;
|
||||
return faction && player->GetReputationMgr().GetRank(faction) >= value2;
|
||||
}
|
||||
case CONDITION_TEAM:
|
||||
return player->GetTeam() == value1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue