diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-19 01:46:28 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-19 01:46:28 +0000 |
commit | a1dd87704d101b2e7b240c22fd7aea3d9d6e27aa (patch) | |
tree | e37e11332e217793cbeefb46b071608ecca20b9b /crawl-ref/source/item_use.cc | |
parent | 7383236892148f6270c689f236fea8d437d554f1 (diff) | |
download | crawl-ref-a1dd87704d101b2e7b240c22fd7aea3d9d6e27aa.tar.gz crawl-ref-a1dd87704d101b2e7b240c22fd7aea3d9d6e27aa.zip |
Turn kenkus' hardcoded pecking attack and inability to wear helmets into
an intrinsic beak mutation (assuming, of course, that the beak is what
makes helmets unwearable).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7493 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 56f17edf77..a37d5f9681 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -962,11 +962,10 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary) return (false); } - if (you.species == SP_KENKU - && (ignore_temporary || !player_is_shapechanged())) + if (player_mutation_level(MUT_BEAK)) { if (verbose) - mpr("That helmet does not fit your head!"); + mpr("You can't wear that with your beak!"); return (false); } |