summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-16 21:08:32 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-27 17:02:33 -0600
commitfde016144d74dc363d43e65ef647e980391aeadc (patch)
tree49d3673f03e94bc9c7cd3d9e52233b11288cb366 /crawl-ref/source/player.h
parentec5b00754ba4caf6cd637a454de3f9989dd7ea0f (diff)
downloadcrawl-ref-fde016144d74dc363d43e65ef647e980391aeadc.tar.gz
crawl-ref-fde016144d74dc363d43e65ef647e980391aeadc.zip
Ranged weapon delay.
Moves the delay calculations into player and monster respectively so that it can properly be done at the start of the ranged attack; it doesn't make sense to have them in attack or ranged_attack.
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r--crawl-ref/source/player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h
index 3971308951..b0036de75f 100644
--- a/crawl-ref/source/player.h
+++ b/crawl-ref/source/player.h
@@ -508,6 +508,8 @@ public:
int total_weight() const;
brand_type damage_brand(int which_attack = -1);
int damage_type(int which_attack = -1);
+ random_var attack_delay(item_def *weapon, item_def *projectile = NULL,
+ bool random = true, bool scaled = true) const;
int constriction_damage() const;
int has_claws(bool allow_tran = true) const;
@@ -745,6 +747,8 @@ public:
int usable_tentacles() const;
bool has_usable_tentacle() const;
+ bool form_uses_xl() const;
+
protected:
void _removed_beholder(bool quiet = false);
bool _possible_beholder(const monster* mon) const;