Skip to content

Commit 5a67b82

Browse files
committed
don't display descriptive name if same as id
1 parent 4795ff5 commit 5a67b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exterminate.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ if not positionals[1] or positionals[1] == 'list' then
199199
end)
200200
for _,v in ipairs(sorted_races) do
201201
local name_str = v.name
202-
if name_str ~= 'UNDEAD' then
202+
if name_str ~= 'UNDEAD' and v.display_name ~= string.lower(name_str):gsub('_', ' ') then
203203
name_str = ('%-'..tostring(max_width)..'s (%s)'):format(name_str, v.display_name)
204204
end
205205
print(('%4s %s'):format(v.count, name_str))

0 commit comments

Comments
 (0)