still need to be tweaked.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1007 c06c8d41-db1a-0410-9941-cceddc491573
IIDDQROLZFP47VSCQUUCI4A5VGV762RJBTT3GM2K4AFRE5KZ4BFAC
QDTVLBRGHDTRUVT7I3O72K6TMOYAUSAJBZUHGOEFU2RKJNUPWZSQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
beem.hit = 150;
beem.hit = 50;
if (attacker == defender || random2(to_hit) >= defender_evasion)
if (attacker == defender || test_hit(to_hit, defender_evasion))
// Test if the to-hit (attack) beats evasion (defence).bool test_hit(int attack, int defence);
// Test if the to-hit (attack) beats evasion (defence).
bool test_hit(int attack, int defence);