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-26 13:41:10 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 13:41:10 +0000
commitd6db41124871b21f6da082e80d976a71495b6996 (patch)
treeec1a93fb80830dcf3b73a65d86e7657aa7a3bfbf /crawl-ref/source/item_use.cc
parent61cae4a761c2f72cda44ae269c7007b37a0c14a7 (diff)
downloadcrawl-ref-d6db41124871b21f6da082e80d976a71495b6996.tar.gz
crawl-ref-d6db41124871b21f6da082e80d976a71495b6996.zip
Fix the character selecting omitting letters for restricted classes (as
opposed to banned ones). Tweak the code to enforce wearable body armour and shield types for all species. I'm afraid the skills need to be adjusted as well, probably in more detail, but I'm rather clueless on that account. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6147 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index e6a0deed8e..78393231c9 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -981,8 +981,7 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
}
// Giant races
- if (you.species >= SP_OGRE && you.species <= SP_OGRE_MAGE
- || player_genus(GENPC_DRACONIAN))
+ if (player_genus(GENPC_OGRE) || player_genus(GENPC_DRACONIAN))
{
if (sub_type >= ARM_LEATHER_ARMOUR
&& sub_type <= ARM_PLATE_MAIL