summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attack.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-17 21:14:08 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-27 17:02:33 -0600
commitaf65ebd5ff1d82a27b1e881ec2cd63875bbbeb47 (patch)
treeaacf14d183b2f641c20b83162529c34b7b357abc /crawl-ref/source/attack.h
parenta0b9eea05605c1024bf6387992650f60ee2fb501 (diff)
downloadcrawl-ref-af65ebd5ff1d82a27b1e881ec2cd63875bbbeb47.tar.gz
crawl-ref-af65ebd5ff1d82a27b1e881ec2cd63875bbbeb47.zip
Give M_ARCHER monsters their acc/dam bonuses back.
Sort of similar to how M_FIGHTER gets a melee accuracy bonus, I think this has a place here. The numbers are a bit complicated; the old code gave an ammoHitBonus of random2avg(HD * 4 / 3, 2) to the beam hit which is later added to the damage bonus. Since the randomisation here works differently the 4/3 is straight-up added to the to_hit and randomised when added to the damage.
Diffstat (limited to 'crawl-ref/source/attack.h')
-rw-r--r--crawl-ref/source/attack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/attack.h b/crawl-ref/source/attack.h
index ec9cc7ecb7..7ddef0143c 100644
--- a/crawl-ref/source/attack.h
+++ b/crawl-ref/source/attack.h
@@ -133,6 +133,7 @@ protected:
virtual int calc_base_unarmed_damage();
int calc_stat_to_hit_base();
int calc_stat_to_dam_base();
+ virtual int calc_mon_to_hit_base() = 0;
virtual int apply_damage_modifiers(int damage, int damage_max,
bool &half_ac) = 0;
virtual int calc_damage();