mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Fix ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM progress calc
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
278cd970f4
commit
1a55952fa0
1 changed files with 2 additions and 3 deletions
|
|
@ -9921,7 +9921,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
Item* lastItem = pItem;
|
Item* lastItem = pItem;
|
||||||
|
uint32 entry = pItem->GetEntry();
|
||||||
for(ItemPosCountVec::const_iterator itr = dest.begin(); itr != dest.end(); )
|
for(ItemPosCountVec::const_iterator itr = dest.begin(); itr != dest.end(); )
|
||||||
{
|
{
|
||||||
uint16 pos = itr->pos;
|
uint16 pos = itr->pos;
|
||||||
|
|
@ -9937,7 +9937,7 @@ Item* Player::StoreItem( ItemPosCountVec const& dest, Item* pItem, bool update )
|
||||||
|
|
||||||
lastItem = _StoreItem(pos,pItem,count,true,update);
|
lastItem = _StoreItem(pos,pItem,count,true,update);
|
||||||
}
|
}
|
||||||
|
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
|
||||||
return lastItem;
|
return lastItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13063,7 +13063,6 @@ void Player::ItemAddedQuestCheck( uint32 entry, uint32 count )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UpdateForQuestsGO();
|
UpdateForQuestsGO();
|
||||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM, entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count )
|
void Player::ItemRemovedQuestCheck( uint32 entry, uint32 count )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue