Core/Players: Implemented secondary stat diminishing

Port From (https://github.com/TrinityCore/TrinityCore/commit/cb47605235a49bb2c6065b2e6de69b657a9c905f)
This commit is contained in:
hondacrx
2021-02-09 13:28:06 -05:00
parent 9a14cfe807
commit 926035b704
9 changed files with 114 additions and 7 deletions
+12 -3
View File
@@ -1370,11 +1370,15 @@ namespace Game.DataStorage
return _factionTeams.LookupByKey(faction);
}
public HeirloomRecord GetHeirloomByItemId(uint itemId)
public uint GetGlobalCurveId(GlobalCurve globalCurveType)
{
return _heirlooms.LookupByKey(itemId);
}
foreach (var globalCurveEntry in CliDB.GlobalCurveStorage.Values)
if (globalCurveEntry.Type == globalCurveType)
return globalCurveEntry.CurveID;
return 0;
}
public List<uint> GetGlyphBindableSpells(uint glyphPropertiesId)
{
return _glyphBindableSpells.LookupByKey(glyphPropertiesId);
@@ -1385,6 +1389,11 @@ namespace Game.DataStorage
return _glyphRequiredSpecs.LookupByKey(glyphPropertiesId);
}
public HeirloomRecord GetHeirloomByItemId(uint itemId)
{
return _heirlooms.LookupByKey(itemId);
}
public List<ItemBonusRecord> GetItemBonusList(uint bonusListId)
{
return _itemBonusLists.LookupByKey(bonusListId);