Add Bloodline ascendancy to window title (#9320)

Helpful to know if you have a secondary ascendancy in the build

Co-authored-by: LocalIdentity <localidentity2@gmail.com>
This commit is contained in:
LocalIdentity
2025-11-22 20:38:30 +11:00
committed by GitHub
parent a9e37be167
commit d5de39951e

View File

@@ -2016,7 +2016,11 @@ function PassiveSpecClass:RestoreUndoState(state, treeVersion)
end
function PassiveSpecClass:SetWindowTitleWithBuildClass()
main:SetWindowTitleSubtext(string.format("%s (%s)", self.build.buildName, self.curAscendClassId == 0 and self.curClassName or self.curAscendClassName))
local classText = self.curAscendClassId == 0 and self.curClassName or self.curAscendClassName
if self.curSecondaryAscendClassId and self.curSecondaryAscendClassId ~= 0 and self.curSecondaryAscendClassName then
classText = classText .. " + " .. self.curSecondaryAscendClassName
end
main:SetWindowTitleSubtext(string.format("%s (%s)", self.build.buildName, classText))
end
--- Adds a line to or replaces a node given a line to add/replace with