diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 11:11:32 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 11:11:32 +0000 |
commit | 7fcfce7d250e09f85bc09f9e720dda5cf723e68e (patch) | |
tree | f70f14cb977e44bcded985b8527e7cd01ad50663 /crawl-ref/source/chardump.cc | |
parent | 10a49dc866d7cb5b0d5fe0400ae02f30e8be4d85 (diff) | |
download | crawl-ref-7fcfce7d250e09f85bc09f9e720dda5cf723e68e.tar.gz crawl-ref-7fcfce7d250e09f85bc09f9e720dda5cf723e68e.zip |
* Dump spells contained in randart spellbooks, marking memorised spells
with an asterisk.
* Sif Muna no longer gifts the books specific to Kiku and Vehumet
(Necronomicon, Annihilations, Demonology) though the spells contained
there-in may crop up in randart books.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8011 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r-- | crawl-ref/source/chardump.cc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 6f50aa8146..1e614e9b74 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -653,7 +653,7 @@ static void _sdump_religion(dump_params &par) } } -static bool dump_item_origin(const item_def &item, int value) +static bool _dump_item_origin(const item_def &item, int value) { #define fs(x) (flags & (x)) const int flags = Options.dump_item_origins; @@ -661,10 +661,11 @@ static bool dump_item_origin(const item_def &item, int value) return (true); if (fs(IODS_ARTEFACTS) - && (is_random_artefact(item) || is_fixed_artefact(item)) - && item_ident(item, ISFLAG_KNOW_PROPERTIES)) + && (is_random_artefact(item) || is_fixed_artefact(item)) + && item_ident(item, ISFLAG_KNOW_PROPERTIES)) + { return (true); - + } if (fs(IODS_EGO_ARMOUR) && item.base_type == OBJ_ARMOUR && item_type_known( item )) { @@ -682,16 +683,22 @@ static bool dump_item_origin(const item_def &item, int value) return (true); if (fs(IODS_RUNES) && item.base_type == OBJ_MISCELLANY - && item.sub_type == MISC_RUNE_OF_ZOT) + && item.sub_type == MISC_RUNE_OF_ZOT) + { return (true); + } if (fs(IODS_RODS) && item.base_type == OBJ_STAVES - && item_is_rod(item)) + && item_is_rod(item)) + { return (true); + } if (fs(IODS_STAVES) && item.base_type == OBJ_STAVES - && !item_is_rod(item)) + && !item_is_rod(item)) + { return (true); + } if (fs(IODS_BOOKS) && item.base_type == OBJ_BOOKS) return (true); @@ -790,7 +797,7 @@ static void _sdump_inventory(dump_params &par) } if (origin_describable(you.inv[j]) - && dump_item_origin(you.inv[j], ival)) + && _dump_item_origin(you.inv[j], ival)) { text += "\n" " (" + origin_desc(you.inv[j]) + ")"; } |