From cc0f9b2965e5298577253965c8819636985ac2db Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 4 Dec 2008 06:38:17 +0000 Subject: Savefile compatibility breakage from keeping track of which spells have been seen. Implemented fixed-level randart spell books, which is all randart spellbooks as of now. All my attempts at sorting the spell list so that spells with the same schools group together have utterly failed. Got rid of the hackish "non-monster origin is stored in item.orig_monnum as (-origin - 2)" logic, replaced with the slightly less hackish "-origin". Added the two enumerations IT_SRC_START and IT_SRC_SHOP to do it. Also, origin_is_god_gift() and origin_is_acquirement() can retrieve the god/source of the item so that you don't have to do the negation and typecasting yourself. Added some new spell flags: * SPFLAG_BATTLE for non-conjuration spells which are still combat/battle related (branding spells and single school attack spells like "Pain"), * SPFLAG_CARD for spells which are card-type effects which don't show up in ordinary spellbooks (Tomb of Doroklohe and (I assume) Disintigrate) * SPFLAG_TESTING for spells which are only used for testing (Debugging Ray) * SPFLAG_DEVEL for spells that are still under development (Crush, Disrupt, and Detect Magic). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7742 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/newgame.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/newgame.cc') diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 8f62376770..4126748058 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -859,7 +859,7 @@ static void _mark_starting_books() { for (int i = 0; i < ENDOFPACK; i++) if (is_valid_item(you.inv[i]) && you.inv[i].base_type == OBJ_BOOKS) - mark_had_book(you.inv[i].sub_type); + mark_had_book(you.inv[i]); } static void _racialise_starting_equipment() -- cgit v1.2.3-54-g00ecf