summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-08-05 09:48:10 -0400
committerNeil Moore <neil@s-z.org>2014-08-05 09:53:29 -0400
commit063fcaf40b3c530355450bff6af4b83cb473af5f (patch)
tree4b6bea1ca5fc294433444bea8a9b2cad315dc0fd /crawl-ref/source/item_use.cc
parent63d8d37e0bcefc4a0ba234f126301f3d9550e0a7 (diff)
downloadcrawl-ref-063fcaf40b3c530355450bff6af4b83cb473af5f.tar.gz
crawl-ref-063fcaf40b3c530355450bff6af4b83cb473af5f.zip
Don't let forms unmark aux armour as useless (#8854)
If the form suppresses a mutation that prevents use of an armour slot, continue listing items for that slot as useless even while in that form. This also prevents, e.g., transformed formicids acquiring hats.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 2cfca3750f..4b61b9c990 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -618,7 +618,7 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
if (sub_type == ARM_BOOTS)
{
- if (player_mutation_level(MUT_HOOVES) == 3)
+ if (player_mutation_level(MUT_HOOVES, false) == 3)
{
if (verbose)
mpr("You can't wear boots with hooves!");
@@ -654,14 +654,14 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
if (slot == EQ_HELMET)
{
// Horns 3 & Antennae 3 mutations disallow all headgear
- if (player_mutation_level(MUT_HORNS) == 3)
+ if (player_mutation_level(MUT_HORNS, false) == 3)
{
if (verbose)
mpr("You can't wear any headgear with your large horns!");
return false;
}
- if (player_mutation_level(MUT_ANTENNAE) == 3)
+ if (player_mutation_level(MUT_ANTENNAE, false) == 3)
{
if (verbose)
mpr("You can't wear any headgear with your large antennae!");
@@ -671,21 +671,21 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
// Soft helmets (caps and wizard hats) always fit, otherwise.
if (is_hard_helmet(item))
{
- if (player_mutation_level(MUT_HORNS))
+ if (player_mutation_level(MUT_HORNS, false))
{
if (verbose)
mpr("You can't wear that with your horns!");
return false;
}
- if (player_mutation_level(MUT_BEAK))
+ if (player_mutation_level(MUT_BEAK, false))
{
if (verbose)
mpr("You can't wear that with your beak!");
return false;
}
- if (player_mutation_level(MUT_ANTENNAE))
+ if (player_mutation_level(MUT_ANTENNAE, false))
{
if (verbose)
mpr("You can't wear that with your antennae!");