diff options
| author | Alexander Gavrilov | 2012-03-02 11:19:30 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-02 11:19:30 +0400 |
| commit | da3ac54af78a081c4a1fd9bb1ed9301398b2371a (patch) | |
| tree | 0de347e0e007e84c10cb551016cf9f7f76fc4c4e /plugins/advtools.cpp | |
| parent | ae655daf1afde907d8e8e796c88fbc299cdb4900 (diff) | |
| download | dfhack-da3ac54af78a081c4a1fd9bb1ed9301398b2371a.tar.gz dfhack-da3ac54af78a081c4a1fd9bb1ed9301398b2371a.tar.bz2 dfhack-da3ac54af78a081c4a1fd9bb1ed9301398b2371a.tar.xz | |
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.
Diffstat (limited to 'plugins/advtools.cpp')
| -rw-r--r-- | plugins/advtools.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/advtools.cpp b/plugins/advtools.cpp index a1329d1a..c69fb6a4 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; |
