From 6dca0fa1e8f2b2d6509e30e9b73c5104e8792709 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 25 Oct 2009 14:43:26 +0100 Subject: Make all but one weapon size checks use you.could_wield(), they were out of sync, that caused autoexplore ignore butchering knives for nagas, many weapons being randomly shown as useless while perfectly wieldable, and so on. --- crawl-ref/source/describe.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 482d467f2c..2185279562 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -914,11 +914,8 @@ static std::string _describe_weapon(const item_def &item, bool verbose) description += ", and it is better for the dexterous"; description += "."; } - if (you.body_size(PSIZE_BODY) < SIZE_MEDIUM - && !check_weapon_wieldable_size(item, you.body_size(PSIZE_BODY))) - { + if (!you.could_wield(item, true)) description += "$It is too large for you to wield."; - } } if (verbose) -- cgit v1.2.3-54-g00ecf