Skip to content

Commit

Permalink
Improve further
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuukk authored Mar 23, 2024
1 parent 1e5e8ca commit 9dbedad
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,15 @@ function ImportTabClass:BuildCharacterList(league)
wipeTable(self.controls.charSelect.list)
for i, char in ipairs(self.lastCharList) do
if not league or char.league == league then
lbl = nil
if lbl == "All" then
string.format("%s: Level %d %s in %s", char.name or "?", char.level or 0, char.class or "?", char.league or "?")
else
string.format("%s: Level %d %s", char.name or "?", char.level or 0, char.class or "?")
end
charLvl = char.level or 0
charLeague = char.league or "?"
charName = char.name or "?"
charClass = char.class or "?"
lbl = (league == nil and
string.format("%s: Level %d %s in %s", charName, charLvl, charClass, charLeague)
or
string.format("%s: Level %d %s", charName, charLvl, charClass)
)
t_insert(self.controls.charSelect.list, {
label = lbl,
char = char,
Expand Down

0 comments on commit 9dbedad

Please sign in to comment.