summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-19 01:46:28 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-19 01:46:28 +0000
commita1dd87704d101b2e7b240c22fd7aea3d9d6e27aa (patch)
treee37e11332e217793cbeefb46b071608ecca20b9b /crawl-ref/source/player.cc
parent7383236892148f6270c689f236fea8d437d554f1 (diff)
downloadcrawl-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/player.cc')
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 02c7bf7abe..9cd7f6bb30 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -568,12 +568,15 @@ bool you_can_wear(int eq, bool special_armour)
if (you.species == SP_KENKU && (eq == EQ_HELMET || eq == EQ_BOOTS))
return (false);
- if (player_mutation_level(MUT_HORNS) && eq == EQ_HELMET)
- return (special_armour);
-
if (you.species == SP_GHOUL && eq == EQ_GLOVES)
return (false);
+ if (eq == EQ_HELMET
+ && (player_mutation_level(MUT_HORNS) || player_mutation_level(MUT_BEAK)))
+ {
+ return (special_armour);
+ }
+
// Else, no problems.
return (true);
}