Skip to content

Commit

Permalink
don't display descriptive name if same as id
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 13, 2024
1 parent 4795ff5 commit 5a67b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exterminate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ if not positionals[1] or positionals[1] == 'list' then
end)
for _,v in ipairs(sorted_races) do
local name_str = v.name
if name_str ~= 'UNDEAD' then
if name_str ~= 'UNDEAD' and v.display_name ~= string.lower(name_str):gsub('_', ' ') then
name_str = ('%-'..tostring(max_width)..'s (%s)'):format(name_str, v.display_name)
end
print(('%4s %s'):format(v.count, name_str))
Expand Down

0 comments on commit 5a67b82

Please sign in to comment.