Core/Items: Item bonus generation improvements

* Pass ItemContext to item creation wherever possible
* Support scaling item levels with m+ keystone levels (not used currently)
* Fixed item link validation when client sends it as default uninitialized bonus list with context only
* Support scaling items depending on current active season (seasons not implemented)
* Implemented content tuning redirection
This commit is contained in:
Shauren
2023-06-17 16:29:59 +02:00
parent a97cdfc8f5
commit 0fb8765a66
37 changed files with 1168 additions and 380 deletions

View File

@@ -3173,18 +3173,6 @@ MapDifficultyEntry const* Map::GetMapDifficulty() const
return sDB2Manager.GetMapDifficultyData(GetId(), GetDifficultyID());
}
ItemContext Map::GetDifficultyLootItemContext() const
{
if (MapDifficultyEntry const* mapDifficulty = GetMapDifficulty())
if (mapDifficulty->ItemContext)
return ItemContext(mapDifficulty->ItemContext);
if (DifficultyEntry const* difficulty = sDifficultyStore.LookupEntry(GetDifficultyID()))
return ItemContext(difficulty->ItemContext);
return ItemContext::NONE;
}
uint32 Map::GetId() const
{
return i_mapEntry->ID;