diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-06-22 11:29:12 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-06-22 23:59:30 +0200 |
commit | 19133e17ae0e3bc6d76023cf3e5f9d7d5b502922 (patch) | |
tree | 36bb60d4bb4b3306de2511e2a2e9669b750b1a62 /crawl-ref/source/target.h | |
parent | b9adaaa7c8a23481f7a8f846aa510d3a9b5956b9 (diff) | |
download | crawl-ref-19133e17ae0e3bc6d76023cf3e5f9d7d5b502922.tar.gz crawl-ref-19133e17ae0e3bc6d76023cf3e5f9d7d5b502922.zip |
Rod of lightning.
[Unfinished: no actual damage yet.]
A single zap uses only two mana, evoking it in subsequent turns will take 5
(or less if the rod is spent), spreading the damage upon the whole arc
between, with a boost if you're not aiming at the same place. Releasing
the trigger (ie, doing any action other than evoking the rod) will stop
the discharge.
Diffstat (limited to 'crawl-ref/source/target.h')
-rw-r--r-- | crawl-ref/source/target.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/target.h b/crawl-ref/source/target.h index b92e543e22..fd76a84cfb 100644 --- a/crawl-ref/source/target.h +++ b/crawl-ref/source/target.h @@ -110,4 +110,19 @@ private: los_type los; int range2, range_max2; }; + +class targetter_thunderbolt : public targetter +{ +public: + targetter_thunderbolt(const actor *act, int r, coord_def _prev); + + bool valid_aim(coord_def a); + bool set_aim(coord_def a); + aff_type is_affected(coord_def loc); + std::map<coord_def, aff_type> zapped; +private: + coord_def prev; + int range2; +}; + #endif |