Skip to content

Commit be93316

Browse files
committed
concentration curve graph fix
1 parent 9d6708a commit be93316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/Statistics/UI.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ function CraftSim.STATISTICS.UI:UpdateDisplay(recipeData)
469469

470470
graph:AddDataSeries(points, CraftSim.STATISTICS.UI.CONCENTRATION_GRAPH_LINE_COLOR)
471471

472-
-- draw current skill?
473-
local currentSkill = recipeData.professionStats.skill.value
472+
-- draw current skill, but set maximum x to recipedifficulty
473+
local currentSkill = math.min(recipeData.professionStats.skill.value, recipeDifficulty)
474474
local currentCost = recipeData.concentrationCost
475475
local yOffset = (maxCost / 100) * 1.5 -- % of yMax
476476
local xOffset = (recipeDifficulty / 100) * 1 -- % of xMax

0 commit comments

Comments
 (0)