From eaebdf783c9f82f01854421b9825988824410684 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 17 Dec 2008 23:14:03 +0000 Subject: Fix 2442018: excessive tomes of destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7860 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/makeitem.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/makeitem.cc') diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index df03e7258d..98475447a5 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -2420,7 +2420,8 @@ static void _generate_book_item(item_def& item, int allow_uniques, if (!one_chance_in(100) && x_chance_in_y(book_rarity(item.sub_type)-1, item_level+1)) { - item.sub_type = BOOK_DESTRUCTION; // continue trying + // If this book is really rare for this depth, continue trying. + continue; } } while (book_rarity(item.sub_type) == 100); -- cgit v1.2.3-54-g00ecf