summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-29 00:11:13 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-29 00:11:13 +0200
commitbea2e0e990a6d2cab4476a6f03a22e4dbc1495e5 (patch)
tree2d69e8920428429c716c1fed4e9951c99491beb9 /crawl-ref/source/artefact.h
parentc038912a24ff8fd1f123a031e5e6f934d7f655f6 (diff)
downloadcrawl-ref-bea2e0e990a6d2cab4476a6f03a22e4dbc1495e5.tar.gz
crawl-ref-bea2e0e990a6d2cab4476a6f03a22e4dbc1495e5.zip
Give the robe of misfortune, robe of folly and Lear's chain mail random appearance.
Diffstat (limited to 'crawl-ref/source/artefact.h')
-rw-r--r--crawl-ref/source/artefact.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.h b/crawl-ref/source/artefact.h
index b26613068a..1edd0eec76 100644
--- a/crawl-ref/source/artefact.h
+++ b/crawl-ref/source/artefact.h
@@ -34,6 +34,7 @@ enum unrand_flag_type
UNRAND_FLAG_CHAOTIC = 0x20,
UNRAND_FLAG_CORPSE_VIOLATING = 0x40,
UNRAND_FLAG_NOGEN = 0x80,
+ UNRAND_FLAG_RANDAPP =0x100,
// Warning! Any further extension and you'll need to change the field from
// a char. What a loss of 82*sizeof() bytes...
};
@@ -59,7 +60,7 @@ struct unrandart_entry
uint8_t colour; // colour of ura
short value;
- uint8_t flags;
+ uint16_t flags;
short prpty[ART_PROPERTIES];
@@ -89,6 +90,7 @@ bool is_artefact(const item_def &item);
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 artefact_fixup_props(item_def &item);
@@ -135,6 +137,7 @@ int artefact_known_wpn_property(const item_def &item,
artefact_prop_type prop);
void artefact_wpn_learn_prop(item_def &item, artefact_prop_type prop);
+void reveal_randapp_artefact(item_def &item);
bool make_item_randart(item_def &item, bool force_mundane = false);
bool make_item_unrandart(item_def &item, int unrand_index);