diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-25 23:48:56 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-25 23:48:56 +0000 |
commit | a6ac606f5217384d1b93d07926278e7a331de684 (patch) | |
tree | a96ef45154e190b8ee2672f39b754ddae8feb036 /crawl-ref/source/transfor.cc | |
parent | dc0f86e29f22e2823c2a54dabee97d6dbfec073d (diff) | |
download | crawl-ref-a6ac606f5217384d1b93d07926278e7a331de684.tar.gz crawl-ref-a6ac606f5217384d1b93d07926278e7a331de684.zip |
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9224 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/transfor.cc')
-rw-r--r-- | crawl-ref/source/transfor.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc index 8b8cc1d82b..3d20c0a8b7 100644 --- a/crawl-ref/source/transfor.cc +++ b/crawl-ref/source/transfor.cc @@ -180,28 +180,27 @@ static void _remove_equipment(const std::set<equipment_type>& removed, // FIXME: merge this with you_can_wear(), can_wear_armour(), etc. bool _mutations_prevent_wearing(const item_def& item) { - if (item.base_type == OBJ_JEWELLERY) - return (false); - const equipment_type eqslot = get_armour_slot(item); if (is_hard_helmet(item) - && (you.mutation[MUT_HORNS] || you.mutation[MUT_BEAK])) + && (player_mutation_level(MUT_HORNS) + || player_mutation_level(MUT_BEAK))) { return (true); } - if (item.sub_type == ARM_BOOTS // barding excepted! - && (you.mutation[MUT_HOOVES] || you.mutation[MUT_TALONS])) + // Barding is excepted here. + if (item.sub_type == ARM_BOOTS + && (player_mutation_level(MUT_HOOVES) + || player_mutation_level(MUT_TALONS))) { return (true); } - if (eqslot == EQ_GLOVES && you.mutation[MUT_CLAWS] >= 2) + if (eqslot == EQ_GLOVES && player_mutation_level(MUT_CLAWS) >= 3) return (true); return (false); - } static void _rewear_equipment_slot(equipment_type e) |