From ba3d08acb430062418484ed3e778474cd3b9482b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 3 Dec 2008 16:16:06 +0000 Subject: 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 --- crawl-ref/source/mon-util.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/mon-util.cc') 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(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"); } -- cgit v1.2.3-54-g00ecf