From f931060dd992cbef8aa92aa25295a3893bcd5872 Mon Sep 17 00:00:00 2001 From: Kelly Martin Date: Sat, 7 Apr 2012 12:11:53 -0500 Subject: [PATCH] Exclude worn items from counts for workflow --- plugins/workflow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index 7e28893f5..5bdeb5d58 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -1128,6 +1128,10 @@ static void map_job_items(color_ostream &out) bool is_invalid = false; + // don't count worn items + if (item->getWear() >= 1) + is_invalid = true; + // Special handling switch (itype) { case item_type::BUCKET: