summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-05 16:46:35 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-05 16:46:35 +0000
commit8b6403164380ecbc2a0a16b15757fd2cdce548eb (patch)
tree2f6d8bf84b4be0b82aad5ef055516e758e505b16 /crawl-ref/source/spells3.cc
parentcd9d13b92dee71ff7671c10e69e4508b7554ff69 (diff)
downloadcrawl-ref-8b6403164380ecbc2a0a16b15757fd2cdce548eb.tar.gz
crawl-ref-8b6403164380ecbc2a0a16b15757fd2cdce548eb.zip
Merge trunk back into 0.2 for 0.2.2.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1227 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc22
1 files changed, 3 insertions, 19 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index b5a19d385c..7d450a8f7d 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -187,21 +187,10 @@ bool detect_curse(bool suppress_msg)
return (success);
} // end detect_curse()
-int cast_smiting(int power)
+int cast_smiting(int power, dist &beam)
{
bool success = false;
- struct dist beam;
- struct monsters *monster = 0; // NULL {dlb}
-
- mpr("Smite whom?", MSGCH_PROMPT);
-
- direction( beam, DIR_TARGET, TARG_ENEMY );
-
- if (!beam.isValid)
- {
- canned_msg(MSG_OK);
- return (-1);
- }
+ monsters *monster = 0; // NULL {dlb}
if (mgrd[beam.tx][beam.ty] == NON_MONSTER
|| beam.isMe)
@@ -276,11 +265,9 @@ int airstrike(int power, dist &beam)
return (success);
} // end airstrike()
-int cast_bone_shards(int power)
+int cast_bone_shards(int power, bolt &beam)
{
bool success = false;
- struct bolt beam;
- struct dist spelld;
if (you.equip[EQ_WEAPON] == -1
|| you.inv[you.equip[EQ_WEAPON]].base_type != OBJ_CORPSES)
@@ -291,9 +278,6 @@ int cast_bone_shards(int power)
mpr("The corpse collapses into a mass of pulpy flesh.");
else
{
- if (spell_direction(spelld, beam) == -1)
- return (-1);
-
// practical max of 100 * 15 + 3000 = 4500
// actual max of 200 * 15 + 3000 = 6000
power *= 15;