mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 13:20:20 +00:00
Initial commit - LCEMP source code (assets excluded)
This commit is contained in:
commit
21a5a4aef0
2946 files changed
+577259
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include "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