From af45612708d4fddee3ec3a5d31053624d7658c1a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 22 Feb 2009 15:11:32 +0000 Subject: * Fix Sif Muna occasionally gifting manuals. * Change innate gourmand eating behaviour to MUT_GOURMAND (innate only). * Only bother prompting to eat chunks if the player has the gourmand mutation or the carnivorous mutation at level 3, or is wearing an amulet of the gourmand or an unidentified amulet. * Remove gourmand behaviour from Ogres, i.e. only Trolls get the mutation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9149 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index b14caada0a..3c4e77a854 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1431,7 +1431,7 @@ static void _do_book_acquirement(item_def &book, int agent) { choice = random_choose_weighted( 30, BOOK_RANDART_THEME, - agent == GOD_SIF_MUNA ? 10 : 40, book.sub_type, + agent == GOD_SIF_MUNA ? 10 : 40, NUM_BOOKS, // normal books level == -1 ? 0 : 1, BOOK_RANDART_LEVEL, 0); } @@ -1446,6 +1446,7 @@ static void _do_book_acquirement(item_def &book, int agent) switch (choice) { default: + case NUM_BOOKS: { int total_weights = 0; -- cgit v1.2.3-54-g00ecf