Core/Items: Calculating item level + organized iterating over items (#26276)

* Unified iterating player items into a single function

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Matan Shukry
2021-04-21 11:02:42 +03:00
committed by GitHub
parent bf1c73dfc2
commit a8fa2a03be
10 changed files with 377 additions and 472 deletions

View File

@@ -1364,6 +1364,9 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
if (!pCurrChar->IsStandState() && !pCurrChar->HasUnitState(UNIT_STATE_STUNNED))
pCurrChar->SetStandState(UNIT_STAND_STATE_STAND);
pCurrChar->UpdateAverageItemLevelTotal();
pCurrChar->UpdateAverageItemLevelEquipped();
m_playerLoading.Clear();
// Handle Login-Achievements (should be handled after loading)