diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-18 20:03:51 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-18 20:10:19 -0800 |
commit | 708e779998c00f04e30bdf2c00d1ff65b3fd1e00 (patch) | |
tree | daf9a7d3b09f43cd17d04c4d12410ff1ed299f5c /crawl-ref/source/spl-util.h | |
parent | 070c36855d0109c01e85301ac28d95873a291632 (diff) | |
download | crawl-ref-708e779998c00f04e30bdf2c00d1ff65b3fd1e00.tar.gz crawl-ref-708e779998c00f04e30bdf2c00d1ff65b3fd1e00.zip |
zap_type_to_spell(): get spell which causes zap
Go backwards from a zap_type to the spell which caused it (or would have
caused it if it were a spell). Currently only handles zap types which
wands use.
Diffstat (limited to 'crawl-ref/source/spl-util.h')
-rw-r--r-- | crawl-ref/source/spl-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h index cd3d009b31..8ff8e4ceeb 100644 --- a/crawl-ref/source/spl-util.h +++ b/crawl-ref/source/spl-util.h @@ -117,4 +117,6 @@ bool spell_direction( dist &spelld, bolt &pbolt, int spell_type2skill (unsigned int which_spelltype); +spell_type zap_type_to_spell(zap_type zap); + #endif |