summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-10 09:57:54 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-10 09:57:54 +0000
commit53d7537ce0c5308f487c389c70c82853c3717e17 (patch)
tree3e2be6d565abb773862eeae87c8ecc1fce210a43 /crawl-ref/source/beam.h
parente1a740ae84d6ad5a4bc3492489f2c35b85bec15e (diff)
downloadcrawl-ref-53d7537ce0c5308f487c389c70c82853c3717e17.tar.gz
crawl-ref-53d7537ce0c5308f487c389c70c82853c3717e17.zip
Fixed melee to-hit calculations to better handle the new super-evasion. Beams
still need to be tweaked. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1007 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.h')
-rw-r--r--crawl-ref/source/beam.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h
index c529b727fe..8aa1e53255 100644
--- a/crawl-ref/source/beam.h
+++ b/crawl-ref/source/beam.h
@@ -19,6 +19,8 @@
dice_def calc_dice( int num_dice, int max_damage );
+// Test if the to-hit (attack) beats evasion (defence).
+bool test_hit(int attack, int defence);
/* ***********************************************************************
* called from: bang - it_use2 - monstuff - mstuff2