summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-27 12:09:36 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-27 12:09:36 +0000
commite96b82e8da0cac34290d98e9172db2dce90b5ed0 (patch)
tree4c5343e995c2b912f947e3583a4236aa0b1a7f4a /crawl-ref/source/describe.cc
parent5dd828e3caee784fb21743c52322a2202c99dc58 (diff)
downloadcrawl-ref-e96b82e8da0cac34290d98e9172db2dce90b5ed0.tar.gz
crawl-ref-e96b82e8da0cac34290d98e9172db2dce90b5ed0.zip
* Apply patch by kotk to fix the Alt-Tab bug (BR 2805959).
* Apply patch by trentbuck to allow packaging with tar (BR 2827595). * Fix 2827342: Consider weapons "too large to wield" as useless. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10424 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index c6863e4cb4..25047e2099 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -906,7 +906,11 @@ static std::string _describe_weapon(const item_def &item, bool verbose)
description += ", and it is better for the dexterous";
description += ".";
}
-
+ if (player_size(PSIZE_BODY) < SIZE_MEDIUM
+ && !check_weapon_wieldable_size(item, player_size(PSIZE_BODY)))
+ {
+ description += "$It is too large for you to wield.";
+ }
}
if (verbose)