Core/Items: Fixed heirloom items counting for item set bonuses past their max scaling level and implemented new heirloom upgrade levels
Port From (https://github.com/TrinityCore/TrinityCore/commit/3c12a189e430b1b6e0a452f272860f58b2dca7bd)
This commit is contained in:
@@ -1092,6 +1092,15 @@ namespace Game.DataStorage
|
||||
return null;
|
||||
}
|
||||
|
||||
public Tuple<float, float> GetCurveXAxisRange(uint curveId)
|
||||
{
|
||||
var points = _curvePoints.LookupByKey(curveId);
|
||||
if (!points.Empty())
|
||||
return Tuple.Create(points.First().Pos.X, points.Last().Pos.X);
|
||||
|
||||
return Tuple.Create(0.0f, 0.0f);
|
||||
}
|
||||
|
||||
static CurveInterpolationMode DetermineCurveType(CurveRecord curve, List<CurvePointRecord> points)
|
||||
{
|
||||
switch (curve.Type)
|
||||
|
||||
Reference in New Issue
Block a user