mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-25 20:24:42 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
16 lines
388 B
C++
16 lines
388 B
C++
#include "PickupTask.h"
|
|
|
|
void PickupTask::onTake(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;
|
|
}
|
|
}
|
|
} |