From 5d283404c9129d20b6d8f8c6dd2f051838e2d10d Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 6 Feb 2009 15:13:06 +0000 Subject: 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 --- crawl-ref/source/describe.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/describe.cc') 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"; -- cgit v1.2.3-54-g00ecf