summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 16:16:06 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-03 16:16:06 +0000
commitba3d08acb430062418484ed3e778474cd3b9482b (patch)
treea01b36b1d63b8a3b6a20f851175c2df214b28aea /crawl-ref/source/mon-util.cc
parentc4d32f0ab799f5dde968e6886961dd4ac26033b1 (diff)
downloadcrawl-ref-ba3d08acb430062418484ed3e778474cd3b9482b.tar.gz
crawl-ref-ba3d08acb430062418484ed3e778474cd3b9482b.zip
Implement harpyes. They ...
* appear in bands of 2-5 * use bat like movement * may steal (= destroy) the player's food. Still needs a tile. Also, actually use the M_BATTY flag instead of hardcoding batty monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7734 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 0cb418ffc1..3e6cf8ceec 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1024,7 +1024,7 @@ mon_attack_def mons_attack_spec(const monsters *mon, int attk_number)
if (attk.type == AT_RANDOM)
attk.type = static_cast<mon_attack_type>(random_range(AT_HIT,
- AT_BUTT));
+ AT_BUTT));
if (attk.flavour == AF_KLOWN)
{
@@ -2470,7 +2470,7 @@ bool mons_is_lurking(const monsters *m)
bool mons_is_batty(const monsters *m)
{
- return testbits(m->flags, MF_BATTY);
+ return mons_class_flag(m->type, M_BATTY);
}
bool mons_was_seen(const monsters *m)
@@ -4803,7 +4803,7 @@ std::string monsters::hand_name(bool plural, bool *can_plural) const
// Reduce the chance of a random-shaped monster having hands.
if (rand && coinflip())
return (hand_name(plural, can_plural));
-
+
str = "hand";
}
@@ -4918,7 +4918,7 @@ std::string monsters::foot_name(bool plural, bool *can_plural) const
// Reduce the chance of a random-shaped monster having feet.
if (rand && coinflip())
return (foot_name(plural, can_plural));
-
+
return (plural ? "feet" : "foot");
}