summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-03 08:34:46 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-06 17:30:56 +0200
commitf460cbf1c8a27df7d9037304830d4a41b84a1e9e (patch)
tree3bb6613b6b3838584b6d8d1847d6cda3b7436d67 /crawl-ref/source/fight.cc
parent558cf63b8da431fcd7053c79830aa0063c524d46 (diff)
downloadcrawl-ref-f460cbf1c8a27df7d9037304830d4a41b84a1e9e.tar.gz
crawl-ref-f460cbf1c8a27df7d9037304830d4a41b84a1e9e.zip
Comments in fight.cc on dex/str weighting.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 406fd375b0..605a794723 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -5544,6 +5544,7 @@ static inline int player_weapon_dex_weight( void )
return (10 - player_weapon_str_weight());
}
+// weighted average of strength and dex, between (str+dex)/2 and dex
static inline int calc_stat_to_hit_base( void )
{
#ifdef USE_NEW_COMBAT_STATS
@@ -5562,7 +5563,7 @@ static inline int calc_stat_to_hit_base( void )
#endif
}
-
+// weighted average of strength and dex, between str and (str+dex)/2
static inline int calc_stat_to_dam_base( void )
{
#ifdef USE_NEW_COMBAT_STATS