summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-20 06:37:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-20 06:37:13 +0000
commitf106062e21791937bdc164673f27e2e3545e721d (patch)
tree562cf7d629f35fa16bd11e094b69e7ca2c6930ca
parent6e471380b7c120bd567d2dbdbb45a2e2582d840c (diff)
downloadcrawl-ref-f106062e21791937bdc164673f27e2e3545e721d.tar.gz
crawl-ref-f106062e21791937bdc164673f27e2e3545e721d.zip
Readjust smiting: smiting does more base damage, and less damage at the top
end. Also tweak airstrike to do more base damage (as befits a level 4 spell). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1069 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/spells3.cc22
1 files changed, 10 insertions, 12 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 7427ea6955..ecf1d28b04 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -212,12 +212,11 @@ int cast_smiting(int power)
{
monster = &menv[mgrd[beam.tx][beam.ty]];
- strcpy(info, "You smite ");
- strcat(info, ptr_monam( monster, DESC_NOCAP_THE ));
- strcat(info, "!");
- mpr(info);
+ mprf("You smite %s!", ptr_monam( monster, DESC_NOCAP_THE ));
- hurt_monster(monster, random2(8) + (random2(power) / 3));
+ // Maxes out at around 40 damage at 27 Invocations, which is plenty
+ // in my book (the old max damage was around 70, which seems excessive.
+ hurt_monster(monster, 7 + (random2(power) * 33 / 191));
if (monster->hit_points < 1)
monster_die(monster, KILL_YOU, 0);
@@ -245,14 +244,11 @@ int airstrike(int power, dist &beam)
{
monster = &menv[mgrd[beam.tx][beam.ty]];
- strcpy(info, "The air twists around and strikes ");
- strcat(info, ptr_monam( monster, DESC_NOCAP_THE ));
- strcat(info, "!");
- mpr(info);
+ mprf("The air twists around and strikes %s!",
+ ptr_monam( monster, DESC_NOCAP_THE ));
- hurted = random2( random2(12) + (random2(power) / 6)
- + (random2(power) / 7) );
- hurted -= random2(1 + monster->ac);
+ hurted = 8 + random2( random2(4) + (random2(power) / 6)
+ + (random2(power) / 7) );
if ( mons_flies(monster) )
{
@@ -260,6 +256,8 @@ int airstrike(int power, dist &beam)
hurted /= 2;
}
+ hurted -= random2(1 + monster->ac);
+
if (hurted < 0)
hurted = 0;
else