summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.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/fight.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/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 794e264666..619217047d 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -941,7 +941,7 @@ bool melee_attack::player_aux_unarmed()
if (uattack != UNAT_HEADBUTT)
{
if (!player_mutation_level(MUT_HORNS)
- && you.species != SP_KENKU
+ && !player_mutation_level(MUT_BEAK)
|| !one_chance_in(3))
{
continue;
@@ -957,7 +957,7 @@ bool melee_attack::player_aux_unarmed()
continue;
}
- if (you.species == SP_KENKU
+ if (player_mutation_level(MUT_BEAK)
&& (!player_mutation_level(MUT_HORNS) || coinflip()))
{
unarmed_attack = "peck";