Add spaces after commas
This commit is contained in:
1 parent
01a79947d5
commit
1003f30448
645 files changed
+9439
-9439
No files matched your search
@@ -139,7 +139,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_MANA_CHANGED, handler->GetNameLink().c_str(), mana, manam);
|
||||
|
||||
target->SetMaxPower(POWER_MANA,manam);
|
||||
target->SetMaxPower(POWER_MANA, manam);
|
||||
target->SetPower(POWER_MANA, mana);
|
||||
|
||||
return true;
|
||||
@@ -188,10 +188,10 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_ENERGY_CHANGED, handler->GetNameLink().c_str(), energy/10, energym/10);
|
||||
|
||||
target->SetMaxPower(POWER_ENERGY,energym);
|
||||
target->SetMaxPower(POWER_ENERGY, energym);
|
||||
target->SetPower(POWER_ENERGY, energy);
|
||||
|
||||
sLog->outDetail(handler->GetTrinityString(LANG_CURRENT_ENERGY),target->GetMaxPower(POWER_ENERGY));
|
||||
sLog->outDetail(handler->GetTrinityString(LANG_CURRENT_ENERGY), target->GetMaxPower(POWER_ENERGY));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -239,7 +239,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_RAGE_CHANGED, handler->GetNameLink().c_str(), rage/10, ragem/10);
|
||||
|
||||
target->SetMaxPower(POWER_RAGE,ragem);
|
||||
target->SetMaxPower(POWER_RAGE, ragem);
|
||||
target->SetPower(POWER_RAGE, rage);
|
||||
|
||||
return true;
|
||||
@@ -273,7 +273,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_RUNIC_POWER_CHANGED, handler->GetNameLink().c_str(), rune/10, runem/10);
|
||||
|
||||
target->SetMaxPower(POWER_RUNIC_POWER,runem);
|
||||
target->SetMaxPower(POWER_RUNIC_POWER, runem);
|
||||
target->SetPower(POWER_RUNIC_POWER, rune);
|
||||
|
||||
return true;
|
||||
@@ -285,7 +285,7 @@ public:
|
||||
if (!*args)
|
||||
return false;
|
||||
|
||||
char* pfactionid = handler->extractKeyFromLink((char*)args,"Hfaction");
|
||||
char* pfactionid = handler->extractKeyFromLink((char*)args, "Hfaction");
|
||||
|
||||
Creature* target = handler->getSelectedCreature();
|
||||
if (!target)
|
||||
@@ -303,7 +303,7 @@ public:
|
||||
uint32 flag = target->GetUInt32Value(UNIT_FIELD_FLAGS);
|
||||
uint32 npcflag = target->GetUInt32Value(UNIT_NPC_FLAGS);
|
||||
uint32 dyflag = target->GetUInt32Value(UNIT_DYNAMIC_FLAGS);
|
||||
handler->PSendSysMessage(LANG_CURRENT_FACTION,target->GetGUIDLow(),factionid,flag,npcflag,dyflag);
|
||||
handler->PSendSysMessage(LANG_CURRENT_FACTION, target->GetGUIDLow(), factionid, flag, npcflag, dyflag);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -347,12 +347,12 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
handler->PSendSysMessage(LANG_YOU_CHANGE_FACTION, target->GetGUIDLow(),factionid,flag,npcflag,dyflag);
|
||||
handler->PSendSysMessage(LANG_YOU_CHANGE_FACTION, target->GetGUIDLow(), factionid, flag, npcflag, dyflag);
|
||||
|
||||
target->setFaction(factionid);
|
||||
target->SetUInt32Value(UNIT_FIELD_FLAGS,flag);
|
||||
target->SetUInt32Value(UNIT_NPC_FLAGS,npcflag);
|
||||
target->SetUInt32Value(UNIT_DYNAMIC_FLAGS,dyflag);
|
||||
target->SetUInt32Value(UNIT_FIELD_FLAGS, flag);
|
||||
target->SetUInt32Value(UNIT_NPC_FLAGS, npcflag);
|
||||
target->SetUInt32Value(UNIT_DYNAMIC_FLAGS, dyflag);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -488,7 +488,7 @@ public:
|
||||
|
||||
if (target->isInFlight())
|
||||
{
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT,targetNameLink.c_str());
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT, targetNameLink.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
@@ -497,11 +497,11 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_ASPEED_CHANGED, handler->GetNameLink().c_str(), ASpeed);
|
||||
|
||||
target->SetSpeed(MOVE_WALK, ASpeed,true);
|
||||
target->SetSpeed(MOVE_RUN, ASpeed,true);
|
||||
target->SetSpeed(MOVE_SWIM, ASpeed,true);
|
||||
//target->SetSpeed(MOVE_TURN, ASpeed,true);
|
||||
target->SetSpeed(MOVE_FLIGHT, ASpeed,true);
|
||||
target->SetSpeed(MOVE_WALK, ASpeed, true);
|
||||
target->SetSpeed(MOVE_RUN, ASpeed, true);
|
||||
target->SetSpeed(MOVE_SWIM, ASpeed, true);
|
||||
//target->SetSpeed(MOVE_TURN, ASpeed, true);
|
||||
target->SetSpeed(MOVE_FLIGHT, ASpeed, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -536,7 +536,7 @@ public:
|
||||
|
||||
if (target->isInFlight())
|
||||
{
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT,targetNameLink.c_str());
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT, targetNameLink.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
@@ -545,7 +545,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_SPEED_CHANGED, handler->GetNameLink().c_str(), Speed);
|
||||
|
||||
target->SetSpeed(MOVE_RUN,Speed,true);
|
||||
target->SetSpeed(MOVE_RUN, Speed, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -581,7 +581,7 @@ public:
|
||||
|
||||
if (target->isInFlight())
|
||||
{
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT,targetNameLink.c_str());
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT, targetNameLink.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
@@ -590,7 +590,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_SWIM_SPEED_CHANGED, handler->GetNameLink().c_str(), Swim);
|
||||
|
||||
target->SetSpeed(MOVE_SWIM,Swim,true);
|
||||
target->SetSpeed(MOVE_SWIM, Swim, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -626,7 +626,7 @@ public:
|
||||
|
||||
if (target->isInFlight())
|
||||
{
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT,targetNameLink.c_str());
|
||||
handler->PSendSysMessage(LANG_CHAR_IN_FLIGHT, targetNameLink.c_str());
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
@@ -635,7 +635,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_BACK_SPEED_CHANGED, handler->GetNameLink().c_str(), BSpeed);
|
||||
|
||||
target->SetSpeed(MOVE_RUN_BACK,BSpeed,true);
|
||||
target->SetSpeed(MOVE_RUN_BACK, BSpeed, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -671,7 +671,7 @@ public:
|
||||
if (handler->needReportToTarget(target))
|
||||
(ChatHandler(target)).PSendSysMessage(LANG_YOURS_FLY_SPEED_CHANGED, handler->GetNameLink().c_str(), FSpeed);
|
||||
|
||||
target->SetSpeed(MOVE_FLIGHT,FSpeed,true);
|
||||
target->SetSpeed(MOVE_FLIGHT, FSpeed, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1148,7 +1148,7 @@ public:
|
||||
if (handler->HasLowerSecurity(target, 0))
|
||||
return false;
|
||||
|
||||
char* factionTxt = handler->extractKeyFromLink((char*)args,"Hfaction");
|
||||
char* factionTxt = handler->extractKeyFromLink((char*)args, "Hfaction");
|
||||
if (!factionTxt)
|
||||
return false;
|
||||
|
||||
@@ -1164,7 +1164,7 @@ public:
|
||||
{
|
||||
std::string rankStr = rankTxt;
|
||||
std::wstring wrankStr;
|
||||
if (!Utf8toWStr(rankStr,wrankStr))
|
||||
if (!Utf8toWStr(rankStr, wrankStr))
|
||||
return false;
|
||||
wstrToLower(wrankStr);
|
||||
|
||||
@@ -1177,12 +1177,12 @@ public:
|
||||
continue;
|
||||
|
||||
std::wstring wrank;
|
||||
if (!Utf8toWStr(rank,wrank))
|
||||
if (!Utf8toWStr(rank, wrank))
|
||||
continue;
|
||||
|
||||
wstrToLower(wrank);
|
||||
|
||||
if (wrank.substr(0,wrankStr.size()) == wrankStr)
|
||||
if (wrank.substr(0, wrankStr.size()) == wrankStr)
|
||||
{
|
||||
char *deltaTxt = strtok(NULL, " ");
|
||||
if (deltaTxt)
|
||||
@@ -1224,7 +1224,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
target->GetReputationMgr().SetReputation(factionEntry,amount);
|
||||
target->GetReputationMgr().SetReputation(factionEntry, amount);
|
||||
handler->PSendSysMessage(LANG_COMMAND_MODIFY_REP, factionEntry->name[handler->GetSessionDbcLocale()], factionId,
|
||||
handler->GetNameLink(target).c_str(), target->GetReputationMgr().GetReputation(factionEntry));
|
||||
return true;
|
||||
@@ -1267,7 +1267,7 @@ public:
|
||||
else if (target->GetTypeId() == TYPEID_PLAYER && handler->HasLowerSecurity(target->ToPlayer(), 0))
|
||||
return false;
|
||||
|
||||
target->SetPhaseMask(phasemask,true);
|
||||
target->SetPhaseMask(phasemask, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user