diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-16 15:57:22 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-16 15:57:22 +0000 |
commit | 508e46c4ef02687e12a068016b47b14ac5da53b2 (patch) | |
tree | c26d7b55f3474a3813fbafa4271b3cb583494e75 /crawl-ref/source/beam.cc | |
parent | a6e2dbfb706d7fe4c6f384ab1f754f16b53205fb (diff) | |
download | crawl-ref-508e46c4ef02687e12a068016b47b14ac5da53b2.tar.gz crawl-ref-508e46c4ef02687e12a068016b47b14ac5da53b2.zip |
Make the chance of getting an intact enslaved soul from Yred dependent
on Invocations skill instead of straight 50%.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10233 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index a8fb1dab6e..831e4cdf88 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4831,14 +4831,14 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon) // The monster can be no more than lightly wounded/damaged, // using the formula from monstuff.cc:mons_get_damage_level(). - if (mon->hit_points <= (mon->max_hit_points * 3) / 4) + if (mon->hit_points <= mon->max_hit_points * 3 / 4) { simple_monster_message(mon, "'s soul is too badly injured."); return (MON_OTHER); } obvious_effect = true; - const int duration = (you.skills[SK_INVOCATIONS] * 3) / 4 + 1; + const int duration = you.skills[SK_INVOCATIONS] * 3 / 4 + 1; mon->add_ench(mon_enchant(ENCH_SOUL_RIPE, 0, KC_YOU, duration * 10)); simple_monster_message(mon, "'s soul is now ripe for the taking."); return (MON_AFFECTED); |