From 08b32044b9fe15e1026a463da9d3d4cad19b3942 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Mon, 14 Dec 2009 23:15:36 +0100 Subject: A way to remove monsters without getting "program bug" in old saves. --- crawl-ref/source/mon-data.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'crawl-ref/source/mon-data.h') 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') -- cgit v1.2.3-54-g00ecf