funny
This commit is contained in:
1 parent
ff3b7789d5
commit
0e13ac4955
2368 files changed
+1
-3
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include "../../../../Minecraft.World/Build/stdafx.h"
|
||||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user