diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-24 08:37:10 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-24 08:37:10 -0700 |
commit | 230892da5a0135f7873b42c1cffff939ef61a83c (patch) | |
tree | 02fae9fcd493356d011723ed33ee0243f8f38cb3 | |
parent | 50cd98db082d718c1eaec9f46818ebca4d9bc309 (diff) | |
download | crawl-ref-230892da5a0135f7873b42c1cffff939ef61a83c.tar.gz crawl-ref-230892da5a0135f7873b42c1cffff939ef61a83c.zip |
Make Shatter use spellpower instead of Earth
-rw-r--r-- | crawl-ref/source/spl-damage.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc index 19f31aa1a4..ed7fcf28bf 100644 --- a/crawl-ref/source/spl-damage.cc +++ b/crawl-ref/source/spl-damage.cc @@ -1279,7 +1279,7 @@ static bool _shatterable(const actor *act) spret_type cast_shatter(int pow, bool fail) { { - int r_min = 3 + you.skill(SK_EARTH_MAGIC) / 5; + int r_min = 3 + min(pow / 20, 5); targetter_los hitfunc(&you, LOS_ARENA, r_min, min(r_min + 1, 8)); if (stop_attack_prompt(hitfunc, "harm", _shatterable)) return SPRET_ABORT; @@ -1296,7 +1296,7 @@ spret_type cast_shatter(int pow, bool fail) mprf(MSGCH_SOUND, "The dungeon rumbles!"); } - int rad = 3 + you.skill_rdiv(SK_EARTH_MAGIC, 1, 5); + int rad = 3 + min(div_rand_round(pow, 20), 5); int dest = 0; for (distance_iterator di(you.pos(), true, true, rad); di; ++di) |