We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152aa70 commit ff447d4Copy full SHA for ff447d4
1 file changed
plugins/lua/dwarfmonitor.lua
@@ -116,9 +116,11 @@ end
116
function MiseryWidget:overlay_onupdate()
117
local counts, num_colors = {}, #self.colors
118
for _,unit in ipairs(df.global.world.units.active) do
119
+ if not dfhack.units.isCitizen(unit, true) then goto continue end
120
local stress_category = math.min(num_colors,
121
dfhack.units.getStressCategory(unit))
122
counts[stress_category] = (counts[stress_category] or 0) + 1
123
+ ::continue::
124
end
125
126
local width = 2 + num_colors - 1 -- 'H:' plus the slashes
0 commit comments