summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/lua
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-25 12:40:22 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-25 12:40:22 +0000
commit440734626b1e63e9e97a8f1b3d4b08d72a3b7b18 (patch)
tree8528753c935ba90b1e183bb8584a289c880e748c /crawl-ref/source/dat/lua
parentfd7dc681f01391fac151867b2d9152d7795c6e76 (diff)
downloadcrawl-ref-440734626b1e63e9e97a8f1b3d4b08d72a3b7b18.tar.gz
crawl-ref-440734626b1e63e9e97a8f1b3d4b08d72a3b7b18.zip
Allow Troggies to autopickup manuals, and change the message when
gaining the "Book Burn" ability (only when you first join Trog) to explicitly refer to spellbooks. I like the alliteration in the ability name, so kept that as is. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5232 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dat/lua')
-rw-r--r--crawl-ref/source/dat/lua/pickup.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dat/lua/pickup.lua b/crawl-ref/source/dat/lua/pickup.lua
index feae944ac4..c6dea23373 100644
--- a/crawl-ref/source/dat/lua/pickup.lua
+++ b/crawl-ref/source/dat/lua/pickup.lua
@@ -100,8 +100,9 @@ function ch_autopickup(it)
return food.can_eat(it, false)
end
- if item.class(it) == "Books" and you.god() == "Trog"
- then return false
+ if item.class(it) == "Books" and item.subtype(it) == "spellbook"
+ and you.god() == "Trog" then
+ return false
end
if item.class(it) == "Jewellery" then