@@ -464,6 +464,42 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
464464 SetDrawColor (1 , 1 , 1 , 0.25 )
465465 end
466466 self :DrawAsset (tree .assets [" Classes" .. group .ascendancyName ], scrX , scrY , scale )
467+
468+ local ascendancyData
469+ local isAlternateAscendancy = false
470+ -- Search normal ascendancies
471+ for _ , class in ipairs (tree .classes ) do
472+ for _ , ascendancy in ipairs (class .ascendancies ) do
473+ if ascendancy .id == group .ascendancyName then
474+ ascendancyData = ascendancy
475+ break
476+ end
477+ end
478+ if ascendancyData then break end
479+ end
480+
481+ -- Search alternate ascendancies if not found
482+ if not ascendancyData and tree .alternate_ascendancies then
483+ for _ , ascendancy in pairs (tree .alternate_ascendancies ) do
484+ if ascendancy .id == group .ascendancyName then
485+ ascendancyData = ascendancy
486+ isAlternateAscendancy = true
487+ break
488+ end
489+ end
490+ end
491+ if ascendancyData and ascendancyData .flavourTextRect then
492+ local rect = ascendancyData .flavourTextRect
493+ local textColor = " ^x" .. ascendancyData .flavourTextColour
494+
495+ -- Normal ascendancy images are 1300x1300, bloodline appears to be 1488x1412
496+ local offsetX = rect .x - (isAlternateAscendancy and 744 or 650 )
497+ local offsetY = rect .y - (isAlternateAscendancy and 706 or 650 )
498+
499+ local textX , textY = treeToScreen (group .x + offsetX , group .y + offsetY )
500+
501+ DrawString (textX , textY , " LEFT" , 52 * scale , " FONTIN ITALIC" , textColor .. ascendancyData .flavourText )
502+ end
467503 SetDrawColor (1 , 1 , 1 )
468504 end
469505 elseif group .oo [3 ] then
0 commit comments