mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-03 02:43:49 +00:00
Codestyle fix (#1797)
Warning: Dont change this PR as draft to make it testable DONT REVIEW UNTIL Codestyle C++ workflow dont pass
This commit is contained in:
@@ -48,7 +48,7 @@ bool QuestAction::Execute(Event event)
|
||||
|
||||
// Check the nearest NPCs
|
||||
GuidVector npcs = AI_VALUE(GuidVector, "nearest npcs");
|
||||
for (const auto& npc : npcs)
|
||||
for (auto const& npc : npcs)
|
||||
{
|
||||
Unit* unit = botAI->GetUnit(npc);
|
||||
if (unit && bot->GetDistance(unit) <= INTERACTION_DISTANCE)
|
||||
@@ -59,7 +59,7 @@ bool QuestAction::Execute(Event event)
|
||||
|
||||
// Checks the nearest game objects
|
||||
GuidVector gos = AI_VALUE(GuidVector, "nearest game objects");
|
||||
for (const auto& go : gos)
|
||||
for (auto const& go : gos)
|
||||
{
|
||||
GameObject* gameobj = botAI->GetGameObject(go);
|
||||
if (gameobj && bot->GetDistance(gameobj) <= INTERACTION_DISTANCE)
|
||||
@@ -359,7 +359,7 @@ bool QuestUpdateAddItemAction::Execute(Event event)
|
||||
uint32 availableItemsCount = botAI->GetInventoryItemsCountWithId(itemId);
|
||||
placeholders["%quest_obj_available"] = std::to_string(availableItemsCount);
|
||||
|
||||
for (const auto& pair : botAI->GetCurrentQuestsRequiringItemId(itemId))
|
||||
for (auto const& pair : botAI->GetCurrentQuestsRequiringItemId(itemId))
|
||||
{
|
||||
placeholders["%quest_link"] = chat->FormatQuest(pair.first);
|
||||
uint32 requiredItemsCount = pair.second;
|
||||
|
||||
Reference in New Issue
Block a user