From 14ef20154318f3605e37aebdc2a5766f761d3177 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 28 Jun 2009 18:28:54 +0000 Subject: Applying Eino's patches renaming snakes and eels. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10069 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 04aa3a9916..11009cef34 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -3583,7 +3583,7 @@ bool monsters::wants_submerge() const return (_foe == NULL || !can_see(_foe)); } - const bool has_ranged_attack = (type == MONS_ELECTRICAL_EEL + const bool has_ranged_attack = (type == MONS_ELECTRIC_EEL || type == MONS_LAVA_SNAKE || mons_genus(type) == MONS_MERMAID && you.species != SP_MERFOLK); @@ -7372,7 +7372,7 @@ void monsters::apply_enchantment(const mon_enchant &me) const dungeon_feature_type grid = grd(pos()); // Badly injured monsters prefer to stay submerged... - // electrical eels and lava snakes have ranged attacks + // electric eels and lava snakes have ranged attacks // and are more likely to surface. -- bwr if (!monster_can_submerge(this, grid)) del_ench(ENCH_SUBMERGED); // forced to surface @@ -7385,7 +7385,7 @@ void monsters::apply_enchantment(const mon_enchant &me) del_ench(ENCH_SUBMERGED); break; } - else if (((type == MONS_ELECTRICAL_EEL || type == MONS_LAVA_SNAKE) + else if (((type == MONS_ELECTRIC_EEL || type == MONS_LAVA_SNAKE) && (one_chance_in(50) || (mons_near(this) && hit_points == max_hit_points && !one_chance_in(10)))) @@ -8966,7 +8966,7 @@ mon_body_shape get_mon_shape(const int type) case 'Z': // constructed type, not enough info to determine shape return(MON_SHAPE_MISC); case ';': // Fish and eels - if (type == MONS_ELECTRICAL_EEL) + if (type == MONS_ELECTRIC_EEL) return(MON_SHAPE_SNAKE); else return (MON_SHAPE_FISH); -- cgit v1.2.3-54-g00ecf