Add minor cleanups of the new helmet handling code: use is_hard_helmet()

instead of hardcoding references to caps and wizard hats when possible.

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

Created by  dolorous  on December 12, 2007
6BCD3B7SZ4T2VPOGO562767LMFCVMKBAUMF4PQ7T5XNKSXVY7F6QC
Change contents