diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-31 09:04:04 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-31 09:04:04 +0000 |
commit | 8be55909c75406b5e852363e3d790855124765c8 (patch) | |
tree | 1cdb5128d4470cc738c5dc072e3db56836a51785 /crawl-ref/source/mstuff2.cc | |
parent | 13ce09cb0deb85ade0144a3b0fe668b2c6de18d4 (diff) | |
download | crawl-ref-8be55909c75406b5e852363e3d790855124765c8.tar.gz crawl-ref-8be55909c75406b5e852363e3d790855124765c8.zip |
Horrible things are now temporary.
Monster abjuration is considerably weaker.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@910 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index 3a60fda754..101e8d30d7 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -1815,7 +1815,6 @@ bolt mons_spells( int spell_cast, int power ) static unsigned char monster_abjuration(int pow, bool test) { - unsigned char result = 0; struct monsters *monster = 0; // NULL {dlb} @@ -1846,7 +1845,7 @@ static unsigned char monster_abjuration(int pow, bool test) if (pow > 60) pow = 60; - abjLevel -= 1 + (random2(pow) / 3); + abjLevel -= 1 + (random2(pow / 3) / 3); if (abjLevel < ENCH_ABJ_I) monster_die(monster, KILL_RESET, 0); @@ -1856,6 +1855,9 @@ static unsigned char monster_abjuration(int pow, bool test) mons_del_ench(monster, ENCH_ABJ_I, ENCH_ABJ_VI); mons_add_ench(monster, abjLevel); } + + if (!(pow /= 2)) + break; } return result; |