diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 19:28:55 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-13 19:28:55 +0000 |
commit | 353f9251363fb63c3847d79147a6a7dde26fb71a (patch) | |
tree | f4a73f1fbc061590f724bc63705833005a2df5fb /crawl-ref/source/mstuff2.cc | |
parent | 7f9a43df02a44e3dc746f5dee6986205021f6c58 (diff) | |
download | crawl-ref-353f9251363fb63c3847d79147a6a7dde26fb71a.tar.gz crawl-ref-353f9251363fb63c3847d79147a6a7dde26fb71a.zip |
Add still more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5784 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index c67ee92612..c252a47cde 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -2243,7 +2243,7 @@ bolt mons_spells( int spell_cast, int power ) } // end mons_spells() static int _monster_abjure_square(const coord_def &pos, - int power, int actual, + int pow, int actual, int wont_attack) { const int mindex = mgrd(pos); @@ -2258,17 +2258,17 @@ static int _monster_abjure_square(const coord_def &pos, if (abj.ench == ENCH_NONE) return (0); - power = std::max(20, fuzz_value(power, 40, 25)); + pow = std::max(20, fuzz_value(pow, 40, 25)); if (!actual) - return (power > 40 || power >= abj.duration); + return (pow > 40 || pow >= abj.duration); #ifdef DEBUG_DIAGNOSTICS mprf(MSGCH_DIAGNOSTICS, "Abj: dur: %d, pow: %d, ndur: %d", - abj.duration, power, abj.duration - power); + abj.duration, pow, abj.duration - pow); #endif - if (!target->lose_ench_duration(abj, power)) + if (!target->lose_ench_duration(abj, pow)) simple_monster_message(target, " shudders."); return (1); |