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/transfor.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/transfor.cc')
-rw-r--r-- | crawl-ref/source/transfor.cc | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc index 3340c16434..f677f4830a 100644 --- a/crawl-ref/source/transfor.cc +++ b/crawl-ref/source/transfor.cc @@ -881,25 +881,12 @@ void untransform(void) // cases to handle a large number of things (see wear_armour()) -- bwr bool can_equip( equipment_type use_which, bool ignore_temporary ) { - // if more cases are added to this if must also change in - // item_use for naga barding - if (ignore_temporary || !player_is_shapechanged()) - /* or a transformation which doesn't change overall shape */ + if (use_which == EQ_HELMET + && (player_mutation_level(MUT_HORNS) + || player_mutation_level(MUT_BEAK))) { - if (use_which == EQ_HELMET) - { - switch (you.species) - { - case SP_KENKU: - return (false); - default: - break; - } - } - } - - if (use_which == EQ_HELMET && player_mutation_level(MUT_HORNS)) return (false); + } if (use_which == EQ_BOOTS && !player_has_feet()) return (false); |