From 5a67b828be37b3d399d1a4d3fc88afbb374d2e72 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 13 Sep 2024 14:37:41 -0700 Subject: [PATCH] don't display descriptive name if same as id --- exterminate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exterminate.lua b/exterminate.lua index cb893afe7..0043febb9 100644 --- a/exterminate.lua +++ b/exterminate.lua @@ -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))