mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Function added back
Function added back
This commit is contained in:
parent
bcf0a9b25a
commit
952edfa46e
1 changed files with 11 additions and 0 deletions
|
|
@ -105,6 +105,17 @@ VendorItem const* VendorItemData::FindItem(uint32 item_id) const
|
|||
return NULL;
|
||||
}
|
||||
|
||||
VendorItem const* VendorItemData::FindItemCostPair(uint32 item_id, uint8 type, uint32 extendedCost) const
|
||||
{
|
||||
for (VendorItemList::const_iterator i = m_items.begin(); i != m_items.end(); ++i)
|
||||
{
|
||||
// Skip checking for conditions, condition system is powerfull enough to not require additional entries only for the conditions
|
||||
if ((*i)->item == item_id && (*i)->ExtendedCost == extendedCost && (*i)->type == type)
|
||||
return *i;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool ForcedDespawnDelayEvent::Execute(uint64 /*e_time*/, uint32 /*p_time*/)
|
||||
{
|
||||
m_owner.ForcedDespawn();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue