From ccb9171b5884a80787b98b1845f5a8e8e6275165 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 7 Jul 2008 14:23:40 +0000 Subject: Fix potions of decay created by mummy curse sometimes being inscribed. Change inscription prompt to work as intended by David, after all. :) Make manuals use a reading counter (plus2) that is initialized with 3 + random2(15). Once it reaches 0, the manual crumbles to dust. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6443 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index db5f40a017..123b2131c3 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1493,9 +1493,8 @@ bool acquirement(object_class_type class_wanted, int agent, { // How sad (and stupid). if (!silenced(you.pos()) && !quiet) - { mprf(MSGCH_SOUND, grid_item_destruction_message(grd(you.pos()))); - } + item_was_destroyed(mitm[igrd(you.pos())], NON_MONSTER); *item_index = NON_ITEM; } @@ -1505,6 +1504,8 @@ bool acquirement(object_class_type class_wanted, int agent, for (int item_tries = 0; item_tries < 40; item_tries++) { int type_wanted = _find_acquirement_subtype(class_wanted, quant); + if (class_wanted == OBJ_BOOKS) + type_wanted = BOOK_MANUAL; // Clobber class_wanted for vampires. if (you.species == SP_VAMPIRE && class_wanted == OBJ_FOOD) -- cgit v1.2.3-54-g00ecf