summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.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/monster.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/monster.h')
-rw-r--r--crawl-ref/source/monster.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h
index 1d2a77226e..78ec8cbdfa 100644
--- a/crawl-ref/source/monster.h
+++ b/crawl-ref/source/monster.h
@@ -227,6 +227,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 has_claws(bool allow_tran = true) const;
int wearing(equipment_type slot, int type, bool calc_unid = true) const;