diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-08 23:15:03 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-08 23:16:37 +1000 |
commit | de30595826d2800afff619d6a1dc01c0d3610950 (patch) | |
tree | d13c4ae7a49f217a6c104a02edcce1c06ee50e54 /crawl-ref/source/mapdef.h | |
parent | 9840acaf22b2fc6690b3ce54c1a0f4a778d4af2f (diff) | |
download | crawl-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.h | 5 |
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() { } }; |