mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 16:37:12 +00:00
Cleanup Operator padding
This commit is contained in:
parent
9141299127
commit
e32b9953a1
264 changed files with 6715 additions and 6715 deletions
|
|
@ -63,49 +63,49 @@ Quest::Quest(Field* questRecord)
|
|||
CompletedText = questRecord[37].GetCppString();
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
ObjectiveText[i] = questRecord[38+i].GetCppString();
|
||||
ObjectiveText[i] = questRecord[38 + i].GetCppString();
|
||||
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
ReqItemId[i] = questRecord[42+i].GetUInt32();
|
||||
ReqItemId[i] = questRecord[42 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
ReqItemCount[i] = questRecord[48+i].GetUInt32();
|
||||
ReqItemCount[i] = questRecord[48 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_SOURCE_ITEM_IDS_COUNT; ++i)
|
||||
ReqSourceId[i] = questRecord[54+i].GetUInt32();
|
||||
ReqSourceId[i] = questRecord[54 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_SOURCE_ITEM_IDS_COUNT; ++i)
|
||||
ReqSourceCount[i] = questRecord[58+i].GetUInt32();
|
||||
ReqSourceCount[i] = questRecord[58 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
ReqCreatureOrGOId[i] = questRecord[62+i].GetInt32();
|
||||
ReqCreatureOrGOId[i] = questRecord[62 + i].GetInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
ReqCreatureOrGOCount[i] = questRecord[66+i].GetUInt32();
|
||||
ReqCreatureOrGOCount[i] = questRecord[66 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
ReqSpell[i] = questRecord[70+i].GetUInt32();
|
||||
ReqSpell[i] = questRecord[70 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
RewChoiceItemId[i] = questRecord[74+i].GetUInt32();
|
||||
RewChoiceItemId[i] = questRecord[74 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
RewChoiceItemCount[i] = questRecord[80+i].GetUInt32();
|
||||
RewChoiceItemCount[i] = questRecord[80 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
RewItemId[i] = questRecord[86+i].GetUInt32();
|
||||
RewItemId[i] = questRecord[86 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
RewItemCount[i] = questRecord[90+i].GetUInt32();
|
||||
RewItemCount[i] = questRecord[90 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i)
|
||||
RewRepFaction[i] = questRecord[94+i].GetUInt32();
|
||||
RewRepFaction[i] = questRecord[94 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i)
|
||||
RewRepValueId[i] = questRecord[99+i].GetInt32();
|
||||
RewRepValueId[i] = questRecord[99 + i].GetInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i)
|
||||
RewRepValue[i] = questRecord[104+i].GetInt32();
|
||||
RewRepValue[i] = questRecord[104 + i].GetInt32();
|
||||
|
||||
RewHonorAddition = questRecord[109].GetUInt32();
|
||||
RewHonorMultiplier = questRecord[110].GetFloat();
|
||||
|
|
@ -121,19 +121,19 @@ Quest::Quest(Field* questRecord)
|
|||
PointOpt = questRecord[120].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmote[i] = questRecord[121+i].GetUInt32();
|
||||
DetailsEmote[i] = questRecord[121 + i].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmoteDelay[i] = questRecord[125+i].GetUInt32();
|
||||
DetailsEmoteDelay[i] = questRecord[125 + i].GetUInt32();
|
||||
|
||||
IncompleteEmote = questRecord[129].GetUInt32();
|
||||
CompleteEmote = questRecord[130].GetUInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
OfferRewardEmote[i] = questRecord[131+i].GetInt32();
|
||||
OfferRewardEmote[i] = questRecord[131 + i].GetInt32();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
OfferRewardEmoteDelay[i] = questRecord[135+i].GetInt32();
|
||||
OfferRewardEmoteDelay[i] = questRecord[135 + i].GetInt32();
|
||||
|
||||
QuestStartScript = questRecord[139].GetUInt32();
|
||||
QuestCompleteScript = questRecord[140].GetUInt32();
|
||||
|
|
@ -145,25 +145,25 @@ Quest::Quest(Field* questRecord)
|
|||
m_rewitemscount = 0;
|
||||
m_rewchoiceitemscount = 0;
|
||||
|
||||
for (int i=0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
{
|
||||
if (ReqItemId[i])
|
||||
++m_reqitemscount;
|
||||
}
|
||||
|
||||
for (int i=0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
{
|
||||
if (ReqCreatureOrGOId[i])
|
||||
++m_reqCreatureOrGOcount;
|
||||
}
|
||||
|
||||
for (int i=0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
for (int i = 0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
{
|
||||
if (RewItemId[i])
|
||||
++m_rewitemscount;
|
||||
}
|
||||
|
||||
for (int i=0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
{
|
||||
if (RewChoiceItemId[i])
|
||||
++m_rewchoiceitemscount;
|
||||
|
|
@ -184,14 +184,14 @@ uint32 Quest::XPValue(Player* pPlayer) const
|
|||
if (QuestLevel != -1)
|
||||
baseLevel = QuestLevel;
|
||||
|
||||
if (((baseLevel - playerLevel) + 10)*2 > 10)
|
||||
if (((baseLevel - playerLevel) + 10) * 2 > 10)
|
||||
{
|
||||
baseLevel = playerLevel;
|
||||
|
||||
if (QuestLevel != -1)
|
||||
baseLevel = QuestLevel;
|
||||
|
||||
if (((baseLevel - playerLevel) + 10)*2 <= 10)
|
||||
if (((baseLevel - playerLevel) + 10) * 2 <= 10)
|
||||
{
|
||||
if (QuestLevel == -1)
|
||||
baseLevel = playerLevel;
|
||||
|
|
@ -210,14 +210,14 @@ uint32 Quest::XPValue(Player* pPlayer) const
|
|||
if (QuestLevel != -1)
|
||||
baseLevel = QuestLevel;
|
||||
|
||||
if (((baseLevel - playerLevel) + 10)*2 >= 1)
|
||||
if (((baseLevel - playerLevel) + 10) * 2 >= 1)
|
||||
{
|
||||
baseLevel = playerLevel;
|
||||
|
||||
if (QuestLevel != -1)
|
||||
baseLevel = QuestLevel;
|
||||
|
||||
if (((baseLevel - playerLevel) + 10)*2 <= 10)
|
||||
if (((baseLevel - playerLevel) + 10) * 2 <= 10)
|
||||
{
|
||||
if (QuestLevel == -1)
|
||||
baseLevel = playerLevel;
|
||||
|
|
@ -259,7 +259,7 @@ uint32 Quest::XPValue(Player* pPlayer) const
|
|||
|
||||
int32 Quest::GetRewOrReqMoney() const
|
||||
{
|
||||
if (RewOrReqMoney <=0)
|
||||
if (RewOrReqMoney <= 0)
|
||||
return RewOrReqMoney;
|
||||
|
||||
return int32(RewOrReqMoney * sWorld.getConfig(CONFIG_FLOAT_RATE_DROP_MONEY));
|
||||
|
|
@ -283,7 +283,7 @@ uint32 Quest::CalculateRewardHonor(uint32 level) const
|
|||
if (GetRewHonorAddition() > 0 || GetRewHonorMultiplier() > 0.0f)
|
||||
{
|
||||
// values stored from 0.. for 1...
|
||||
TeamContributionPoints const* tc = sTeamContributionPoints.LookupEntry(level-1);
|
||||
TeamContributionPoints const* tc = sTeamContributionPoints.LookupEntry(level - 1);
|
||||
if (!tc)
|
||||
return 0;
|
||||
uint32 i_honor = uint32(tc->Value * GetRewHonorMultiplier() * 0.1f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue