mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(Core/Game): restyle game lib with astyle (#3466)
This commit is contained in:
@@ -49,8 +49,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
{
|
||||
RewardItemId[i] = questRecord[27+i*2].GetUInt32();
|
||||
RewardItemIdCount[i] = questRecord[28+i*2].GetUInt16();
|
||||
RewardItemId[i] = questRecord[27 + i * 2].GetUInt32();
|
||||
RewardItemIdCount[i] = questRecord[28 + i * 2].GetUInt16();
|
||||
|
||||
if (RewardItemId[i])
|
||||
++_rewItemsCount;
|
||||
@@ -58,8 +58,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
{
|
||||
RewardChoiceItemId[i] = questRecord[35+i*2].GetUInt32();
|
||||
RewardChoiceItemCount[i] = questRecord[36+i*2].GetUInt16();
|
||||
RewardChoiceItemId[i] = questRecord[35 + i * 2].GetUInt32();
|
||||
RewardChoiceItemCount[i] = questRecord[36 + i * 2].GetUInt16();
|
||||
|
||||
if (RewardChoiceItemId[i])
|
||||
++_rewChoiceItemsCount;
|
||||
@@ -67,9 +67,9 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i)
|
||||
{
|
||||
RewardFactionId[i] = questRecord[47+i*3].GetUInt16();
|
||||
RewardFactionValueId[i] = questRecord[48+i*3].GetInt32();
|
||||
RewardFactionValueIdOverride[i] = questRecord[49+i*3].GetInt32();
|
||||
RewardFactionId[i] = questRecord[47 + i * 3].GetUInt16();
|
||||
RewardFactionValueId[i] = questRecord[48 + i * 3].GetInt32();
|
||||
RewardFactionValueIdOverride[i] = questRecord[49 + i * 3].GetInt32();
|
||||
}
|
||||
|
||||
POIContinent = questRecord[62].GetUInt16();
|
||||
@@ -84,8 +84,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
{
|
||||
RequiredNpcOrGo[i] = questRecord[71+i].GetInt32();
|
||||
RequiredNpcOrGoCount[i] = questRecord[75+i].GetUInt16();
|
||||
RequiredNpcOrGo[i] = questRecord[71 + i].GetInt32();
|
||||
RequiredNpcOrGoCount[i] = questRecord[75 + i].GetUInt16();
|
||||
ObjectiveText[i] = questRecord[100 + i].GetString();
|
||||
|
||||
if (RequiredNpcOrGo[i])
|
||||
@@ -94,8 +94,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_SOURCE_ITEM_IDS_COUNT; ++i)
|
||||
{
|
||||
ItemDrop[i] = questRecord[79+i].GetUInt32();
|
||||
ItemDropQuantity[i] = questRecord[83+i].GetUInt16();
|
||||
ItemDrop[i] = questRecord[79 + i].GetUInt32();
|
||||
ItemDropQuantity[i] = questRecord[83 + i].GetUInt16();
|
||||
}
|
||||
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
@@ -117,17 +117,17 @@ Quest::Quest(Field* questRecord)
|
||||
OfferRewardEmote[i] = 0;
|
||||
OfferRewardEmoteDelay[i] = 0;
|
||||
}
|
||||
|
||||
|
||||
_eventIdForQuest = 0;
|
||||
}
|
||||
|
||||
void Quest::LoadQuestDetails(Field* fields)
|
||||
{
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmote[i] = fields[1+i].GetUInt16();
|
||||
DetailsEmote[i] = fields[1 + i].GetUInt16();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmoteDelay[i] = fields[5+i].GetUInt32();
|
||||
DetailsEmoteDelay[i] = fields[5 + i].GetUInt32();
|
||||
}
|
||||
|
||||
void Quest::LoadQuestRequestItems(Field* fields)
|
||||
|
||||
Reference in New Issue
Block a user