summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/enum.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-25 07:24:40 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-25 07:24:40 +0000
commitdb86b7751c82969f85be99ea9becc6717357875f (patch)
tree9377353d4d4e0993ddf28a2bef003cf7b7df0adc /crawl-ref/source/enum.h
parentc0d2b0bfbdb1d6737aa7cf76eb557994afc5972e (diff)
downloadcrawl-ref-db86b7751c82969f85be99ea9becc6717357875f.tar.gz
crawl-ref-db86b7751c82969f85be99ea9becc6717357875f.zip
[1878126] Suppress "<foo> goes berserk" messages for Trog punishment, fixed enchantment name assert.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3327 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/enum.h')
-rw-r--r--crawl-ref/source/enum.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index fd5f87287d..fbfb3181b1 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -1093,7 +1093,8 @@ enum duration_type
NUM_DURATIONS
};
-// This list must match the enchant_names array in mon-util.cc
+// This list must match the enchant_names array in mon-util.cc or Crawl
+// will CRASH, we kid you not.
enum enchant_type
{
ENCH_NONE = 0, // 0
@@ -1123,7 +1124,9 @@ enum enchant_type
ENCH_HELD, // caught in a net
ENCH_BATTLE_FRENZY, // Monster is in a battle frenzy
ENCH_NEUTRAL,
-
+
+ // Update enchantment names in mon-util.cc when adding or removing
+ // enchantments.
NUM_ENCHANTMENTS
};