summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-data.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-14 23:15:36 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-15 00:06:49 +0100
commit08b32044b9fe15e1026a463da9d3d4cad19b3942 (patch)
tree8490ff65a505b266962a1f7dd4bd112fffc5ba41 /crawl-ref/source/mon-data.h
parent7745f7e3ad6250fcc64689013e530e091926a706 (diff)
downloadcrawl-ref-08b32044b9fe15e1026a463da9d3d4cad19b3942.tar.gz
crawl-ref-08b32044b9fe15e1026a463da9d3d4cad19b3942.zip
A way to remove monsters without getting "program bug" in old saves.
Diffstat (limited to 'crawl-ref/source/mon-data.h')
-rw-r--r--crawl-ref/source/mon-data.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-data.h b/crawl-ref/source/mon-data.h
index f2c81d8984..965ef2314a 100644
--- a/crawl-ref/source/mon-data.h
+++ b/crawl-ref/source/mon-data.h
@@ -195,6 +195,24 @@ static monsterentry mondata[] = {
MONUSE_NOTHING, MONEAT_NOTHING, SIZE_HUGE
},
+
+// Use this to replace removed monsters, to retain save compatibility.
+// Please put it in #if (TAG_MAJOR_VERSION <= X), so they will go away
+// after save compat is broken.
+#define AXED_MON(id) \
+{ \
+ id, 'X', LIGHTRED, "removed "#id, \
+ M_NO_EXP_GAIN, \
+ MR_NO_FLAGS, \
+ 0, 10, MONS_PROGRAM_BUG, MONS_PROGRAM_BUG, MH_NONLIVING, -3, \
+ { AT_NO_ATK, AT_NO_ATK, AT_NO_ATK, AT_NO_ATK }, \
+ { 0, 0, 0, 0 }, \
+ 0, 0, MST_NO_SPELLS, CE_CONTAMINATED, Z_NOZOMBIE, S_SILENT, \
+ I_PLANT, HT_LAND, FL_NONE, 0, DEFAULT_ENERGY, \
+ MONUSE_NOTHING, MONEAT_NOTHING, SIZE_HUGE \
+},
+
+
// Real monsters begin here {dlb}:
// insects ('a')