summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-01-11 21:37:15 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-01-11 21:41:15 +0100
commita6dc4a5857b621261f60342ccfa0d64690f35f2d (patch)
tree424683ba3c1f0f57510ae598278786ebcb5bd441 /crawl-ref/source/dat
parent175d5142b65845e3bac708807f6e2993471bdc18 (diff)
downloadcrawl-ref-a6dc4a5857b621261f60342ccfa0d64690f35f2d.tar.gz
crawl-ref-a6dc4a5857b621261f60342ccfa0d64690f35f2d.zip
In trog_book, burn all books at the book location.
Previously, it was possible to prevent the book from being burned by throwing an item on top. The timing of incineration has been a little unreliable in in my tests, but I believe (hope) this is not related to the change. Burning all books except just one so players can't throw away a junk book to get at a new one.
Diffstat (limited to 'crawl-ref/source/dat')
-rw-r--r--crawl-ref/source/dat/altar.des5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/dat/altar.des b/crawl-ref/source/dat/altar.des
index 513838d30d..b9205e08c9 100644
--- a/crawl-ref/source/dat/altar.des
+++ b/crawl-ref/source/dat/altar.des
@@ -1036,16 +1036,15 @@ function convert_book (data, triggerable, triggerer, marker, ev)
return
end
- local book = dgn.items_at(_x, _y)[1]
- if book ~= nil then
+ for book in iter.stash_iterator(_x, _y) do
if string.find(items.name(book), 'book') then
items.destroy(book)
dgn.place_cloud(_x, _y, "flame", 15)
crawl.god_speaks("Trog", "The book bursts into flames! "
.. "Trog roars with delight!")
- triggerable:remove(marker)
end
end
+ triggerable:remove(marker)
end
end