summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 10:39:45 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 10:39:45 -0600
commita70fa41dbe4a40c351d4b053734375f365b2e043 (patch)
tree94bf7e260c894c67cc11ec13dbcd73f80979f422 /crawl-ref/source/monster.cc
parent892eaad5f1a997d89b24d0a160ba2621d57c536b (diff)
downloadcrawl-ref-a70fa41dbe4a40c351d4b053734375f365b2e043.tar.gz
crawl-ref-a70fa41dbe4a40c351d4b053734375f365b2e043.zip
Move monsters::is_shapeshifter() in monster.cc down to match monster.h.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 78bb92a710..ae61c51364 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -3053,11 +3053,6 @@ bool monsters::is_chaotic() const
return (false);
}
-bool monsters::is_shapeshifter() const
-{
- return (has_ench(ENCH_GLOWING_SHAPESHIFTER, ENCH_SHAPESHIFTER));
-}
-
int monsters::res_fire() const
{
const mon_resist_def res = get_mons_resists(this);
@@ -3860,6 +3855,11 @@ bool monsters::is_actual_spellcaster() const
return (flags & MF_ACTUAL_SPELLS);
}
+bool monsters::is_shapeshifter() const
+{
+ return (has_ench(ENCH_GLOWING_SHAPESHIFTER, ENCH_SHAPESHIFTER));
+}
+
bool monsters::has_ench(enchant_type ench) const
{
return (enchantments.find(ench) != enchantments.end());