From b3d8365da8efb695a18b85146a4e50ee0e9d7698 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 16 Jun 2008 19:27:45 +0000 Subject: Clean up and consolidate most of the monster pacification routines. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5885 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'crawl-ref/source/delay.cc') diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 81f8aba5ca..eb8268df08 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -198,23 +198,15 @@ static int _recite_to_monsters(int x, int y, int pow, int unused) } else { - // permanently neutral - mons->attitude = ATT_NEUTRAL; - mons->flags |= MF_WAS_NEUTRAL; - - // give half of the monster's xp - unsigned int exp_gain = 0, avail_gain = 0; - gain_exp( exper_value(mons) / 2 + 1, &exp_gain, &avail_gain ); - mons->flags |= MF_GOT_HALF_XP; - simple_monster_message(mons, " seems fully impressed!"); + mons_pacify(mons); } } break; } return (1); -} // end recite_to_monsters() +} static const char* _get_recite_speech(const std::string key, int weight) { -- cgit v1.2.3-54-g00ecf