diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-03-16 00:40:27 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-03-16 00:57:53 -0300 |
commit | 076293f1f269b8f681c97f23872915bdfeccef1d (patch) | |
tree | 6ab191e69ea01ca3757fe5f379b64f895f67a085 /src/server/game/Quests/QuestDef.cpp | |
parent | 09701b0229f84e3c0b014f6a161f945f3d226d8b (diff) |
Core/Globals: some changes in quest loading
- Made load/reload associated quest tables data-driven, so removed a bunch of similar looking code from ObjectMgr (yay!)
- Codestyle and encapsulation for ExclusiveQuestGroups
Diffstat (limited to 'src/server/game/Quests/QuestDef.cpp')
-rw-r--r-- | src/server/game/Quests/QuestDef.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp index 6c3b15436e7..69944c3a64c 100644 --- a/src/server/game/Quests/QuestDef.cpp +++ b/src/server/game/Quests/QuestDef.cpp @@ -185,13 +185,17 @@ void Quest::LoadQuestTemplateAddon(Field* fields) _requiredMinRepValue = fields[13].GetInt32(); _requiredMaxRepValue = fields[14].GetInt32(); _startItemCount = fields[15].GetUInt8(); - _rewardMailSenderEntry = fields[16].GetUInt32(); - _specialFlags = fields[17].GetUInt8(); + _specialFlags = fields[16].GetUInt8(); if (_specialFlags & QUEST_SPECIAL_FLAGS_AUTO_ACCEPT) _flags |= QUEST_FLAGS_AUTO_ACCEPT; } +void Quest::LoadQuestMailSender(Field* fields) +{ + _rewardMailSenderEntry = fields[1].GetUInt32(); +} + uint32 Quest::XPValue(Player* player) const { if (player) |