This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
17 lines
413 B
C++
17 lines
413 B
C++
#include "stdafx.h"
|
|
#include "PickupTask.h"
|
|
|
|
void PickupTask::onTake(std::shared_ptr<ItemInstance> item, unsigned int invItemCountAnyAux, unsigned int invItemCountThisAux)
|
|
{
|
|
if(item->id == m_itemId)
|
|
{
|
|
if(m_auxValue == -1 && invItemCountAnyAux >= m_quantity)
|
|
{
|
|
bIsCompleted = true;
|
|
}
|
|
else if( m_auxValue == item->getAuxValue() && invItemCountThisAux >= m_quantity)
|
|
{
|
|
bIsCompleted = true;
|
|
}
|
|
}
|
|
} |