From 112341df7929da3f2c76d6f4a418c44ff4ff4792 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 2 Nov 2009 13:01:03 -0600 Subject: Add minor cosmetic fixes. --- crawl-ref/source/mon-act.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/mon-act.cc') diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 269fbb48ad..4a67c4d57c 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -2192,9 +2192,9 @@ static bool _monster_eat_item(monsters *monster, bool nearby) int quant = si->quantity; - death_ooze_ate_good = (get_weapon_brand(*si) == SPWPN_HOLY_WRATH - || get_ammo_brand(*si) == SPMSL_SILVER - && monster->type == MONS_DEATH_OOZE); + death_ooze_ate_good = (monster->type == MONS_DEATH_OOZE + && (get_weapon_brand(*si) == SPWPN_HOLY_WRATH + || get_ammo_brand(*si) == SPMSL_SILVER)); if (si->base_type != OBJ_GOLD) { @@ -2292,13 +2292,11 @@ static bool _monster_eat_item(monsters *monster, bool nearby) hps_changed = std::min(hps_changed, 50); if (death_ooze_ate_good) - { monster->hurt(NULL, hps_changed, BEAM_NONE, false); - } else { // This is done manually instead of using heal_monster(), - // because that function doesn't work quite this way. -- bwr + // because that function doesn't work quite this way. - bwr monster->hit_points += hps_changed; monster->max_hit_points = std::max(monster->hit_points, monster->max_hit_points); @@ -2310,11 +2308,10 @@ static bool _monster_eat_item(monsters *monster, bool nearby) nearby ? "" : " distant"); } - if (eaten_net) - simple_monster_message(monster, " devours the net!"); - if (death_ooze_ate_good) simple_monster_message(monster, " twists violently!"); + else if (eaten_net) + simple_monster_message(monster, " devours the net!"); else _jelly_divide(monster); } -- cgit v1.2.3-54-g00ecf