summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-item.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-08-26 23:36:16 -0400
committerNeil Moore <neil@s-z.org>2013-08-26 23:36:16 -0400
commite0b6379050d826ea8323a791f761b56a2d8b5a91 (patch)
tree5ca63d01043f51200af7d97cf9f6554011079014 /crawl-ref/source/wiz-item.cc
parentfdac0543c5c925da2f7e67d22dd6318a72006af1 (diff)
downloadcrawl-ref-e0b6379050d826ea8323a791f761b56a2d8b5a91.tar.gz
crawl-ref-e0b6379050d826ea8323a791f761b56a2d8b5a91.zip
Don't break wizmode artefact editing on the next major save increment.
Also, use "+Fog" instead of "Fog".
Diffstat (limited to 'crawl-ref/source/wiz-item.cc')
-rw-r--r--crawl-ref/source/wiz-item.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc
index e757102637..9022e2d3de 100644
--- a/crawl-ref/source/wiz-item.cc
+++ b/crawl-ref/source/wiz-item.cc
@@ -262,6 +262,9 @@ static const char* _prop_name[] = {
"SInv",
"+Inv",
"+Fly",
+#if TAG_MAJOR_VERSION > 34
+ "+Fog",
+#endif
"+Blnk",
"+Rage",
"Noisy",
@@ -282,7 +285,9 @@ static const char* _prop_name[] = {
"BAcc",
"BDam",
"RMsl",
- "Fog",
+#if TAG_MAJOR_VERSION == 34
+ "+Fog",
+#endif
};
#define ARTP_VAL_BOOL 0
@@ -305,6 +310,9 @@ static int8_t _prop_type[] = {
ARTP_VAL_BOOL, //EYESIGHT
ARTP_VAL_BOOL, //INVISIBLE
ARTP_VAL_BOOL, //FLIGHT
+#if TAG_MAJOR_VERSION > 34
+ ARTP_VAL_BOOL, //FOG
+#endif
ARTP_VAL_BOOL, //BLINK
ARTP_VAL_BOOL, //BERSERK
ARTP_VAL_POS, //NOISES
@@ -325,7 +333,9 @@ static int8_t _prop_type[] = {
ARTP_VAL_ANY, //BASE_ACC
ARTP_VAL_ANY, //BASE_DAM
ARTP_VAL_BOOL, //RMSL
+#if TAG_MAJOR_VERSION == 34
ARTP_VAL_BOOL, //FOG
+#endif
};
static void _tweak_randart(item_def &item)