Skip to content

Commit

Permalink
Silence stuck-worship.lua spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumber64 authored Sep 24, 2024
1 parent f15dd35 commit 465213a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fix/stuck-worship.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
debug_print = false

local function for_pray_need(needs, fn)
for idx, need in ipairs(needs) do
if need.id == df.need_type.PrayOrMeditate then
Expand Down Expand Up @@ -85,7 +87,7 @@ for _,unit in ipairs(dfhack.units.getCitizens(false, true)) do
goto next_unit
end
local needs = unit.status.current_soul.personality.needs
if shuffle_prayer_needs(needs, prayer_targets) then
if shuffle_prayer_needs(needs, prayer_targets) and debug_print then
print('rebalanced prayer needs for ' ..
dfhack.df2console(dfhack.TranslateName(dfhack.units.getVisibleName(unit))))
end
Expand Down

0 comments on commit 465213a

Please sign in to comment.