Overhaul book acquirement.

  1. Do a skill check to decide on manual vs. spellbook (except for Xom and Sif Muna who never gift manuals).
  2. If a spellbook, pick randart or normal books with fixed chances.
  3. Make randart themes dependant on actual skills, not aptitudes.
  4. For normal spellbooks, pick the book randomly with weights favouring books with many unknown spells of schools you're highly skilled in. (Bye-bye, fixed book acquirement order!)

Formulas (as suggested by David) may need tweaking, feedback welcome!

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9093 c06c8d41-db1a-0410-9941-cceddc491573

Created by  j-p-e-g  on February 15, 2009
MT6WFYUIJ2MA3GIQ2MEHHKIQ6QT6IECFGO4BV4SB3GCGQUIWEYNAC
Change contents