summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 15:13:06 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 15:13:06 +0000
commit5d283404c9129d20b6d8f8c6dd2f051838e2d10d (patch)
treeaadfed893cfbc5647d027271345adfe0f9a9815f /crawl-ref/source/describe.cc
parent8dbcc4dbe18b959b2eab5a2c20aac3f97c6179f9 (diff)
downloadcrawl-ref-5d283404c9129d20b6d8f8c6dd2f051838e2d10d.tar.gz
crawl-ref-5d283404c9129d20b6d8f8c6dd2f051838e2d10d.zip
Don't allow monsters wielding two-handed weapons to pick up shields.
Partial fix for [2508934]; the bug is still there because monster nagas count as SIZE_BIG, not SIZE_LARGE. I'll let dolorous fix the monster flags. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8926 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index f5ebbfa8a4..80744767a5 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1083,7 +1083,8 @@ static std::string _describe_weapon(const item_def &item, bool verbose)
break;
}
- const int str_weight = weapon_str_weight(item.base_type, item.sub_type);
+ const int str_weight = weapon_str_weight(item.base_type,
+ item.sub_type);
if (str_weight >= 8)
description += ", and it is best used by the strong";