mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Merge pull request #83 from AlvinZhu/OnQuestComputeXP
fix OnQuestComputeXP
This commit is contained in:
@@ -113,13 +113,8 @@ public:
|
|||||||
uint32 vanillaXpValue = sIndividualProgression->questXpMap[quest->GetQuestId()];
|
uint32 vanillaXpValue = sIndividualProgression->questXpMap[quest->GetQuestId()];
|
||||||
if (player)
|
if (player)
|
||||||
{
|
{
|
||||||
vanillaXpValue *= player->GetQuestRate();
|
uint32 originalXpValue = quest->XPValue(quest->GetQuestLevel() == -1 ? player->GetLevel() : quest->GetQuestLevel());
|
||||||
}
|
xpValue *= vanillaXpValue * 1.0 / originalXpValue;
|
||||||
// If XP was already reduced due to out-leveling the quest or other reasons, use the reduced value
|
|
||||||
if (vanillaXpValue < xpValue)
|
|
||||||
{
|
|
||||||
// Otherwise, return the correct Vanilla/TBC Quest XP
|
|
||||||
xpValue = vanillaXpValue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user