Move the routine to calculate the racial armor bonus into its own

function. Also, use it to properly apply racial bonuses to shields, so that racial shields mean something. (Note that the bonus for shields is 2/3 the bonus for armor, as the upper limit for shields is 20, as opposed to armor's 30.)

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

Created by  dolorous  on March 11, 2008
WYNGGL55XFKKEY6NQBH7EKVIZZATLZ2MVPAMNM4Q3SVISGT3UEDAC
Change contents