diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-15 19:42:55 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-15 19:42:55 +0000 |
commit | 5a6e7e3f473866c3b84168d5ba80a0186068e294 (patch) | |
tree | ee126a9423a07ff5fe5d243e8d89a7547fbb6192 /crawl-ref | |
parent | e4209979f264bb890bd22269e752cbde2ed0d58c (diff) | |
download | crawl-ref-5a6e7e3f473866c3b84168d5ba80a0186068e294.tar.gz crawl-ref-5a6e7e3f473866c3b84168d5ba80a0186068e294.zip |
Remove debugging statements (argh!) and tweak book acquirement chances.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9094 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/effects.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 3c5cbf9b57..09a1892661 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1612,9 +1612,9 @@ static void _do_book_acquirement(item_def &book, int agent) { choice = random_choose_weighted( 60, BOOK_RANDART_THEME, - 24, book.sub_type, + agent == GOD_SIF_MUNA ? 24 : 34, book.sub_type, level == -1 ? 0 : - agent == GOD_SIF_MUNA ? 6 : 1, BOOK_RANDART_LEVEL, + agent == GOD_SIF_MUNA ? 3 : 1, BOOK_RANDART_LEVEL, 0); } @@ -1629,25 +1629,20 @@ static void _do_book_acquirement(item_def &book, int agent) switch (choice) { case BOOK_RANDART_THEME: - mpr("Make book themed randart."); book.sub_type = choice; make_book_theme_randart(book, 0, 0, 7, 22, SPELL_NO_SPELL, owner); break; case BOOK_RANDART_LEVEL: { - mpr("Make book fixed level randart."); book.sub_type = choice; int num_spells = 7 - (level + 1) / 2 + random_range(1, 2); make_book_level_randart(book, level, num_spells, owner); break; } - // Spell discipline manual case BOOK_MANUAL: { - mpr("Make book manual."); - // The Tome of Destruction is rare enough we won't change this. if (book.sub_type == BOOK_DESTRUCTION) return; @@ -1696,8 +1691,6 @@ static void _do_book_acquirement(item_def &book, int agent) default: { - mpr("Make book normal spellbook."); - // Pick a random spellbook according to unknown spells contained. int weights[MAX_NORMAL_BOOK+1]; for (int bk = 0; bk <= MAX_NORMAL_BOOK; bk++) |