diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-25 12:40:22 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-25 12:40:22 +0000 |
commit | 440734626b1e63e9e97a8f1b3d4b08d72a3b7b18 (patch) | |
tree | 8528753c935ba90b1e183bb8584a289c880e748c /crawl-ref/source/clua.cc | |
parent | fd7dc681f01391fac151867b2d9152d7795c6e76 (diff) | |
download | crawl-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/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index b957150e22..1b80f2f498 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -1227,6 +1227,13 @@ static int l_item_subtype(lua_State *ls) else if (item->sub_type == POT_CURE_MUTATION) s = "cure mutation"; } + else if (item->base_type == OBJ_BOOKS) + { + if (item->sub_type == BOOK_MANUAL) + s = "manual"; + else + s = "spellbook"; + } if (s) lua_pushstring(ls, s); |