From 0f4b659dddc446658c1cb6387dfdd03bcb758db5 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 7 Dec 2008 07:53:33 +0000 Subject: Breaks savefile compatibility. Re-arranged book_type so that books you might find on the floor come first, then books only given out by certain gods, and so on. Added book types BOOK_RANDART_LEVEL, BOOK_RANDART_THEME and BOOK_CARD_EFFECT. Can now get randart books both from acquirement and shops/floor. Acquirement books have a chance of being a manual with a spell discipline skill. Randart books have their own appearances now, and fixed level books their own naming scheme. Needs more entries. Randart books aren't hilited in the menu like other randarts are; don't know why. Added some assertions to choose_random_weighted(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7761 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index a1004bf4be..98eb7be697 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1078,8 +1078,8 @@ static void tag_construct_you_items(writer &th) for (j = 0; j < 50; ++j) marshallByte(th,you.unique_items[j]); - marshallByte(th, NUM_BOOKS); - for (j = 0; j < NUM_BOOKS; ++j) + marshallByte(th, NUM_FIXED_BOOKS); + for (j = 0; j < NUM_FIXED_BOOKS; ++j) marshallByte(th,you.had_book[j]); marshallShort(th, NUM_SPELLS); -- cgit v1.2.3-54-g00ecf