summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-08 23:15:03 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-08 23:16:37 +1000
commitde30595826d2800afff619d6a1dc01c0d3610950 (patch)
treed13c4ae7a49f217a6c104a02edcce1c06ee50e54 /crawl-ref/source/mapdef.h
parent9840acaf22b2fc6690b3ce54c1a0f4a778d4af2f (diff)
downloadcrawl-ref-de30595826d2800afff619d6a1dc01c0d3610950.tar.gz
crawl-ref-de30595826d2800afff619d6a1dc01c0d3610950.zip
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.
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h5
1 files changed, 4 insertions, 1 deletions
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()
{
}
};