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