regexp, because the spaces become part of the regexp.
Also, added exceptions for non-vampires and potions of blood, mummies and any potions or food, and a bunch of race related armour exceptions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5327 c06c8d41-db1a-0410-9941-cceddc491573
GPEQXXKYWFSEHRNHZENL23KWT2WWVJJG5DVFUP3LLIRGCWR7X4UAC
ae = potions? of (confusion | degeneration | poison | strong poison)
ae = potions? of (slowing | paralysis | decay | water)
ae = scrolls? of (paper | torment | immolation | curse weapon)
ae = scrolls? of (curse armour | random uselessness | noise)
ae = potions? of (confusion|degeneration|poison|strong poison)
ae = potions? of (slowing|paralysis|decay|water)
ae = scrolls? of (paper|torment|immolation|curse weapon)
ae = scrolls? of (curse armour|random uselessness|noise|fog)
ae = amulet of (inaccuracy | gourmand | controlled flight | warding)
ae = amulet of (resist mutation | resist slow | clarity | rage)
ae = ring of (see invisible | levitation | poison resistance | hunger)
ae = ring of (fire | ice | sustenance | invisibility)
ae = ring of (magical power | regeneration)
ae = amulet of (inaccuracy|gourmand|controlled flight|warding)
ae = amulet of (resist mutation|resist slow|clarity|rage)
ae = ring of (see invisible|levitation|poison resistance|hunger)
ae = ring of (fire|ice|sustenance|invisibility)
ae = ring of (magical power|regeneration)
: if you.race() == "Centaur" then
ae = boots
: else
ae = centaur barding
: end
: if you.race() == "Naga" then
ae = boots
: else
ae = naga barding
: end
: if you.race() == "Ogre" or you.race() == "Ogre-Mage"
: or you.race() == "Troll" or you.race() == "Spriggan"
: or you.race() == "Draconian"
: then
ae = boots
ae = gloves
ae = helmet
ae = armour .* (mail|leather)
: end
: if you.race() == "Spriggan" then
ae = shield
: end
: if you.race() == "Ghoul" then
ae = gloves
: end
: if you.race() == "Kenku" then
ae = boots
ae = helmet
: end