summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 15:11:32 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 15:11:32 +0000
commitaf45612708d4fddee3ec3a5d31053624d7658c1a (patch)
tree2b4b27bd20d7e2ce382cc1175e8d76666cfe1906 /crawl-ref/source/effects.cc
parentf00872b7a53d4b7d0aa8eb8b769f88b9abe5f830 (diff)
downloadcrawl-ref-af45612708d4fddee3ec3a5d31053624d7658c1a.tar.gz
crawl-ref-af45612708d4fddee3ec3a5d31053624d7658c1a.zip
* 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
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc3
1 files changed, 2 insertions, 1 deletions
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;