From c92950b3e1f6366d85d707365a8ad2caddafeecc Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 12 Jul 2020 15:36:55 +0200 Subject: Core/DataStores: Update DBC field names to generated ones (#24999) --- src/server/game/Quests/QuestDef.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/game/Quests/QuestDef.cpp') diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp index 7170597cfa8..1e0d30a6fe8 100644 --- a/src/server/game/Quests/QuestDef.cpp +++ b/src/server/game/Quests/QuestDef.cpp @@ -214,10 +214,10 @@ uint32 Quest::GetXPReward(Player const* player) const else if (diffFactor > 10) diffFactor = 10; - uint32 xp = RoundXPValue(diffFactor * xpentry->Exp[_rewardXPDifficulty] / 10); + uint32 xp = RoundXPValue(diffFactor * xpentry->Difficulty[_rewardXPDifficulty] / 10); if (sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO)) { - uint32 minScaledXP = RoundXPValue(xpentry->Exp[_rewardXPDifficulty]) * sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO) / 100; + uint32 minScaledXP = RoundXPValue(xpentry->Difficulty[_rewardXPDifficulty]) * sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO) / 100; xp = std::max(minScaledXP, xp); } @@ -310,7 +310,7 @@ uint32 Quest::CalculateHonorGain(uint8 level) const if (!tc) return 0; - honor = uint32(tc->value * GetRewHonorMultiplier() * 0.1f); + honor = uint32(tc->Data * GetRewHonorMultiplier() * 0.1f); honor += GetRewHonorAddition(); } -- cgit v1.2.3