summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 20:39:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 20:39:31 +0000
commit0ffadca40b94c481141887d294d311ff738c2ad1 (patch)
tree2f45968b11a526f839411b19d13b5b4217bbd72c /crawl-ref/source/item_use.cc
parent3183b13800fe91b715929ef5f08b5683c1856a87 (diff)
downloadcrawl-ref-0ffadca40b94c481141887d294d311ff738c2ad1.tar.gz
crawl-ref-0ffadca40b94c481141887d294d311ff738c2ad1.zip
Fix 2005269: trolls being capable of wearing almost all armour types.
Remove dated mentions of item sacrifices in print_god_likes(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6188 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 08825a71fa..4b6e615c5e 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -980,8 +980,8 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
return (false);
}
- // Giant races
- if (player_genus(GENPC_OGRE) || player_genus(GENPC_DRACONIAN))
+ // Giant races and draconians.
+ if (player_size(PSIZE_TORSO) >= SIZE_LARGE || player_genus(GENPC_DRACONIAN))
{
if (sub_type >= ARM_LEATHER_ARMOUR
&& sub_type <= ARM_PLATE_MAIL