summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-03 22:04:54 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-03 22:04:54 +0000
commit3ede9fff7fa316a1d441a840533613226b720e8a (patch)
tree26b9d64c81d50d4a162b45bd9a5455b5d67343ab /crawl-ref/source/spl-cast.h
parentf40a57bf2ed015c5e1489c966987878f3d62d450 (diff)
downloadcrawl-ref-3ede9fff7fa316a1d441a840533613226b720e8a.tar.gz
crawl-ref-3ede9fff7fa316a1d441a840533613226b720e8a.zip
Some spellcasting modifications, as discussed on c-r-d.
* Spells are marked grey if you lack the necessary magic or if there are no visible monsters within range. * z bails out if there are no monsters in range * Z is the same as the old z behaviour * Wands now need to be e(V)oked. Feedback welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9727 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.h')
-rw-r--r--crawl-ref/source/spl-cast.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-cast.h b/crawl-ref/source/spl-cast.h
index 681c3aa958..5167719fe0 100644
--- a/crawl-ref/source/spl-cast.h
+++ b/crawl-ref/source/spl-cast.h
@@ -46,7 +46,8 @@ enum spret_type
SPRET_SUCCESS
};
-int list_spells(bool toggle_with_I = true, bool viewing = false);
+int list_spells(bool toggle_with_I = true, bool viewing = false,
+ int minRange = -1);
int spell_fail( spell_type spell );
int calc_spell_power(spell_type spell, bool apply_intel,
bool fail_rate_chk = false);
@@ -63,7 +64,7 @@ void exercise_spell( spell_type spell_ex, bool spc, bool divide );
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
-bool cast_a_spell( void );
+bool cast_a_spell( bool check_range );
bool maybe_identify_staff( item_def &item, spell_type spell = SPELL_NO_SPELL );