From a6dc4a5857b621261f60342ccfa0d64690f35f2d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 11 Jan 2010 21:37:15 +0100 Subject: 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. --- crawl-ref/source/dat/altar.des | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/dat/altar.des') 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 -- cgit v1.2.3-54-g00ecf