Skip to content

Commit d5de399

Browse files
LocalIdentityLocalIdentity
andauthored
Add Bloodline ascendancy to window title (#9320)
Helpful to know if you have a secondary ascendancy in the build Co-authored-by: LocalIdentity <[email protected]>
1 parent a9e37be commit d5de399

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Classes/PassiveSpec.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,11 @@ function PassiveSpecClass:RestoreUndoState(state, treeVersion)
20162016
end
20172017

20182018
function PassiveSpecClass:SetWindowTitleWithBuildClass()
2019-
main:SetWindowTitleSubtext(string.format("%s (%s)", self.build.buildName, self.curAscendClassId == 0 and self.curClassName or self.curAscendClassName))
2019+
local classText = self.curAscendClassId == 0 and self.curClassName or self.curAscendClassName
2020+
if self.curSecondaryAscendClassId and self.curSecondaryAscendClassId ~= 0 and self.curSecondaryAscendClassName then
2021+
classText = classText .. " + " .. self.curSecondaryAscendClassName
2022+
end
2023+
main:SetWindowTitleSubtext(string.format("%s (%s)", self.build.buildName, classText))
20202024
end
20212025

20222026
--- Adds a line to or replaces a node given a line to add/replace with

0 commit comments

Comments
 (0)