summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 68ef785fd8..322c57b2b1 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -1512,18 +1512,19 @@ bool monsters::pickup_armour(item_def &item, int near, bool force)
break;
// And another hack or two...
case ARM_WIZARD_HAT:
- if (this->type == MONS_GASTRONOK)
+ if (type == MONS_GASTRONOK)
eq = EQ_BODY_ARMOUR;
break;
case ARM_CLOAK:
- if (this->type == MONS_MAURICE || this->type == MONS_NIKOLA ||
- this->type == MONS_CRAZY_YIUF)
+ if (type == MONS_MAURICE
+ || type == MONS_NIKOLA
+ || type == MONS_CRAZY_YIUF)
{
eq = EQ_BODY_ARMOUR;
}
break;
case ARM_GLOVES:
- if (this->type == MONS_NIKOLA)
+ if (type == MONS_NIKOLA)
eq = EQ_SHIELD;
break;
default:
@@ -1580,7 +1581,7 @@ bool monsters::pickup_armour(item_def &item, int near, bool force)
return (false);
}
- return pickup(item, mslot, near);
+ return (pickup(item, mslot, near));
}
bool monsters::pickup_weapon(item_def &item, int near, bool force)