git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3341 c06c8d41-db1a-0410-9941-cceddc491573
6BYKOHEMLXXUKTH56UHJ6YQ6VWQCBWSSTCXFDT33RNID4G4ZUIKQC
// the default for this is 50%; in other words, don't
// hit a foe unless you hit 2 or fewer friends.
if (beam.foe_power >= (beam.foe_ratio * beam.fr_power) / 100)
return (true);
return (false);
return (beam.foe_power >=
div_round_up(beam.foe_ratio * (beam.foe_power + beam.fr_power),
100));