summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.h
diff options
context:
space:
mode:
authorRobert Burnham <burnhamrobertp@gmail.com>2011-04-11 16:29:12 -0500
committerRobert Burnham <burnhamrobertp@gmail.com>2011-04-11 16:29:12 -0500
commitbf3e8ffeda354fe4ecdb0860ef0ee7ee3abb7734 (patch)
treebc8f85481753d603f10819f969b072a7d73a4eb5 /crawl-ref/source/fight.h
parent54c3ca99470fc568763f2538405aa49ed545ea7e (diff)
downloadcrawl-ref-bf3e8ffeda354fe4ecdb0860ef0ee7ee3abb7734.tar.gz
crawl-ref-bf3e8ffeda354fe4ecdb0860ef0ee7ee3abb7734.zip
Remove wrapper function calc_your_to_hit
Was only used in player.cc to display to_hit-related information. Wrapper function declared an instance of melee_attack and called the actual calc_to_hit methods that we use for combat. Why can't we do this in the player method itself?
Diffstat (limited to 'crawl-ref/source/fight.h')
-rw-r--r--crawl-ref/source/fight.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/fight.h b/crawl-ref/source/fight.h
index 1f22f982af..eebf69ca83 100644
--- a/crawl-ref/source/fight.h
+++ b/crawl-ref/source/fight.h
@@ -42,10 +42,6 @@ bool monsters_fight(monster* attacker, monster* attacked,
bool allow_unarmed = true);
bool wielded_weapon_check(item_def *weapon, bool no_message = false);
-// TODO: Fix this; its used in player.cc but no where in melee_attack, which
-// means that we have another to-hit function declared that's actually being
-// used for combat to-hit (this is only used deterministically)
-int calc_your_to_hit(bool random_factor);
int calc_heavy_armour_penalty(bool random_factor);
unchivalric_attack_type is_unchivalric_attack(const actor *attacker,