|
|
@ -96,7 +96,7 @@ eventful.onJobCompleted.reactionTrigger = function(job)
|
|
|
|
local didSomething
|
|
|
|
local didSomething
|
|
|
|
if action.command then
|
|
|
|
if action.command then
|
|
|
|
local processed = processCommand(job, worker, worker, building, action.command)
|
|
|
|
local processed = processCommand(job, worker, worker, building, action.command)
|
|
|
|
print(dfhack.run_command(table.unpack(processed)))
|
|
|
|
dfhack.run_command(table.unpack(processed))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if action.syndrome then
|
|
|
|
if action.syndrome then
|
|
|
|
didSomething = syndromeUtil.infectWithSyndromeIfValidTarget(worker, action.syndrome, action.resetPolicy) or didSomething
|
|
|
|
didSomething = syndromeUtil.infectWithSyndromeIfValidTarget(worker, action.syndrome, action.resetPolicy) or didSomething
|
|
|
|