Skip to content

Commit

Permalink
Core/Quest: Change RewardFactionCapIn type to signed int32
Browse files Browse the repository at this point in the history
  • Loading branch information
funjoker committed Dec 16, 2020
1 parent 8742bf3 commit 51ebc07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions sql/updates/world/master/2020_12_16_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE `quest_template`
CHANGE COLUMN `RewardFactionCapIn1` `RewardFactionCapIn1` INT(10) NOT NULL DEFAULT '0' AFTER `RewardFactionOverride1`,
CHANGE COLUMN `RewardFactionCapIn2` `RewardFactionCapIn2` INT(10) NOT NULL DEFAULT '0' AFTER `RewardFactionOverride2`,
CHANGE COLUMN `RewardFactionCapIn3` `RewardFactionCapIn3` INT(10) NOT NULL DEFAULT '0' AFTER `RewardFactionOverride3`,
CHANGE COLUMN `RewardFactionCapIn4` `RewardFactionCapIn4` INT(10) NOT NULL DEFAULT '0' AFTER `RewardFactionOverride4`,
CHANGE COLUMN `RewardFactionCapIn5` `RewardFactionCapIn5` INT(10) NOT NULL DEFAULT '0' AFTER `RewardFactionOverride5`;
2 changes: 1 addition & 1 deletion src/server/game/Quests/QuestDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Quest::Quest(Field* questRecord)
RewardFactionId[i] = questRecord[69 + i * 4].GetUInt32();
RewardFactionValue[i] = questRecord[70 + i * 4].GetInt32();
RewardFactionOverride[i] = questRecord[71 + i * 4].GetInt32();
RewardFactionCapIn[i] = questRecord[72 + i * 4].GetUInt32();
RewardFactionCapIn[i] = questRecord[72 + i * 4].GetInt32();
}

_rewardReputationMask = questRecord[89].GetUInt32();
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/Quests/QuestDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class TC_GAME_API Quest
std::array<uint32, QUEST_REWARD_REPUTATIONS_COUNT> RewardFactionId = { };
std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> RewardFactionValue = { };
std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> RewardFactionOverride = { };
std::array<uint32, QUEST_REWARD_REPUTATIONS_COUNT> RewardFactionCapIn = { };
std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> RewardFactionCapIn = { };
std::array<uint32, QUEST_REWARD_CURRENCY_COUNT> RewardCurrencyId = { };
std::array<uint32, QUEST_REWARD_CURRENCY_COUNT> RewardCurrencyCount = { };
QuestObjectives Objectives;
Expand Down

0 comments on commit 51ebc07

Please sign in to comment.