A randart book's rarity is now defined as the average of its three rarest spells.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9101 c06c8d41-db1a-0410-9941-cceddc491573
CD4WP6WFJ4YLIBSQVDPE7QJNTOGJUV67IPZBZPCODRYHWZRWVIZAC
// Consider spellbook as rare as its rarest spell.
// NOTE: This probably undervalues a book if it contains
// lots of rare spells.
// Consider spellbook as rare as the average of its
// three rarest spells.
int rarities[SPELLBOOK_SIZE];
int count_valid = 0;