Core/Players: Implemented secondary stat diminishing
Port From (https://github.com/TrinityCore/TrinityCore/commit/cb47605235a49bb2c6065b2e6de69b657a9c905f)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user