summaryrefslogtreecommitdiffstats
path: root/crawl-ref/settings/autopickup_exceptions.txt
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-29 07:33:57 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-29 07:33:57 +0000
commit5f14cf8ebbe2bcd0de008010281061edfd2c503a (patch)
treefe437be166b7cb5fc68283e4395bcdb3900a070c /crawl-ref/settings/autopickup_exceptions.txt
parentd11f10d80b13a070305691942f61f52954f2eedc (diff)
downloadcrawl-ref-5f14cf8ebbe2bcd0de008010281061edfd2c503a.tar.gz
crawl-ref-5f14cf8ebbe2bcd0de008010281061edfd2c503a.zip
Spaces can't be put around the '|' which divide alternate strings in a
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
Diffstat (limited to 'crawl-ref/settings/autopickup_exceptions.txt')
-rw-r--r--crawl-ref/settings/autopickup_exceptions.txt63
1 files changed, 54 insertions, 9 deletions
diff --git a/crawl-ref/settings/autopickup_exceptions.txt b/crawl-ref/settings/autopickup_exceptions.txt
index 81902bac59..f8801db010 100644
--- a/crawl-ref/settings/autopickup_exceptions.txt
+++ b/crawl-ref/settings/autopickup_exceptions.txt
@@ -17,24 +17,33 @@ end
end >
# universally bad options and scrolls
-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)
# Excluding amulets as you only need one of each. Also for some rings.
# There is some (intended) overlap with pickup.lua, which also exludes
# the ring of hunger, for example.
-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() == "Mummy" or you.race() == "Ghoul" then
ae = ring of life protection
: end
+: if you.race() == "Mummy" then
+ae = potion
+ae = food
+: end
+
+: if you.race() ~= "Vampire" then
+ae = potion.*blood
+: end
+
: if you.race() == "Kenku" then
ae = potions? of levitation
: end
@@ -44,3 +53,39 @@ ae = wizardry
ae = staff
: end
+### armour exclusions ###
+
+: 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