summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-02-25 08:04:11 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-02-25 17:17:10 +0100
commit847b055529d2e021177d64784b4c7569fdcd6627 (patch)
tree290156d9c2e5ad3cbd91d2e8a3db814d6e0fa353 /crawl-ref/source/artefact.h
parent23a24b050d9a0569b805b4acd16229ef3abb291c (diff)
downloadcrawl-ref-847b055529d2e021177d64784b4c7569fdcd6627.tar.gz
crawl-ref-847b055529d2e021177d64784b4c7569fdcd6627.zip
Identify unrands held by monsters when they die or drop them.
This is to avoid redundancy is messages. Individual unrands can opt-out by setting "unided".
Diffstat (limited to 'crawl-ref/source/artefact.h')
-rw-r--r--crawl-ref/source/artefact.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/artefact.h b/crawl-ref/source/artefact.h
index a29c60f1c4..fd0430905f 100644
--- a/crawl-ref/source/artefact.h
+++ b/crawl-ref/source/artefact.h
@@ -31,6 +31,7 @@ enum unrand_flag_type
UNRAND_FLAG_CORPSE_VIOLATING = 0x40,
UNRAND_FLAG_NOGEN = 0x80,
UNRAND_FLAG_RANDAPP =0x100,
+ UNRAND_FLAG_UNIDED =0x200,
// Please make sure it fits in unrandart_entry.flags (currently 16 bits).
};
@@ -84,6 +85,7 @@ bool is_random_artefact(const item_def &item);
bool is_unrandom_artefact(const item_def &item);
bool is_special_unrandom_artefact(const item_def &item);
bool is_randapp_artefact(const item_def &item);
+void autoid_unrand(item_def &item);
void artefact_fixup_props(item_def &item);