From da3ac54af78a081c4a1fd9bb1ed9301398b2371a Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 2 Mar 2012 11:19:30 +0400 Subject: [PATCH] Don't put clothing held in hands into the first 3 columns of list-equipped. For some reason that stuff has INV_WEAPON and shows up in the report, so since it does, put it in the weapon column. --- plugins/advtools.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/advtools.cpp b/plugins/advtools.cpp index a1329d1a6..c69fb6a47 100644 --- a/plugins/advtools.cpp +++ b/plugins/advtools.cpp @@ -505,6 +505,12 @@ static void printEquipped(Core *c, df::unit *unit, bool all) // Add to the right table int count = item->getStackSize(); + if (is_weapon) + { + weapons[name] += count; + continue; + } + switch (iinfo.type) { case item_type::HELM: head[name] += count;