summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/melee_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/melee_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/melee_attack.h')
-rw-r--r--crawl-ref/source/melee_attack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/melee_attack.h b/crawl-ref/source/melee_attack.h
index a1e1e75753..e3f232b483 100644
--- a/crawl-ref/source/melee_attack.h
+++ b/crawl-ref/source/melee_attack.h
@@ -71,6 +71,7 @@ private:
bool using_weapon();
int weapon_damage();
int calc_base_unarmed_damage();
+ int calc_mon_to_hit_base();
int apply_damage_modifiers(int damage, int damage_max, bool &half_ac);
int calc_damage();