Skip to content

Commit

Permalink
future proof formatting changes in getReadableName
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 6, 2024
1 parent 2c0eff1 commit d98b8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/lua/sort/info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ local function is_risky(unit)
if RISKY_PROFESSIONS[unit.profession] or RISKY_PROFESSIONS[unit.profession2] then
return true
end
if dfhack.units.getReadableName(unit):endswith('necromancer') then return true end
if dfhack.units.getReadableName(unit):find('necromancer') then return true end
return not dfhack.units.isAlive(unit) -- detect intelligent undead
end

Expand Down

0 comments on commit d98b8ae

Please sign in to comment.