From de30595826d2800afff619d6a1dc01c0d3610950 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Tue, 8 Dec 2009 23:15:03 +1000 Subject: Allow vaults to create specifically themed randart books. It is basically a simple wrapper onto spl-book.cc's make_book_theme_randart. More documentation can be found in syntax.txt. --- crawl-ref/source/mapdef.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mapdef.h') diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index f85ae22103..7b3f2518c1 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -474,10 +474,13 @@ struct item_spec int acquirement_source; level_id place; + // Specifically for storing information about randart spell books. + CrawlHashTable props; + item_spec() : genweight(10), base_type(OBJ_RANDOM), sub_type(OBJ_RANDOM), plus(-1), plus2(-1), ego(0), allow_uniques(1), level(-1), race(MAKE_ITEM_RANDOM_RACE), qty(0), acquirement_source(0), - place() + place(), props() { } }; -- cgit v1.2.3-54-g00ecf