diff options
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); |