diff options
author | gammafunk <gammafunk@gmail.com> | 2013-09-26 19:41:53 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-10-01 21:27:27 -0400 |
commit | 5215da038daff4c36708ba59b59847e22a8ea665 (patch) | |
tree | cb51f30e911254dcda4de5a75b9ef66d6aeaacf0 /crawl-ref/source/misc.h | |
parent | 956008587f695d266932b699b947c2d37899559e (diff) | |
download | crawl-ref-5215da038daff4c36708ba59b59847e22a8ea665.tar.gz crawl-ref-5215da038daff4c36708ba59b59847e22a8ea665.zip |
Allow jump attack to target an empty square
The player can target an in-range empty square for jump attack. If it turns out
that the square is empty, the jump-attack fails and the player rebounds to their
original position, losing the turn.
Diffstat (limited to 'crawl-ref/source/misc.h')
-rw-r--r-- | crawl-ref/source/misc.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h index 46de012aaa..cdab1298d5 100644 --- a/crawl-ref/source/misc.h +++ b/crawl-ref/source/misc.h @@ -114,13 +114,15 @@ bool interrupt_cmd_repeat(activity_interrupt_type ai, const activity_interrupt_data &at); bool bad_attack(const monster *mon, string& adj, string& suffix, - bool jump_check_landing = false, - coord_def attack_pos = coord_def(0, 0)); + coord_def attack_pos = coord_def(0, 0), + bool check_landing_only = false); + bool stop_attack_prompt(const monster* mon, bool beam_attack, coord_def beam_target, bool autohit_first = false, bool *prompted = nullptr, - bool jump_check_landing = false, - coord_def attack_pos = coord_def(0, 0)); + coord_def attack_pos = coord_def(0, 0), + bool check_landing_only = false); + bool stop_attack_prompt(targetter &hitfunc, string verb, bool (*affects)(const actor *victim) = 0); |