Skip to content

Instantly share code, notes, and snippets.

@rwbarton
Created November 21, 2012 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwbarton/4122545 to your computer and use it in GitHub Desktop.
Save rwbarton/4122545 to your computer and use it in GitHub Desktop.
crawl enums
This file has been truncated, but you can view the full file.
-- GENERATED by C->Haskell Compiler, version 0.16.4 Crystal Seed, 24 Jan 2009 (Haskell)
-- Edit the ORIGNAL .chs file instead!
{-# LINE 1 "enums.chs" #-}module Crawl.Enums where
data Crawl_CHAR_ATTRIBUTES = CHATTR_NORMAL
| CHATTR_STANDOUT
| CHATTR_BOLD
| CHATTR_BLINK
| CHATTR_UNDERLINE
| CHATTR_REVERSE
| CHATTR_DIM
| CHATTR_HILITE
| CHATTR_ATTRMASK
| CHATTR_COLMASK
instance Enum Crawl_CHAR_ATTRIBUTES where
fromEnum CHATTR_NORMAL = 0
fromEnum CHATTR_STANDOUT = 1
fromEnum CHATTR_BOLD = 2
fromEnum CHATTR_BLINK = 3
fromEnum CHATTR_UNDERLINE = 4
fromEnum CHATTR_REVERSE = 5
fromEnum CHATTR_DIM = 6
fromEnum CHATTR_HILITE = 7
fromEnum CHATTR_ATTRMASK = 15
fromEnum CHATTR_COLMASK = 3840
toEnum 0 = CHATTR_NORMAL
toEnum 1 = CHATTR_STANDOUT
toEnum 2 = CHATTR_BOLD
toEnum 3 = CHATTR_BLINK
toEnum 4 = CHATTR_UNDERLINE
toEnum 5 = CHATTR_REVERSE
toEnum 6 = CHATTR_DIM
toEnum 7 = CHATTR_HILITE
toEnum 15 = CHATTR_ATTRMASK
toEnum 3840 = CHATTR_COLMASK
toEnum unmatched = error ("Crawl_CHAR_ATTRIBUTES.toEnum: Cannot match " ++ show unmatched)
{-# LINE 2 "enums.chs" #-}
data Crawl_COLORS = BLACK
| BLUE
| GREEN
| CYAN
| RED
| MAGENTA
| BROWN
| LIGHTGRAY
| LIGHTGREY
| DARKGRAY
| DARKGREY
| LIGHTBLUE
| LIGHTGREEN
| LIGHTCYAN
| LIGHTRED
| LIGHTMAGENTA
| YELLOW
| WHITE
| MAX_TERM_COLOUR
instance Enum Crawl_COLORS where
fromEnum BLACK = 0
fromEnum BLUE = 1
fromEnum GREEN = 2
fromEnum CYAN = 3
fromEnum RED = 4
fromEnum MAGENTA = 5
fromEnum BROWN = 6
fromEnum LIGHTGRAY = 7
fromEnum LIGHTGREY = 7
fromEnum DARKGRAY = 8
fromEnum DARKGREY = 8
fromEnum LIGHTBLUE = 9
fromEnum LIGHTGREEN = 10
fromEnum LIGHTCYAN = 11
fromEnum LIGHTRED = 12
fromEnum LIGHTMAGENTA = 13
fromEnum YELLOW = 14
fromEnum WHITE = 15
fromEnum MAX_TERM_COLOUR = 16
toEnum 0 = BLACK
toEnum 1 = BLUE
toEnum 2 = GREEN
toEnum 3 = CYAN
toEnum 4 = RED
toEnum 5 = MAGENTA
toEnum 6 = BROWN
toEnum 7 = LIGHTGRAY
toEnum 7 = LIGHTGREY
toEnum 8 = DARKGRAY
toEnum 8 = DARKGREY
toEnum 9 = LIGHTBLUE
toEnum 10 = LIGHTGREEN
toEnum 11 = LIGHTCYAN
toEnum 12 = LIGHTRED
toEnum 13 = LIGHTMAGENTA
toEnum 14 = YELLOW
toEnum 15 = WHITE
toEnum 16 = MAX_TERM_COLOUR
toEnum unmatched = error ("Crawl_COLORS.toEnum: Cannot match " ++ show unmatched)
{-# LINE 3 "enums.chs" #-}
data Crawl_Direction = UP
| DOWN
| LEFT
| RIGHT
instance Enum Crawl_Direction where
fromEnum UP = 0
fromEnum DOWN = 1
fromEnum LEFT = 2
fromEnum RIGHT = 3
toEnum 0 = UP
toEnum 1 = DOWN
toEnum 2 = LEFT
toEnum 3 = RIGHT
toEnum unmatched = error ("Crawl_Direction.toEnum: Cannot match " ++ show unmatched)
{-# LINE 4 "enums.chs" #-}
data Crawl_GotoRegion = GOTO_CRT
| GOTO_MSG
| GOTO_STAT
| GOTO_DNGN
| GOTO_MLIST
instance Enum Crawl_GotoRegion where
fromEnum GOTO_CRT = 0
fromEnum GOTO_MSG = 1
fromEnum GOTO_STAT = 2
fromEnum GOTO_DNGN = 3
fromEnum GOTO_MLIST = 4
toEnum 0 = GOTO_CRT
toEnum 1 = GOTO_MSG
toEnum 2 = GOTO_STAT
toEnum 3 = GOTO_DNGN
toEnum 4 = GOTO_MLIST
toEnum unmatched = error ("Crawl_GotoRegion.toEnum: Cannot match " ++ show unmatched)
{-# LINE 5 "enums.chs" #-}
data Crawl_InputReturnValue = INPUT_NO_ACTION
| INPUT_SELECTED
| INPUT_DESELECTED
| INPUT_END_MENU_SUCCESS
| INPUT_END_MENU_ABORT
| INPUT_ACTIVE_CHANGED
| INPUT_FOCUS_RELEASE_UP
| INPUT_FOCUS_RELEASE_DOWN
| INPUT_FOCUS_RELEASE_LEFT
| INPUT_FOCUS_RELEASE_RIGHT
| INPUT_FOCUS_LOST
instance Enum Crawl_InputReturnValue where
fromEnum INPUT_NO_ACTION = 0
fromEnum INPUT_SELECTED = 1
fromEnum INPUT_DESELECTED = 2
fromEnum INPUT_END_MENU_SUCCESS = 3
fromEnum INPUT_END_MENU_ABORT = 4
fromEnum INPUT_ACTIVE_CHANGED = 5
fromEnum INPUT_FOCUS_RELEASE_UP = 6
fromEnum INPUT_FOCUS_RELEASE_DOWN = 7
fromEnum INPUT_FOCUS_RELEASE_LEFT = 8
fromEnum INPUT_FOCUS_RELEASE_RIGHT = 9
fromEnum INPUT_FOCUS_LOST = 10
toEnum 0 = INPUT_NO_ACTION
toEnum 1 = INPUT_SELECTED
toEnum 2 = INPUT_DESELECTED
toEnum 3 = INPUT_END_MENU_SUCCESS
toEnum 4 = INPUT_END_MENU_ABORT
toEnum 5 = INPUT_ACTIVE_CHANGED
toEnum 6 = INPUT_FOCUS_RELEASE_UP
toEnum 7 = INPUT_FOCUS_RELEASE_DOWN
toEnum 8 = INPUT_FOCUS_RELEASE_LEFT
toEnum 9 = INPUT_FOCUS_RELEASE_RIGHT
toEnum 10 = INPUT_FOCUS_LOST
toEnum unmatched = error ("Crawl_InputReturnValue.toEnum: Cannot match " ++ show unmatched)
{-# LINE 6 "enums.chs" #-}
data Crawl_IntertravelDestination = ID_DOWN
| ID_UP
| ID_REPEAT
| ID_CANCEL
instance Enum Crawl_IntertravelDestination where
fromEnum ID_DOWN = (-100)
fromEnum ID_UP = (-99)
fromEnum ID_REPEAT = (-101)
fromEnum ID_CANCEL = (-104)
toEnum (-100) = ID_DOWN
toEnum (-99) = ID_UP
toEnum (-101) = ID_REPEAT
toEnum (-104) = ID_CANCEL
toEnum unmatched = error ("Crawl_IntertravelDestination.toEnum: Cannot match " ++ show unmatched)
{-# LINE 7 "enums.chs" #-}
data Crawl_KEYS = CK_ENTER
| CK_BKSP
| CK_ESCAPE
| CK_DELETE
| CK_UP
| CK_DOWN
| CK_LEFT
| CK_RIGHT
| CK_INSERT
| CK_HOME
| CK_END
| CK_CLEAR
| CK_PGUP
| CK_PGDN
| CK_TAB_TILE
| CK_SHIFT_UP
| CK_SHIFT_DOWN
| CK_SHIFT_LEFT
| CK_SHIFT_RIGHT
| CK_SHIFT_INSERT
| CK_SHIFT_HOME
| CK_SHIFT_END
| CK_SHIFT_CLEAR
| CK_SHIFT_PGUP
| CK_SHIFT_PGDN
| CK_SHIFT_TAB
| CK_CTRL_UP
| CK_CTRL_DOWN
| CK_CTRL_LEFT
| CK_CTRL_RIGHT
| CK_CTRL_INSERT
| CK_CTRL_HOME
| CK_CTRL_END
| CK_CTRL_CLEAR
| CK_CTRL_PGUP
| CK_CTRL_PGDN
| CK_CTRL_TAB
| CK_MOUSE_MOVE
| CK_MOUSE_CMD
| CK_MOUSE_B1
| CK_MOUSE_B2
| CK_MOUSE_B3
| CK_MOUSE_B4
| CK_MOUSE_B5
| CK_MOUSE_CLICK
| CK_TOUCH_DUMMY
| CK_NO_KEY
instance Enum Crawl_KEYS where
fromEnum CK_ENTER = 13
fromEnum CK_BKSP = 8
fromEnum CK_ESCAPE = 27
fromEnum CK_DELETE = (-127)
fromEnum CK_UP = (-126)
fromEnum CK_DOWN = (-125)
fromEnum CK_LEFT = (-124)
fromEnum CK_RIGHT = (-123)
fromEnum CK_INSERT = (-122)
fromEnum CK_HOME = (-121)
fromEnum CK_END = (-120)
fromEnum CK_CLEAR = (-119)
fromEnum CK_PGUP = (-118)
fromEnum CK_PGDN = (-117)
fromEnum CK_TAB_TILE = (-116)
fromEnum CK_SHIFT_UP = (-115)
fromEnum CK_SHIFT_DOWN = (-114)
fromEnum CK_SHIFT_LEFT = (-113)
fromEnum CK_SHIFT_RIGHT = (-112)
fromEnum CK_SHIFT_INSERT = (-111)
fromEnum CK_SHIFT_HOME = (-110)
fromEnum CK_SHIFT_END = (-109)
fromEnum CK_SHIFT_CLEAR = (-108)
fromEnum CK_SHIFT_PGUP = (-107)
fromEnum CK_SHIFT_PGDN = (-106)
fromEnum CK_SHIFT_TAB = (-105)
fromEnum CK_CTRL_UP = (-104)
fromEnum CK_CTRL_DOWN = (-103)
fromEnum CK_CTRL_LEFT = (-102)
fromEnum CK_CTRL_RIGHT = (-101)
fromEnum CK_CTRL_INSERT = (-100)
fromEnum CK_CTRL_HOME = (-99)
fromEnum CK_CTRL_END = (-98)
fromEnum CK_CTRL_CLEAR = (-97)
fromEnum CK_CTRL_PGUP = (-96)
fromEnum CK_CTRL_PGDN = (-95)
fromEnum CK_CTRL_TAB = (-94)
fromEnum CK_MOUSE_MOVE = (-10009)
fromEnum CK_MOUSE_CMD = (-10008)
fromEnum CK_MOUSE_B1 = (-10007)
fromEnum CK_MOUSE_B2 = (-10006)
fromEnum CK_MOUSE_B3 = (-10005)
fromEnum CK_MOUSE_B4 = (-10004)
fromEnum CK_MOUSE_B5 = (-10003)
fromEnum CK_MOUSE_CLICK = (-10002)
fromEnum CK_TOUCH_DUMMY = (-10001)
fromEnum CK_NO_KEY = (-10000)
toEnum 13 = CK_ENTER
toEnum 8 = CK_BKSP
toEnum 27 = CK_ESCAPE
toEnum (-127) = CK_DELETE
toEnum (-126) = CK_UP
toEnum (-125) = CK_DOWN
toEnum (-124) = CK_LEFT
toEnum (-123) = CK_RIGHT
toEnum (-122) = CK_INSERT
toEnum (-121) = CK_HOME
toEnum (-120) = CK_END
toEnum (-119) = CK_CLEAR
toEnum (-118) = CK_PGUP
toEnum (-117) = CK_PGDN
toEnum (-116) = CK_TAB_TILE
toEnum (-115) = CK_SHIFT_UP
toEnum (-114) = CK_SHIFT_DOWN
toEnum (-113) = CK_SHIFT_LEFT
toEnum (-112) = CK_SHIFT_RIGHT
toEnum (-111) = CK_SHIFT_INSERT
toEnum (-110) = CK_SHIFT_HOME
toEnum (-109) = CK_SHIFT_END
toEnum (-108) = CK_SHIFT_CLEAR
toEnum (-107) = CK_SHIFT_PGUP
toEnum (-106) = CK_SHIFT_PGDN
toEnum (-105) = CK_SHIFT_TAB
toEnum (-104) = CK_CTRL_UP
toEnum (-103) = CK_CTRL_DOWN
toEnum (-102) = CK_CTRL_LEFT
toEnum (-101) = CK_CTRL_RIGHT
toEnum (-100) = CK_CTRL_INSERT
toEnum (-99) = CK_CTRL_HOME
toEnum (-98) = CK_CTRL_END
toEnum (-97) = CK_CTRL_CLEAR
toEnum (-96) = CK_CTRL_PGUP
toEnum (-95) = CK_CTRL_PGDN
toEnum (-94) = CK_CTRL_TAB
toEnum (-10009) = CK_MOUSE_MOVE
toEnum (-10008) = CK_MOUSE_CMD
toEnum (-10007) = CK_MOUSE_B1
toEnum (-10006) = CK_MOUSE_B2
toEnum (-10005) = CK_MOUSE_B3
toEnum (-10004) = CK_MOUSE_B4
toEnum (-10003) = CK_MOUSE_B5
toEnum (-10002) = CK_MOUSE_CLICK
toEnum (-10001) = CK_TOUCH_DUMMY
toEnum (-10000) = CK_NO_KEY
toEnum unmatched = error ("Crawl_KEYS.toEnum: Cannot match " ++ show unmatched)
{-# LINE 8 "enums.chs" #-}
data Crawl_KILL_DUMP_OPTIONS = KDO_NO_PLACES
| KDO_ONE_PLACE
| KDO_ALL_PLACES
instance Enum Crawl_KILL_DUMP_OPTIONS where
fromEnum KDO_NO_PLACES = 0
fromEnum KDO_ONE_PLACE = 1
fromEnum KDO_ALL_PLACES = 2
toEnum 0 = KDO_NO_PLACES
toEnum 1 = KDO_ONE_PLACE
toEnum 2 = KDO_ALL_PLACES
toEnum unmatched = error ("Crawl_KILL_DUMP_OPTIONS.toEnum: Cannot match " ++ show unmatched)
{-# LINE 9 "enums.chs" #-}
data Crawl_KeymapContext = KMC_DEFAULT
| KMC_LEVELMAP
| KMC_TARGETTING
| KMC_CONFIRM
| KMC_MENU
| KMC_DOLL
| KMC_CONTEXT_COUNT
| KMC_NONE
instance Enum Crawl_KeymapContext where
fromEnum KMC_DEFAULT = 0
fromEnum KMC_LEVELMAP = 1
fromEnum KMC_TARGETTING = 2
fromEnum KMC_CONFIRM = 3
fromEnum KMC_MENU = 4
fromEnum KMC_DOLL = 5
fromEnum KMC_CONTEXT_COUNT = 6
fromEnum KMC_NONE = 7
toEnum 0 = KMC_DEFAULT
toEnum 1 = KMC_LEVELMAP
toEnum 2 = KMC_TARGETTING
toEnum 3 = KMC_CONFIRM
toEnum 4 = KMC_MENU
toEnum 5 = KMC_DOLL
toEnum 6 = KMC_CONTEXT_COUNT
toEnum 7 = KMC_NONE
toEnum unmatched = error ("Crawl_KeymapContext.toEnum: Cannot match " ++ show unmatched)
{-# LINE 10 "enums.chs" #-}
data Crawl_LOSSelect = LS_ANY
| LS_VISIBLE
| LS_HIDDEN
| LS_VISMASK
| LS_FLIPVH
| LS_FLIPHV
| LS_NONE
instance Enum Crawl_LOSSelect where
fromEnum LS_ANY = 0
fromEnum LS_VISIBLE = 1
fromEnum LS_HIDDEN = 2
fromEnum LS_VISMASK = 3
fromEnum LS_FLIPVH = 32
fromEnum LS_FLIPHV = 64
fromEnum LS_NONE = 65535
toEnum 0 = LS_ANY
toEnum 1 = LS_VISIBLE
toEnum 2 = LS_HIDDEN
toEnum 3 = LS_VISMASK
toEnum 32 = LS_FLIPVH
toEnum 64 = LS_FLIPHV
toEnum 65535 = LS_NONE
toEnum unmatched = error ("Crawl_LOSSelect.toEnum: Cannot match " ++ show unmatched)
{-# LINE 11 "enums.chs" #-}
data Crawl_MenuEntryLevel = MEL_NONE
| MEL_TITLE
| MEL_SUBTITLE
| MEL_ITEM
instance Enum Crawl_MenuEntryLevel where
fromEnum MEL_NONE = (-1)
fromEnum MEL_TITLE = 0
fromEnum MEL_SUBTITLE = 1
fromEnum MEL_ITEM = 2
toEnum (-1) = MEL_NONE
toEnum 0 = MEL_TITLE
toEnum 1 = MEL_SUBTITLE
toEnum 2 = MEL_ITEM
toEnum unmatched = error ("Crawl_MenuEntryLevel.toEnum: Cannot match " ++ show unmatched)
{-# LINE 12 "enums.chs" #-}
data Crawl_MenuFlag = MF_NOSELECT
| MF_SINGLESELECT
| MF_MULTISELECT
| MF_NO_SELECT_QTY
| MF_ANYPRINTABLE
| MF_SELECT_BY_PAGE
| MF_ALWAYS_SHOW_MORE
| MF_NOWRAP
| MF_ALLOW_FILTER
| MF_ALLOW_FORMATTING
| MF_SHOW_PAGENUMBERS
| MF_TOGGLE_ACTION
| MF_EASY_EXIT
| MF_START_AT_END
| MF_PRESELECTED
| MF_QUIET_SELECT
instance Enum Crawl_MenuFlag where
fromEnum MF_NOSELECT = 0
fromEnum MF_SINGLESELECT = 1
fromEnum MF_MULTISELECT = 2
fromEnum MF_NO_SELECT_QTY = 4
fromEnum MF_ANYPRINTABLE = 8
fromEnum MF_SELECT_BY_PAGE = 16
fromEnum MF_ALWAYS_SHOW_MORE = 32
fromEnum MF_NOWRAP = 64
fromEnum MF_ALLOW_FILTER = 128
fromEnum MF_ALLOW_FORMATTING = 256
fromEnum MF_SHOW_PAGENUMBERS = 512
fromEnum MF_TOGGLE_ACTION = 1024
fromEnum MF_EASY_EXIT = 4096
fromEnum MF_START_AT_END = 8192
fromEnum MF_PRESELECTED = 16384
fromEnum MF_QUIET_SELECT = 32768
toEnum 0 = MF_NOSELECT
toEnum 1 = MF_SINGLESELECT
toEnum 2 = MF_MULTISELECT
toEnum 4 = MF_NO_SELECT_QTY
toEnum 8 = MF_ANYPRINTABLE
toEnum 16 = MF_SELECT_BY_PAGE
toEnum 32 = MF_ALWAYS_SHOW_MORE
toEnum 64 = MF_NOWRAP
toEnum 128 = MF_ALLOW_FILTER
toEnum 256 = MF_ALLOW_FORMATTING
toEnum 512 = MF_SHOW_PAGENUMBERS
toEnum 1024 = MF_TOGGLE_ACTION
toEnum 4096 = MF_EASY_EXIT
toEnum 8192 = MF_START_AT_END
toEnum 16384 = MF_PRESELECTED
toEnum 32768 = MF_QUIET_SELECT
toEnum unmatched = error ("Crawl_MenuFlag.toEnum: Cannot match " ++ show unmatched)
{-# LINE 13 "enums.chs" #-}
data Crawl_MenuOptions = M_QUIT
| M_ABORT
| M_APTITUDES
| M_HELP
| M_VIABLE
| M_RANDOM
| M_VIABLE_CHAR
| M_RANDOM_CHAR
| M_DEFAULT_CHOICE
instance Enum Crawl_MenuOptions where
fromEnum M_QUIT = (-1)
fromEnum M_ABORT = (-1)
fromEnum M_APTITUDES = (-1)
fromEnum M_HELP = (-1)
fromEnum M_VIABLE = (-1)
fromEnum M_RANDOM = (-1)
fromEnum M_VIABLE_CHAR = (-1)
fromEnum M_RANDOM_CHAR = (-1)
fromEnum M_DEFAULT_CHOICE = (-1)
toEnum (-1) = M_QUIT
toEnum (-1) = M_ABORT
toEnum (-1) = M_APTITUDES
toEnum (-1) = M_HELP
toEnum (-1) = M_VIABLE
toEnum (-1) = M_RANDOM
toEnum (-1) = M_VIABLE_CHAR
toEnum (-1) = M_RANDOM_CHAR
toEnum (-1) = M_DEFAULT_CHOICE
toEnum unmatched = error ("Crawl_MenuOptions.toEnum: Cannot match " ++ show unmatched)
{-# LINE 14 "enums.chs" #-}
data Crawl_NOTE_TYPES = NOTE_HP_CHANGE
| NOTE_MAXHP_CHANGE
| NOTE_MP_CHANGE
| NOTE_MAXMP_CHANGE
| NOTE_XP_LEVEL_CHANGE
| NOTE_DUNGEON_LEVEL_CHANGE
| NOTE_LEARN_SPELL
| NOTE_GET_GOD
| NOTE_GOD_GIFT
| NOTE_GOD_POWER
| NOTE_GET_MUTATION
| NOTE_LOSE_MUTATION
| NOTE_ID_ITEM
| NOTE_GET_ITEM
| NOTE_GAIN_SKILL
| NOTE_LOSE_SKILL
| NOTE_SEEN_MONSTER
| NOTE_DEFEAT_MONSTER
| NOTE_POLY_MONSTER
| NOTE_USER_NOTE
| NOTE_MESSAGE
| NOTE_LOSE_GOD
| NOTE_PENANCE
| NOTE_MOLLIFY_GOD
| NOTE_DEATH
| NOTE_BUY_ITEM
| NOTE_DONATE_MONEY
| NOTE_SEEN_FEAT
| NOTE_XOM_EFFECT
| NOTE_XOM_REVIVAL
| NOTE_PARALYSIS
| NOTE_NAMED_ALLY
| NOTE_ALLY_DEATH
| NOTE_FEAT_MIMIC
| NOTE_NUM_TYPES
instance Enum Crawl_NOTE_TYPES where
fromEnum NOTE_HP_CHANGE = 0
fromEnum NOTE_MAXHP_CHANGE = 1
fromEnum NOTE_MP_CHANGE = 2
fromEnum NOTE_MAXMP_CHANGE = 3
fromEnum NOTE_XP_LEVEL_CHANGE = 4
fromEnum NOTE_DUNGEON_LEVEL_CHANGE = 5
fromEnum NOTE_LEARN_SPELL = 6
fromEnum NOTE_GET_GOD = 7
fromEnum NOTE_GOD_GIFT = 8
fromEnum NOTE_GOD_POWER = 9
fromEnum NOTE_GET_MUTATION = 10
fromEnum NOTE_LOSE_MUTATION = 11
fromEnum NOTE_ID_ITEM = 12
fromEnum NOTE_GET_ITEM = 13
fromEnum NOTE_GAIN_SKILL = 14
fromEnum NOTE_LOSE_SKILL = 15
fromEnum NOTE_SEEN_MONSTER = 16
fromEnum NOTE_DEFEAT_MONSTER = 17
fromEnum NOTE_POLY_MONSTER = 18
fromEnum NOTE_USER_NOTE = 19
fromEnum NOTE_MESSAGE = 20
fromEnum NOTE_LOSE_GOD = 21
fromEnum NOTE_PENANCE = 22
fromEnum NOTE_MOLLIFY_GOD = 23
fromEnum NOTE_DEATH = 24
fromEnum NOTE_BUY_ITEM = 25
fromEnum NOTE_DONATE_MONEY = 26
fromEnum NOTE_SEEN_FEAT = 27
fromEnum NOTE_XOM_EFFECT = 28
fromEnum NOTE_XOM_REVIVAL = 29
fromEnum NOTE_PARALYSIS = 30
fromEnum NOTE_NAMED_ALLY = 31
fromEnum NOTE_ALLY_DEATH = 32
fromEnum NOTE_FEAT_MIMIC = 33
fromEnum NOTE_NUM_TYPES = 34
toEnum 0 = NOTE_HP_CHANGE
toEnum 1 = NOTE_MAXHP_CHANGE
toEnum 2 = NOTE_MP_CHANGE
toEnum 3 = NOTE_MAXMP_CHANGE
toEnum 4 = NOTE_XP_LEVEL_CHANGE
toEnum 5 = NOTE_DUNGEON_LEVEL_CHANGE
toEnum 6 = NOTE_LEARN_SPELL
toEnum 7 = NOTE_GET_GOD
toEnum 8 = NOTE_GOD_GIFT
toEnum 9 = NOTE_GOD_POWER
toEnum 10 = NOTE_GET_MUTATION
toEnum 11 = NOTE_LOSE_MUTATION
toEnum 12 = NOTE_ID_ITEM
toEnum 13 = NOTE_GET_ITEM
toEnum 14 = NOTE_GAIN_SKILL
toEnum 15 = NOTE_LOSE_SKILL
toEnum 16 = NOTE_SEEN_MONSTER
toEnum 17 = NOTE_DEFEAT_MONSTER
toEnum 18 = NOTE_POLY_MONSTER
toEnum 19 = NOTE_USER_NOTE
toEnum 20 = NOTE_MESSAGE
toEnum 21 = NOTE_LOSE_GOD
toEnum 22 = NOTE_PENANCE
toEnum 23 = NOTE_MOLLIFY_GOD
toEnum 24 = NOTE_DEATH
toEnum 25 = NOTE_BUY_ITEM
toEnum 26 = NOTE_DONATE_MONEY
toEnum 27 = NOTE_SEEN_FEAT
toEnum 28 = NOTE_XOM_EFFECT
toEnum 29 = NOTE_XOM_REVIVAL
toEnum 30 = NOTE_PARALYSIS
toEnum 31 = NOTE_NAMED_ALLY
toEnum 32 = NOTE_ALLY_DEATH
toEnum 33 = NOTE_FEAT_MIMIC
toEnum 34 = NOTE_NUM_TYPES
toEnum unmatched = error ("Crawl_NOTE_TYPES.toEnum: Cannot match " ++ show unmatched)
{-# LINE 15 "enums.chs" #-}
data Crawl_SelectType = PRECISION_SINGLESELECT
| PRECISION_MULTISELECT
instance Enum Crawl_SelectType where
fromEnum PRECISION_SINGLESELECT = 0
fromEnum PRECISION_MULTISELECT = 1
toEnum 0 = PRECISION_SINGLESELECT
toEnum 1 = PRECISION_MULTISELECT
toEnum unmatched = error ("Crawl_SelectType.toEnum: Cannot match " ++ show unmatched)
{-# LINE 16 "enums.chs" #-}
data Crawl_SpecialIdx = SPECIAL_N
| SPECIAL_NE
| SPECIAL_E
| SPECIAL_SE
| SPECIAL_S
| SPECIAL_SW
| SPECIAL_W
| SPECIAL_NW
| SPECIAL_FULL
instance Enum Crawl_SpecialIdx where
fromEnum SPECIAL_N = 0
fromEnum SPECIAL_NE = 1
fromEnum SPECIAL_E = 2
fromEnum SPECIAL_SE = 3
fromEnum SPECIAL_S = 4
fromEnum SPECIAL_SW = 5
fromEnum SPECIAL_W = 6
fromEnum SPECIAL_NW = 7
fromEnum SPECIAL_FULL = 8
toEnum 0 = SPECIAL_N
toEnum 1 = SPECIAL_NE
toEnum 2 = SPECIAL_E
toEnum 3 = SPECIAL_SE
toEnum 4 = SPECIAL_S
toEnum 5 = SPECIAL_SW
toEnum 6 = SPECIAL_W
toEnum 7 = SPECIAL_NW
toEnum 8 = SPECIAL_FULL
toEnum unmatched = error ("Crawl_SpecialIdx.toEnum: Cannot match " ++ show unmatched)
{-# LINE 17 "enums.chs" #-}
data Crawl_TextureID = TEX_FLOOR
| TEX_WALL
| TEX_FEAT
| TEX_PLAYER
| TEX_DEFAULT
| TEX_GUI
| TEX_ICONS
| TEX_MAX
instance Enum Crawl_TextureID where
fromEnum TEX_FLOOR = 0
fromEnum TEX_WALL = 1
fromEnum TEX_FEAT = 2
fromEnum TEX_PLAYER = 3
fromEnum TEX_DEFAULT = 4
fromEnum TEX_GUI = 5
fromEnum TEX_ICONS = 6
fromEnum TEX_MAX = 7
toEnum 0 = TEX_FLOOR
toEnum 1 = TEX_WALL
toEnum 2 = TEX_FEAT
toEnum 3 = TEX_PLAYER
toEnum 4 = TEX_DEFAULT
toEnum 5 = TEX_GUI
toEnum 6 = TEX_ICONS
toEnum 7 = TEX_MAX
toEnum unmatched = error ("Crawl_TextureID.toEnum: Cannot match " ++ show unmatched)
{-# LINE 18 "enums.chs" #-}
data Crawl_WebtilesCRTMode = CRT_DISABLED
| CRT_NORMAL
| CRT_MENU
instance Enum Crawl_WebtilesCRTMode where
fromEnum CRT_DISABLED = 0
fromEnum CRT_NORMAL = 1
fromEnum CRT_MENU = 2
toEnum 0 = CRT_DISABLED
toEnum 1 = CRT_NORMAL
toEnum 2 = CRT_MENU
toEnum unmatched = error ("Crawl_WebtilesCRTMode.toEnum: Cannot match " ++ show unmatched)
{-# LINE 19 "enums.chs" #-}
data Crawl_WebtilesUIState = UI_NORMAL
| UI_CRT
| UI_VIEW_MAP
instance Enum Crawl_WebtilesUIState where
fromEnum UI_NORMAL = 0
fromEnum UI_CRT = 1
fromEnum UI_VIEW_MAP = 2
toEnum 0 = UI_NORMAL
toEnum 1 = UI_CRT
toEnum 2 = UI_VIEW_MAP
toEnum unmatched = error ("Crawl_WebtilesUIState.toEnum: Cannot match " ++ show unmatched)
{-# LINE 20 "enums.chs" #-}
data Crawl__Ios_Fmtflags = S_boolalpha
| S_dec
| S_fixed
| S_hex
| S_internal
| S_left
| S_oct
| S_right
| S_scientific
| S_showbase
| S_showpoint
| S_showpos
| S_skipws
| S_unitbuf
| S_uppercase
| S_adjustfield
| S_basefield
| S_floatfield
| S_ios_fmtflags_end
instance Enum Crawl__Ios_Fmtflags where
fromEnum S_boolalpha = 1
fromEnum S_dec = 2
fromEnum S_fixed = 4
fromEnum S_hex = 8
fromEnum S_internal = 16
fromEnum S_left = 32
fromEnum S_oct = 64
fromEnum S_right = 128
fromEnum S_scientific = 256
fromEnum S_showbase = 512
fromEnum S_showpoint = 1024
fromEnum S_showpos = 2048
fromEnum S_skipws = 4096
fromEnum S_unitbuf = 8192
fromEnum S_uppercase = 16384
fromEnum S_adjustfield = 176
fromEnum S_basefield = 74
fromEnum S_floatfield = 260
fromEnum S_ios_fmtflags_end = 65536
toEnum 1 = S_boolalpha
toEnum 2 = S_dec
toEnum 4 = S_fixed
toEnum 8 = S_hex
toEnum 16 = S_internal
toEnum 32 = S_left
toEnum 64 = S_oct
toEnum 128 = S_right
toEnum 256 = S_scientific
toEnum 512 = S_showbase
toEnum 1024 = S_showpoint
toEnum 2048 = S_showpos
toEnum 4096 = S_skipws
toEnum 8192 = S_unitbuf
toEnum 16384 = S_uppercase
toEnum 176 = S_adjustfield
toEnum 74 = S_basefield
toEnum 260 = S_floatfield
toEnum 65536 = S_ios_fmtflags_end
toEnum unmatched = error ("Crawl__Ios_Fmtflags.toEnum: Cannot match " ++ show unmatched)
{-# LINE 21 "enums.chs" #-}
data Crawl__Ios_Iostate = S_goodbit
| S_badbit
| S_eofbit
| S_failbit
| S_ios_iostate_end
instance Enum Crawl__Ios_Iostate where
fromEnum S_goodbit = 0
fromEnum S_badbit = 1
fromEnum S_eofbit = 2
fromEnum S_failbit = 4
fromEnum S_ios_iostate_end = 65536
toEnum 0 = S_goodbit
toEnum 1 = S_badbit
toEnum 2 = S_eofbit
toEnum 4 = S_failbit
toEnum 65536 = S_ios_iostate_end
toEnum unmatched = error ("Crawl__Ios_Iostate.toEnum: Cannot match " ++ show unmatched)
{-# LINE 22 "enums.chs" #-}
data Crawl__Ios_Openmode = S_app
| S_ate
| S_bin
| S_in
| S_out
| S_trunc
| S_ios_openmode_end
instance Enum Crawl__Ios_Openmode where
fromEnum S_app = 1
fromEnum S_ate = 2
fromEnum S_bin = 4
fromEnum S_in = 8
fromEnum S_out = 16
fromEnum S_trunc = 32
fromEnum S_ios_openmode_end = 65536
toEnum 1 = S_app
toEnum 2 = S_ate
toEnum 4 = S_bin
toEnum 8 = S_in
toEnum 16 = S_out
toEnum 32 = S_trunc
toEnum 65536 = S_ios_openmode_end
toEnum unmatched = error ("Crawl__Ios_Openmode.toEnum: Cannot match " ++ show unmatched)
{-# LINE 23 "enums.chs" #-}
data Crawl__Ios_Seekdir = S_beg
| S_cur
| S_end
| S_ios_seekdir_end
instance Enum Crawl__Ios_Seekdir where
fromEnum S_beg = 0
fromEnum S_cur = 1
fromEnum S_end = 2
fromEnum S_ios_seekdir_end = 65536
toEnum 0 = S_beg
toEnum 1 = S_cur
toEnum 2 = S_end
toEnum 65536 = S_ios_seekdir_end
toEnum unmatched = error ("Crawl__Ios_Seekdir.toEnum: Cannot match " ++ show unmatched)
{-# LINE 24 "enums.chs" #-}
data Crawl__Rb_tree_color = S_red
| S_black
instance Enum Crawl__Rb_tree_color where
fromEnum S_red = 0
fromEnum S_black = 1
toEnum 0 = S_red
toEnum 1 = S_black
toEnum unmatched = error ("Crawl__Rb_tree_color.toEnum: Cannot match " ++ show unmatched)
{-# LINE 25 "enums.chs" #-}
data Crawl___socket_type = SOCK_STREAM
| SOCK_DGRAM
| SOCK_RAW
| SOCK_RDM
| SOCK_SEQPACKET
| SOCK_DCCP
| SOCK_PACKET
| SOCK_CLOEXEC
| SOCK_NONBLOCK
instance Enum Crawl___socket_type where
fromEnum SOCK_STREAM = 1
fromEnum SOCK_DGRAM = 2
fromEnum SOCK_RAW = 3
fromEnum SOCK_RDM = 4
fromEnum SOCK_SEQPACKET = 5
fromEnum SOCK_DCCP = 6
fromEnum SOCK_PACKET = 10
fromEnum SOCK_CLOEXEC = 524288
fromEnum SOCK_NONBLOCK = 2048
toEnum 1 = SOCK_STREAM
toEnum 2 = SOCK_DGRAM
toEnum 3 = SOCK_RAW
toEnum 4 = SOCK_RDM
toEnum 5 = SOCK_SEQPACKET
toEnum 6 = SOCK_DCCP
toEnum 10 = SOCK_PACKET
toEnum 524288 = SOCK_CLOEXEC
toEnum 2048 = SOCK_NONBLOCK
toEnum unmatched = error ("Crawl___socket_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 26 "enums.chs" #-}
data Crawl_ability_flag_type = ABFLAG_NONE
| ABFLAG_BREATH
| ABFLAG_DELAY
| ABFLAG_PAIN
| ABFLAG_PIETY
| ABFLAG_EXHAUSTION
| ABFLAG_INSTANT
| ABFLAG_PERMANENT_HP
| ABFLAG_PERMANENT_MP
| ABFLAG_CONF_OK
| ABFLAG_FRUIT
| ABFLAG_VARIABLE_FRUIT
| ABFLAG_HEX_MISCAST
| ABFLAG_TLOC_MISCAST
| ABFLAG_NECRO_MISCAST_MINOR
| ABFLAG_NECRO_MISCAST
| ABFLAG_TMIG_MISCAST
| ABFLAG_LEVEL_DRAIN
| ABFLAG_STAT_DRAIN
| ABFLAG_ZOTDEF
instance Enum Crawl_ability_flag_type where
fromEnum ABFLAG_NONE = 0
fromEnum ABFLAG_BREATH = 1
fromEnum ABFLAG_DELAY = 2
fromEnum ABFLAG_PAIN = 4
fromEnum ABFLAG_PIETY = 8
fromEnum ABFLAG_EXHAUSTION = 16
fromEnum ABFLAG_INSTANT = 32
fromEnum ABFLAG_PERMANENT_HP = 64
fromEnum ABFLAG_PERMANENT_MP = 128
fromEnum ABFLAG_CONF_OK = 256
fromEnum ABFLAG_FRUIT = 512
fromEnum ABFLAG_VARIABLE_FRUIT = 1024
fromEnum ABFLAG_HEX_MISCAST = 2048
fromEnum ABFLAG_TLOC_MISCAST = 4096
fromEnum ABFLAG_NECRO_MISCAST_MINOR = 8192
fromEnum ABFLAG_NECRO_MISCAST = 16384
fromEnum ABFLAG_TMIG_MISCAST = 32768
fromEnum ABFLAG_LEVEL_DRAIN = 65536
fromEnum ABFLAG_STAT_DRAIN = 131072
fromEnum ABFLAG_ZOTDEF = 262144
toEnum 0 = ABFLAG_NONE
toEnum 1 = ABFLAG_BREATH
toEnum 2 = ABFLAG_DELAY
toEnum 4 = ABFLAG_PAIN
toEnum 8 = ABFLAG_PIETY
toEnum 16 = ABFLAG_EXHAUSTION
toEnum 32 = ABFLAG_INSTANT
toEnum 64 = ABFLAG_PERMANENT_HP
toEnum 128 = ABFLAG_PERMANENT_MP
toEnum 256 = ABFLAG_CONF_OK
toEnum 512 = ABFLAG_FRUIT
toEnum 1024 = ABFLAG_VARIABLE_FRUIT
toEnum 2048 = ABFLAG_HEX_MISCAST
toEnum 4096 = ABFLAG_TLOC_MISCAST
toEnum 8192 = ABFLAG_NECRO_MISCAST_MINOR
toEnum 16384 = ABFLAG_NECRO_MISCAST
toEnum 32768 = ABFLAG_TMIG_MISCAST
toEnum 65536 = ABFLAG_LEVEL_DRAIN
toEnum 131072 = ABFLAG_STAT_DRAIN
toEnum 262144 = ABFLAG_ZOTDEF
toEnum unmatched = error ("Crawl_ability_flag_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 27 "enums.chs" #-}
data Crawl_ability_type = ABIL_NON_ABILITY
| ABIL_SPIT_POISON
| ABIL_BREATHE_FIRE
| ABIL_BREATHE_FROST
| ABIL_BREATHE_POISON
| ABIL_BREATHE_LIGHTNING
| ABIL_BREATHE_POWER
| ABIL_BREATHE_STICKY_FLAME
| ABIL_BREATHE_STEAM
| ABIL_BREATHE_MEPHITIC
| ABIL_SPIT_ACID
| ABIL_BLINK
| ABIL_DELAYED_FIREBALL
| ABIL_END_TRANSFORMATION
| ABIL_HELLFIRE
| ABIL_FLY
| ABIL_FLY_II
| ABIL_STOP_FLYING
| ABIL_MUMMY_RESTORATION
| ABIL_TRAN_BAT
| ABIL_BOTTLE_BLOOD
| ABIL_RECHARGING
| ABIL_MAX_INTRINSIC
| ABIL_EVOKE_BERSERK
| ABIL_MIN_EVOKE
| ABIL_EVOKE_TELEPORTATION
| ABIL_EVOKE_BLINK
| ABIL_EVOKE_TURN_INVISIBLE
| ABIL_EVOKE_TURN_VISIBLE
| ABIL_EVOKE_FLIGHT
| ABIL_EVOKE_STOP_LEVITATING
| ABIL_EVOKE_FOG
| ABIL_MAX_EVOKE
| ABIL_ZIN_SUSTENANCE
| ABIL_ZIN_RECITE
| ABIL_ZIN_VITALISATION
| ABIL_ZIN_IMPRISON
| ABIL_ZIN_SANCTUARY
| ABIL_ZIN_CURE_ALL_MUTATIONS
| ABIL_TSO_DIVINE_SHIELD
| ABIL_TSO_CLEANSING_FLAME
| ABIL_TSO_SUMMON_DIVINE_WARRIOR
| ABIL_KIKU_RECEIVE_CORPSES
| ABIL_KIKU_TORMENT
| ABIL_YRED_INJURY_MIRROR
| ABIL_YRED_ANIMATE_REMAINS
| ABIL_YRED_RECALL_UNDEAD_SLAVES
| ABIL_YRED_ANIMATE_DEAD
| ABIL_YRED_DRAIN_LIFE
| ABIL_YRED_ENSLAVE_SOUL
| ABIL_YRED_ANIMATE_REMAINS_OR_DEAD
| ABIL_OKAWARU_HEROISM
| ABIL_OKAWARU_FINESSE
| ABIL_MAKHLEB_MINOR_DESTRUCTION
| ABIL_MAKHLEB_LESSER_SERVANT_OF_MAKHLEB
| ABIL_MAKHLEB_MAJOR_DESTRUCTION
| ABIL_MAKHLEB_GREATER_SERVANT_OF_MAKHLEB
| ABIL_SIF_MUNA_CHANNEL_ENERGY
| ABIL_SIF_MUNA_FORGET_SPELL
| ABIL_TROG_BURN_SPELLBOOKS
| ABIL_TROG_BERSERK
| ABIL_TROG_REGEN_MR
| ABIL_TROG_BROTHERS_IN_ARMS
| ABIL_ELYVILON_LIFESAVING
| ABIL_ELYVILON_LESSER_HEALING_SELF
| ABIL_ELYVILON_LESSER_HEALING_OTHERS
| ABIL_ELYVILON_PURIFICATION
| ABIL_ELYVILON_GREATER_HEALING_SELF
| ABIL_ELYVILON_GREATER_HEALING_OTHERS
| ABIL_ELYVILON_DIVINE_VIGOUR
| ABIL_LUGONU_ABYSS_EXIT
| ABIL_LUGONU_BEND_SPACE
| ABIL_LUGONU_BANISH
| ABIL_LUGONU_CORRUPT
| ABIL_LUGONU_ABYSS_ENTER
| ABIL_NEMELEX_DRAW_ONE
| ABIL_NEMELEX_PEEK_TWO
| ABIL_NEMELEX_TRIPLE_DRAW
| ABIL_NEMELEX_DEAL_FOUR
| ABIL_NEMELEX_STACK_FIVE
| ABIL_BEOGH_SMITING
| ABIL_BEOGH_RECALL_ORCISH_FOLLOWERS
| ABIL_JIYVA_CALL_JELLY
| ABIL_JIYVA_JELLY_PARALYSE
| ABIL_JIYVA_SLIMIFY
| ABIL_JIYVA_CURE_BAD_MUTATION
| ABIL_FEDHAS_SUNLIGHT
| ABIL_FEDHAS_RAIN
| ABIL_FEDHAS_PLANT_RING
| ABIL_FEDHAS_SPAWN_SPORES
| ABIL_FEDHAS_EVOLUTION
| ABIL_CHEIBRIADOS_TIME_STEP
| ABIL_CHEIBRIADOS_TIME_BEND
| ABIL_CHEIBRIADOS_SLOUCH
| ABIL_CHEIBRIADOS_DISTORTION
| ABIL_ASHENZARI_SCRYING
| ABIL_ASHENZARI_TRANSFER_KNOWLEDGE
| ABIL_ASHENZARI_END_TRANSFER
| ABIL_RENOUNCE_RELIGION
| ABIL_MAKE_FUNGUS
| ABIL_MIN_ZOTDEF
| ABIL_MAKE_PLANT
| ABIL_MAKE_OKLOB_SAPLING
| ABIL_MAKE_DART_TRAP
| ABIL_MAKE_ICE_STATUE
| ABIL_MAKE_OCS
| ABIL_MAKE_SILVER_STATUE
| ABIL_MAKE_CURSE_SKULL
| ABIL_MAKE_TELEPORT
| ABIL_MAKE_ARROW_TRAP
| ABIL_MAKE_BOLT_TRAP
| ABIL_MAKE_SPEAR_TRAP
| ABIL_MAKE_NEEDLE_TRAP
| ABIL_MAKE_NET_TRAP
| ABIL_MAKE_TELEPORT_TRAP
| ABIL_MAKE_ALARM_TRAP
| ABIL_MAKE_BLADE_TRAP
| ABIL_MAKE_OKLOB_CIRCLE
| ABIL_MAKE_ACQUIRE_GOLD
| ABIL_MAKE_ACQUIREMENT
| ABIL_MAKE_WATER
| ABIL_MAKE_LIGHTNING_SPIRE
| ABIL_MAKE_BAZAAR
| ABIL_MAKE_ALTAR
| ABIL_MAKE_GRENADES
| ABIL_MAKE_SAGE
| ABIL_MAKE_OKLOB_PLANT
| ABIL_MAKE_BURNING_BUSH
| ABIL_REMOVE_CURSE
| ABIL_MAX_ZOTDEF
| NUM_ABILITIES
instance Enum Crawl_ability_type where
fromEnum ABIL_NON_ABILITY = (-1)
fromEnum ABIL_SPIT_POISON = 1
fromEnum ABIL_BREATHE_FIRE = 2
fromEnum ABIL_BREATHE_FROST = 3
fromEnum ABIL_BREATHE_POISON = 4
fromEnum ABIL_BREATHE_LIGHTNING = 5
fromEnum ABIL_BREATHE_POWER = 6
fromEnum ABIL_BREATHE_STICKY_FLAME = 7
fromEnum ABIL_BREATHE_STEAM = 8
fromEnum ABIL_BREATHE_MEPHITIC = 9
fromEnum ABIL_SPIT_ACID = 10
fromEnum ABIL_BLINK = 11
fromEnum ABIL_DELAYED_FIREBALL = 12
fromEnum ABIL_END_TRANSFORMATION = 13
fromEnum ABIL_HELLFIRE = 14
fromEnum ABIL_FLY = 15
fromEnum ABIL_FLY_II = 16
fromEnum ABIL_STOP_FLYING = 17
fromEnum ABIL_MUMMY_RESTORATION = 18
fromEnum ABIL_TRAN_BAT = 19
fromEnum ABIL_BOTTLE_BLOOD = 20
fromEnum ABIL_RECHARGING = 21
fromEnum ABIL_MAX_INTRINSIC = 21
fromEnum ABIL_EVOKE_BERSERK = 40
fromEnum ABIL_MIN_EVOKE = 40
fromEnum ABIL_EVOKE_TELEPORTATION = 41
fromEnum ABIL_EVOKE_BLINK = 42
fromEnum ABIL_EVOKE_TURN_INVISIBLE = 43
fromEnum ABIL_EVOKE_TURN_VISIBLE = 44
fromEnum ABIL_EVOKE_FLIGHT = 45
fromEnum ABIL_EVOKE_STOP_LEVITATING = 46
fromEnum ABIL_EVOKE_FOG = 47
fromEnum ABIL_MAX_EVOKE = 47
fromEnum ABIL_ZIN_SUSTENANCE = 50
fromEnum ABIL_ZIN_RECITE = 51
fromEnum ABIL_ZIN_VITALISATION = 52
fromEnum ABIL_ZIN_IMPRISON = 53
fromEnum ABIL_ZIN_SANCTUARY = 54
fromEnum ABIL_ZIN_CURE_ALL_MUTATIONS = 55
fromEnum ABIL_TSO_DIVINE_SHIELD = 60
fromEnum ABIL_TSO_CLEANSING_FLAME = 61
fromEnum ABIL_TSO_SUMMON_DIVINE_WARRIOR = 62
fromEnum ABIL_KIKU_RECEIVE_CORPSES = 70
fromEnum ABIL_KIKU_TORMENT = 71
fromEnum ABIL_YRED_INJURY_MIRROR = 80
fromEnum ABIL_YRED_ANIMATE_REMAINS = 81
fromEnum ABIL_YRED_RECALL_UNDEAD_SLAVES = 82
fromEnum ABIL_YRED_ANIMATE_DEAD = 83
fromEnum ABIL_YRED_DRAIN_LIFE = 84
fromEnum ABIL_YRED_ENSLAVE_SOUL = 85
fromEnum ABIL_YRED_ANIMATE_REMAINS_OR_DEAD = 86
fromEnum ABIL_OKAWARU_HEROISM = 100
fromEnum ABIL_OKAWARU_FINESSE = 101
fromEnum ABIL_MAKHLEB_MINOR_DESTRUCTION = 110
fromEnum ABIL_MAKHLEB_LESSER_SERVANT_OF_MAKHLEB = 111
fromEnum ABIL_MAKHLEB_MAJOR_DESTRUCTION = 112
fromEnum ABIL_MAKHLEB_GREATER_SERVANT_OF_MAKHLEB = 113
fromEnum ABIL_SIF_MUNA_CHANNEL_ENERGY = 120
fromEnum ABIL_SIF_MUNA_FORGET_SPELL = 121
fromEnum ABIL_TROG_BURN_SPELLBOOKS = 130
fromEnum ABIL_TROG_BERSERK = 131
fromEnum ABIL_TROG_REGEN_MR = 132
fromEnum ABIL_TROG_BROTHERS_IN_ARMS = 133
fromEnum ABIL_ELYVILON_LIFESAVING = 140
fromEnum ABIL_ELYVILON_LESSER_HEALING_SELF = 141
fromEnum ABIL_ELYVILON_LESSER_HEALING_OTHERS = 142
fromEnum ABIL_ELYVILON_PURIFICATION = 143
fromEnum ABIL_ELYVILON_GREATER_HEALING_SELF = 144
fromEnum ABIL_ELYVILON_GREATER_HEALING_OTHERS = 145
fromEnum ABIL_ELYVILON_DIVINE_VIGOUR = 146
fromEnum ABIL_LUGONU_ABYSS_EXIT = 150
fromEnum ABIL_LUGONU_BEND_SPACE = 151
fromEnum ABIL_LUGONU_BANISH = 152
fromEnum ABIL_LUGONU_CORRUPT = 153
fromEnum ABIL_LUGONU_ABYSS_ENTER = 154
fromEnum ABIL_NEMELEX_DRAW_ONE = 160
fromEnum ABIL_NEMELEX_PEEK_TWO = 161
fromEnum ABIL_NEMELEX_TRIPLE_DRAW = 162
fromEnum ABIL_NEMELEX_DEAL_FOUR = 163
fromEnum ABIL_NEMELEX_STACK_FIVE = 164
fromEnum ABIL_BEOGH_SMITING = 170
fromEnum ABIL_BEOGH_RECALL_ORCISH_FOLLOWERS = 171
fromEnum ABIL_JIYVA_CALL_JELLY = 180
fromEnum ABIL_JIYVA_JELLY_PARALYSE = 181
fromEnum ABIL_JIYVA_SLIMIFY = 182
fromEnum ABIL_JIYVA_CURE_BAD_MUTATION = 183
fromEnum ABIL_FEDHAS_SUNLIGHT = 190
fromEnum ABIL_FEDHAS_RAIN = 191
fromEnum ABIL_FEDHAS_PLANT_RING = 192
fromEnum ABIL_FEDHAS_SPAWN_SPORES = 193
fromEnum ABIL_FEDHAS_EVOLUTION = 194
fromEnum ABIL_CHEIBRIADOS_TIME_STEP = 201
fromEnum ABIL_CHEIBRIADOS_TIME_BEND = 202
fromEnum ABIL_CHEIBRIADOS_SLOUCH = 203
fromEnum ABIL_CHEIBRIADOS_DISTORTION = 204
fromEnum ABIL_ASHENZARI_SCRYING = 210
fromEnum ABIL_ASHENZARI_TRANSFER_KNOWLEDGE = 211
fromEnum ABIL_ASHENZARI_END_TRANSFER = 212
fromEnum ABIL_RENOUNCE_RELIGION = 213
fromEnum ABIL_MAKE_FUNGUS = 230
fromEnum ABIL_MIN_ZOTDEF = 230
fromEnum ABIL_MAKE_PLANT = 231
fromEnum ABIL_MAKE_OKLOB_SAPLING = 232
fromEnum ABIL_MAKE_DART_TRAP = 233
fromEnum ABIL_MAKE_ICE_STATUE = 234
fromEnum ABIL_MAKE_OCS = 235
fromEnum ABIL_MAKE_SILVER_STATUE = 236
fromEnum ABIL_MAKE_CURSE_SKULL = 237
fromEnum ABIL_MAKE_TELEPORT = 238
fromEnum ABIL_MAKE_ARROW_TRAP = 239
fromEnum ABIL_MAKE_BOLT_TRAP = 240
fromEnum ABIL_MAKE_SPEAR_TRAP = 241
fromEnum ABIL_MAKE_NEEDLE_TRAP = 242
fromEnum ABIL_MAKE_NET_TRAP = 243
fromEnum ABIL_MAKE_TELEPORT_TRAP = 244
fromEnum ABIL_MAKE_ALARM_TRAP = 245
fromEnum ABIL_MAKE_BLADE_TRAP = 246
fromEnum ABIL_MAKE_OKLOB_CIRCLE = 247
fromEnum ABIL_MAKE_ACQUIRE_GOLD = 248
fromEnum ABIL_MAKE_ACQUIREMENT = 249
fromEnum ABIL_MAKE_WATER = 250
fromEnum ABIL_MAKE_LIGHTNING_SPIRE = 251
fromEnum ABIL_MAKE_BAZAAR = 252
fromEnum ABIL_MAKE_ALTAR = 253
fromEnum ABIL_MAKE_GRENADES = 254
fromEnum ABIL_MAKE_SAGE = 255
fromEnum ABIL_MAKE_OKLOB_PLANT = 256
fromEnum ABIL_MAKE_BURNING_BUSH = 257
fromEnum ABIL_REMOVE_CURSE = 258
fromEnum ABIL_MAX_ZOTDEF = 258
fromEnum NUM_ABILITIES = 259
toEnum (-1) = ABIL_NON_ABILITY
toEnum 1 = ABIL_SPIT_POISON
toEnum 2 = ABIL_BREATHE_FIRE
toEnum 3 = ABIL_BREATHE_FROST
toEnum 4 = ABIL_BREATHE_POISON
toEnum 5 = ABIL_BREATHE_LIGHTNING
toEnum 6 = ABIL_BREATHE_POWER
toEnum 7 = ABIL_BREATHE_STICKY_FLAME
toEnum 8 = ABIL_BREATHE_STEAM
toEnum 9 = ABIL_BREATHE_MEPHITIC
toEnum 10 = ABIL_SPIT_ACID
toEnum 11 = ABIL_BLINK
toEnum 12 = ABIL_DELAYED_FIREBALL
toEnum 13 = ABIL_END_TRANSFORMATION
toEnum 14 = ABIL_HELLFIRE
toEnum 15 = ABIL_FLY
toEnum 16 = ABIL_FLY_II
toEnum 17 = ABIL_STOP_FLYING
toEnum 18 = ABIL_MUMMY_RESTORATION
toEnum 19 = ABIL_TRAN_BAT
toEnum 20 = ABIL_BOTTLE_BLOOD
toEnum 21 = ABIL_RECHARGING
toEnum 21 = ABIL_MAX_INTRINSIC
toEnum 40 = ABIL_EVOKE_BERSERK
toEnum 40 = ABIL_MIN_EVOKE
toEnum 41 = ABIL_EVOKE_TELEPORTATION
toEnum 42 = ABIL_EVOKE_BLINK
toEnum 43 = ABIL_EVOKE_TURN_INVISIBLE
toEnum 44 = ABIL_EVOKE_TURN_VISIBLE
toEnum 45 = ABIL_EVOKE_FLIGHT
toEnum 46 = ABIL_EVOKE_STOP_LEVITATING
toEnum 47 = ABIL_EVOKE_FOG
toEnum 47 = ABIL_MAX_EVOKE
toEnum 50 = ABIL_ZIN_SUSTENANCE
toEnum 51 = ABIL_ZIN_RECITE
toEnum 52 = ABIL_ZIN_VITALISATION
toEnum 53 = ABIL_ZIN_IMPRISON
toEnum 54 = ABIL_ZIN_SANCTUARY
toEnum 55 = ABIL_ZIN_CURE_ALL_MUTATIONS
toEnum 60 = ABIL_TSO_DIVINE_SHIELD
toEnum 61 = ABIL_TSO_CLEANSING_FLAME
toEnum 62 = ABIL_TSO_SUMMON_DIVINE_WARRIOR
toEnum 70 = ABIL_KIKU_RECEIVE_CORPSES
toEnum 71 = ABIL_KIKU_TORMENT
toEnum 80 = ABIL_YRED_INJURY_MIRROR
toEnum 81 = ABIL_YRED_ANIMATE_REMAINS
toEnum 82 = ABIL_YRED_RECALL_UNDEAD_SLAVES
toEnum 83 = ABIL_YRED_ANIMATE_DEAD
toEnum 84 = ABIL_YRED_DRAIN_LIFE
toEnum 85 = ABIL_YRED_ENSLAVE_SOUL
toEnum 86 = ABIL_YRED_ANIMATE_REMAINS_OR_DEAD
toEnum 100 = ABIL_OKAWARU_HEROISM
toEnum 101 = ABIL_OKAWARU_FINESSE
toEnum 110 = ABIL_MAKHLEB_MINOR_DESTRUCTION
toEnum 111 = ABIL_MAKHLEB_LESSER_SERVANT_OF_MAKHLEB
toEnum 112 = ABIL_MAKHLEB_MAJOR_DESTRUCTION
toEnum 113 = ABIL_MAKHLEB_GREATER_SERVANT_OF_MAKHLEB
toEnum 120 = ABIL_SIF_MUNA_CHANNEL_ENERGY
toEnum 121 = ABIL_SIF_MUNA_FORGET_SPELL
toEnum 130 = ABIL_TROG_BURN_SPELLBOOKS
toEnum 131 = ABIL_TROG_BERSERK
toEnum 132 = ABIL_TROG_REGEN_MR
toEnum 133 = ABIL_TROG_BROTHERS_IN_ARMS
toEnum 140 = ABIL_ELYVILON_LIFESAVING
toEnum 141 = ABIL_ELYVILON_LESSER_HEALING_SELF
toEnum 142 = ABIL_ELYVILON_LESSER_HEALING_OTHERS
toEnum 143 = ABIL_ELYVILON_PURIFICATION
toEnum 144 = ABIL_ELYVILON_GREATER_HEALING_SELF
toEnum 145 = ABIL_ELYVILON_GREATER_HEALING_OTHERS
toEnum 146 = ABIL_ELYVILON_DIVINE_VIGOUR
toEnum 150 = ABIL_LUGONU_ABYSS_EXIT
toEnum 151 = ABIL_LUGONU_BEND_SPACE
toEnum 152 = ABIL_LUGONU_BANISH
toEnum 153 = ABIL_LUGONU_CORRUPT
toEnum 154 = ABIL_LUGONU_ABYSS_ENTER
toEnum 160 = ABIL_NEMELEX_DRAW_ONE
toEnum 161 = ABIL_NEMELEX_PEEK_TWO
toEnum 162 = ABIL_NEMELEX_TRIPLE_DRAW
toEnum 163 = ABIL_NEMELEX_DEAL_FOUR
toEnum 164 = ABIL_NEMELEX_STACK_FIVE
toEnum 170 = ABIL_BEOGH_SMITING
toEnum 171 = ABIL_BEOGH_RECALL_ORCISH_FOLLOWERS
toEnum 180 = ABIL_JIYVA_CALL_JELLY
toEnum 181 = ABIL_JIYVA_JELLY_PARALYSE
toEnum 182 = ABIL_JIYVA_SLIMIFY
toEnum 183 = ABIL_JIYVA_CURE_BAD_MUTATION
toEnum 190 = ABIL_FEDHAS_SUNLIGHT
toEnum 191 = ABIL_FEDHAS_RAIN
toEnum 192 = ABIL_FEDHAS_PLANT_RING
toEnum 193 = ABIL_FEDHAS_SPAWN_SPORES
toEnum 194 = ABIL_FEDHAS_EVOLUTION
toEnum 201 = ABIL_CHEIBRIADOS_TIME_STEP
toEnum 202 = ABIL_CHEIBRIADOS_TIME_BEND
toEnum 203 = ABIL_CHEIBRIADOS_SLOUCH
toEnum 204 = ABIL_CHEIBRIADOS_DISTORTION
toEnum 210 = ABIL_ASHENZARI_SCRYING
toEnum 211 = ABIL_ASHENZARI_TRANSFER_KNOWLEDGE
toEnum 212 = ABIL_ASHENZARI_END_TRANSFER
toEnum 213 = ABIL_RENOUNCE_RELIGION
toEnum 230 = ABIL_MAKE_FUNGUS
toEnum 230 = ABIL_MIN_ZOTDEF
toEnum 231 = ABIL_MAKE_PLANT
toEnum 232 = ABIL_MAKE_OKLOB_SAPLING
toEnum 233 = ABIL_MAKE_DART_TRAP
toEnum 234 = ABIL_MAKE_ICE_STATUE
toEnum 235 = ABIL_MAKE_OCS
toEnum 236 = ABIL_MAKE_SILVER_STATUE
toEnum 237 = ABIL_MAKE_CURSE_SKULL
toEnum 238 = ABIL_MAKE_TELEPORT
toEnum 239 = ABIL_MAKE_ARROW_TRAP
toEnum 240 = ABIL_MAKE_BOLT_TRAP
toEnum 241 = ABIL_MAKE_SPEAR_TRAP
toEnum 242 = ABIL_MAKE_NEEDLE_TRAP
toEnum 243 = ABIL_MAKE_NET_TRAP
toEnum 244 = ABIL_MAKE_TELEPORT_TRAP
toEnum 245 = ABIL_MAKE_ALARM_TRAP
toEnum 246 = ABIL_MAKE_BLADE_TRAP
toEnum 247 = ABIL_MAKE_OKLOB_CIRCLE
toEnum 248 = ABIL_MAKE_ACQUIRE_GOLD
toEnum 249 = ABIL_MAKE_ACQUIREMENT
toEnum 250 = ABIL_MAKE_WATER
toEnum 251 = ABIL_MAKE_LIGHTNING_SPIRE
toEnum 252 = ABIL_MAKE_BAZAAR
toEnum 253 = ABIL_MAKE_ALTAR
toEnum 254 = ABIL_MAKE_GRENADES
toEnum 255 = ABIL_MAKE_SAGE
toEnum 256 = ABIL_MAKE_OKLOB_PLANT
toEnum 257 = ABIL_MAKE_BURNING_BUSH
toEnum 258 = ABIL_REMOVE_CURSE
toEnum 258 = ABIL_MAX_ZOTDEF
toEnum 259 = NUM_ABILITIES
toEnum unmatched = error ("Crawl_ability_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 28 "enums.chs" #-}
data Crawl_ac_type = AC_NONE
| AC_NORMAL
| AC_HALF
| AC_TRIPLE
| AC_PROPORTIONAL
instance Enum Crawl_ac_type where
fromEnum AC_NONE = 0
fromEnum AC_NORMAL = 1
fromEnum AC_HALF = 2
fromEnum AC_TRIPLE = 3
fromEnum AC_PROPORTIONAL = 4
toEnum 0 = AC_NONE
toEnum 1 = AC_NORMAL
toEnum 2 = AC_HALF
toEnum 3 = AC_TRIPLE
toEnum 4 = AC_PROPORTIONAL
toEnum unmatched = error ("Crawl_ac_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 29 "enums.chs" #-}
data Crawl_action = ACT_EXECUTE
| ACT_EXAMINE
| ACT_MISC
| ACT_NUM
instance Enum Crawl_action where
fromEnum ACT_EXECUTE = 0
fromEnum ACT_EXAMINE = 1
fromEnum ACT_MISC = 2
fromEnum ACT_NUM = 3
toEnum 0 = ACT_EXECUTE
toEnum 1 = ACT_EXAMINE
toEnum 2 = ACT_MISC
toEnum 3 = ACT_NUM
toEnum unmatched = error ("Crawl_action.toEnum: Cannot match " ++ show unmatched)
{-# LINE 30 "enums.chs" #-}
data Crawl_activity_interrupt_payload_type = AIP_NONE
| AIP_INT
| AIP_STRING
| AIP_MONSTER
| AIP_HP_LOSS
instance Enum Crawl_activity_interrupt_payload_type where
fromEnum AIP_NONE = 0
fromEnum AIP_INT = 1
fromEnum AIP_STRING = 2
fromEnum AIP_MONSTER = 3
fromEnum AIP_HP_LOSS = 4
toEnum 0 = AIP_NONE
toEnum 1 = AIP_INT
toEnum 2 = AIP_STRING
toEnum 3 = AIP_MONSTER
toEnum 4 = AIP_HP_LOSS
toEnum unmatched = error ("Crawl_activity_interrupt_payload_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 31 "enums.chs" #-}
data Crawl_activity_interrupt_type = AI_FORCE_INTERRUPT
| AI_KEYPRESS
| AI_FULL_HP
| AI_FULL_MP
| AI_STATUE
| AI_HUNGRY
| AI_MESSAGE
| AI_HP_LOSS
| AI_BURDEN_CHANGE
| AI_STAT_CHANGE
| AI_SEE_MONSTER
| AI_MONSTER_ATTACKS
| AI_TELEPORT
| AI_HIT_MONSTER
| AI_SENSE_MONSTER
| NUM_AINTERRUPTS
instance Enum Crawl_activity_interrupt_type where
fromEnum AI_FORCE_INTERRUPT = 0
fromEnum AI_KEYPRESS = 1
fromEnum AI_FULL_HP = 2
fromEnum AI_FULL_MP = 3
fromEnum AI_STATUE = 4
fromEnum AI_HUNGRY = 5
fromEnum AI_MESSAGE = 6
fromEnum AI_HP_LOSS = 7
fromEnum AI_BURDEN_CHANGE = 8
fromEnum AI_STAT_CHANGE = 9
fromEnum AI_SEE_MONSTER = 10
fromEnum AI_MONSTER_ATTACKS = 11
fromEnum AI_TELEPORT = 12
fromEnum AI_HIT_MONSTER = 13
fromEnum AI_SENSE_MONSTER = 14
fromEnum NUM_AINTERRUPTS = 15
toEnum 0 = AI_FORCE_INTERRUPT
toEnum 1 = AI_KEYPRESS
toEnum 2 = AI_FULL_HP
toEnum 3 = AI_FULL_MP
toEnum 4 = AI_STATUE
toEnum 5 = AI_HUNGRY
toEnum 6 = AI_MESSAGE
toEnum 7 = AI_HP_LOSS
toEnum 8 = AI_BURDEN_CHANGE
toEnum 9 = AI_STAT_CHANGE
toEnum 10 = AI_SEE_MONSTER
toEnum 11 = AI_MONSTER_ATTACKS
toEnum 12 = AI_TELEPORT
toEnum 13 = AI_HIT_MONSTER
toEnum 14 = AI_SENSE_MONSTER
toEnum 15 = NUM_AINTERRUPTS
toEnum unmatched = error ("Crawl_activity_interrupt_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 32 "enums.chs" #-}
data Crawl_actor_type = ACT_NONE
| ACT_PLAYER
| ACT_MONSTER
instance Enum Crawl_actor_type where
fromEnum ACT_NONE = (-1)
fromEnum ACT_PLAYER = 0
fromEnum ACT_MONSTER = 1
toEnum (-1) = ACT_NONE
toEnum 0 = ACT_PLAYER
toEnum 1 = ACT_MONSTER
toEnum unmatched = error ("Crawl_actor_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 33 "enums.chs" #-}
data Crawl_aff_type = AFF_TRACER
| AFF_NO
| AFF_MAYBE
| AFF_YES
instance Enum Crawl_aff_type where
fromEnum AFF_TRACER = (-1)
fromEnum AFF_NO = 0
fromEnum AFF_MAYBE = 1
fromEnum AFF_YES = 2
toEnum (-1) = AFF_TRACER
toEnum 0 = AFF_NO
toEnum 1 = AFF_MAYBE
toEnum 2 = AFF_YES
toEnum unmatched = error ("Crawl_aff_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 34 "enums.chs" #-}
data Crawl_ammo_t = AMMO_THROW
| AMMO_BOW
| AMMO_SLING
| AMMO_CROSSBOW
| AMMO_BLOWGUN
| NUM_AMMO
instance Enum Crawl_ammo_t where
fromEnum AMMO_THROW = 0
fromEnum AMMO_BOW = 1
fromEnum AMMO_SLING = 2
fromEnum AMMO_CROSSBOW = 3
fromEnum AMMO_BLOWGUN = 4
fromEnum NUM_AMMO = 5
toEnum 0 = AMMO_THROW
toEnum 1 = AMMO_BOW
toEnum 2 = AMMO_SLING
toEnum 3 = AMMO_CROSSBOW
toEnum 4 = AMMO_BLOWGUN
toEnum 5 = NUM_AMMO
toEnum unmatched = error ("Crawl_ammo_t.toEnum: Cannot match " ++ show unmatched)
{-# LINE 35 "enums.chs" #-}
data Crawl_area_centre_type = AREA_NONE
| AREA_SANCTUARY
| AREA_SILENCE
| AREA_HALO
| AREA_LIQUID
| AREA_ORB
| AREA_UMBRA
| AREA_SUPPRESSION
| AREA_QUAD
| AREA_DISJUNCTION
instance Enum Crawl_area_centre_type where
fromEnum AREA_NONE = 0
fromEnum AREA_SANCTUARY = 1
fromEnum AREA_SILENCE = 2
fromEnum AREA_HALO = 3
fromEnum AREA_LIQUID = 4
fromEnum AREA_ORB = 5
fromEnum AREA_UMBRA = 6
fromEnum AREA_SUPPRESSION = 7
fromEnum AREA_QUAD = 8
fromEnum AREA_DISJUNCTION = 9
toEnum 0 = AREA_NONE
toEnum 1 = AREA_SANCTUARY
toEnum 2 = AREA_SILENCE
toEnum 3 = AREA_HALO
toEnum 4 = AREA_LIQUID
toEnum 5 = AREA_ORB
toEnum 6 = AREA_UMBRA
toEnum 7 = AREA_SUPPRESSION
toEnum 8 = AREA_QUAD
toEnum 9 = AREA_DISJUNCTION
toEnum unmatched = error ("Crawl_area_centre_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 36 "enums.chs" #-}
data Crawl_areaprop_flag = APROP_SANCTUARY_1
| APROP_SANCTUARY_2
| APROP_SILENCE
| APROP_HALO
| APROP_LIQUID
| APROP_ACTUAL_LIQUID
| APROP_ORB
| APROP_UMBRA
| APROP_SUPPRESSION
| APROP_QUAD
| APROP_DISJUNCTION
instance Enum Crawl_areaprop_flag where
fromEnum APROP_SANCTUARY_1 = 1
fromEnum APROP_SANCTUARY_2 = 2
fromEnum APROP_SILENCE = 4
fromEnum APROP_HALO = 8
fromEnum APROP_LIQUID = 16
fromEnum APROP_ACTUAL_LIQUID = 32
fromEnum APROP_ORB = 64
fromEnum APROP_UMBRA = 128
fromEnum APROP_SUPPRESSION = 256
fromEnum APROP_QUAD = 512
fromEnum APROP_DISJUNCTION = 1024
toEnum 1 = APROP_SANCTUARY_1
toEnum 2 = APROP_SANCTUARY_2
toEnum 4 = APROP_SILENCE
toEnum 8 = APROP_HALO
toEnum 16 = APROP_LIQUID
toEnum 32 = APROP_ACTUAL_LIQUID
toEnum 64 = APROP_ORB
toEnum 128 = APROP_UMBRA
toEnum 256 = APROP_SUPPRESSION
toEnum 512 = APROP_QUAD
toEnum 1024 = APROP_DISJUNCTION
toEnum unmatched = error ("Crawl_areaprop_flag.toEnum: Cannot match " ++ show unmatched)
{-# LINE 37 "enums.chs" #-}
data Crawl_armour_property_type = PARM_AC
| PARM_EVASION
instance Enum Crawl_armour_property_type where
fromEnum PARM_AC = 0
fromEnum PARM_EVASION = 1
toEnum 0 = PARM_AC
toEnum 1 = PARM_EVASION
toEnum unmatched = error ("Crawl_armour_property_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 38 "enums.chs" #-}
data Crawl_armour_type = ARM_ROBE
| ARM_LEATHER_ARMOUR
| ARM_RING_MAIL
| ARM_SCALE_MAIL
| ARM_CHAIN_MAIL
| ARM_SPLINT_MAIL
| ARM_PLATE_ARMOUR
| ARM_CLOAK
| ARM_CAP
| ARM_WIZARD_HAT
| ARM_HELMET
| ARM_GLOVES
| ARM_BOOTS
| ARM_BUCKLER
| ARM_SHIELD
| ARM_LARGE_SHIELD
| ARM_MAX_RACIAL
| ARM_CRYSTAL_PLATE_ARMOUR
| ARM_MIN_UNBRANDED
| ARM_ANIMAL_SKIN
| ARM_TROLL_HIDE
| ARM_TROLL_LEATHER_ARMOUR
| ARM_FIRE_DRAGON_HIDE
| ARM_FIRE_DRAGON_ARMOUR
| ARM_ICE_DRAGON_HIDE
| ARM_ICE_DRAGON_ARMOUR
| ARM_STEAM_DRAGON_HIDE
| ARM_STEAM_DRAGON_ARMOUR
| ARM_MOTTLED_DRAGON_HIDE
| ARM_MOTTLED_DRAGON_ARMOUR
| ARM_STORM_DRAGON_HIDE
| ARM_STORM_DRAGON_ARMOUR
| ARM_GOLD_DRAGON_HIDE
| ARM_GOLD_DRAGON_ARMOUR
| ARM_SWAMP_DRAGON_HIDE
| ARM_SWAMP_DRAGON_ARMOUR
| ARM_PEARL_DRAGON_HIDE
| ARM_PEARL_DRAGON_ARMOUR
| ARM_MAX_UNBRANDED
| ARM_CENTAUR_BARDING
| ARM_NAGA_BARDING
| NUM_ARMOURS
instance Enum Crawl_armour_type where
fromEnum ARM_ROBE = 0
fromEnum ARM_LEATHER_ARMOUR = 1
fromEnum ARM_RING_MAIL = 2
fromEnum ARM_SCALE_MAIL = 3
fromEnum ARM_CHAIN_MAIL = 4
fromEnum ARM_SPLINT_MAIL = 5
fromEnum ARM_PLATE_ARMOUR = 6
fromEnum ARM_CLOAK = 7
fromEnum ARM_CAP = 8
fromEnum ARM_WIZARD_HAT = 9
fromEnum ARM_HELMET = 10
fromEnum ARM_GLOVES = 11
fromEnum ARM_BOOTS = 12
fromEnum ARM_BUCKLER = 13
fromEnum ARM_SHIELD = 14
fromEnum ARM_LARGE_SHIELD = 15
fromEnum ARM_MAX_RACIAL = 15
fromEnum ARM_CRYSTAL_PLATE_ARMOUR = 16
fromEnum ARM_MIN_UNBRANDED = 16
fromEnum ARM_ANIMAL_SKIN = 17
fromEnum ARM_TROLL_HIDE = 18
fromEnum ARM_TROLL_LEATHER_ARMOUR = 19
fromEnum ARM_FIRE_DRAGON_HIDE = 20
fromEnum ARM_FIRE_DRAGON_ARMOUR = 21
fromEnum ARM_ICE_DRAGON_HIDE = 22
fromEnum ARM_ICE_DRAGON_ARMOUR = 23
fromEnum ARM_STEAM_DRAGON_HIDE = 24
fromEnum ARM_STEAM_DRAGON_ARMOUR = 25
fromEnum ARM_MOTTLED_DRAGON_HIDE = 26
fromEnum ARM_MOTTLED_DRAGON_ARMOUR = 27
fromEnum ARM_STORM_DRAGON_HIDE = 28
fromEnum ARM_STORM_DRAGON_ARMOUR = 29
fromEnum ARM_GOLD_DRAGON_HIDE = 30
fromEnum ARM_GOLD_DRAGON_ARMOUR = 31
fromEnum ARM_SWAMP_DRAGON_HIDE = 32
fromEnum ARM_SWAMP_DRAGON_ARMOUR = 33
fromEnum ARM_PEARL_DRAGON_HIDE = 34
fromEnum ARM_PEARL_DRAGON_ARMOUR = 35
fromEnum ARM_MAX_UNBRANDED = 35
fromEnum ARM_CENTAUR_BARDING = 36
fromEnum ARM_NAGA_BARDING = 37
fromEnum NUM_ARMOURS = 38
toEnum 0 = ARM_ROBE
toEnum 1 = ARM_LEATHER_ARMOUR
toEnum 2 = ARM_RING_MAIL
toEnum 3 = ARM_SCALE_MAIL
toEnum 4 = ARM_CHAIN_MAIL
toEnum 5 = ARM_SPLINT_MAIL
toEnum 6 = ARM_PLATE_ARMOUR
toEnum 7 = ARM_CLOAK
toEnum 8 = ARM_CAP
toEnum 9 = ARM_WIZARD_HAT
toEnum 10 = ARM_HELMET
toEnum 11 = ARM_GLOVES
toEnum 12 = ARM_BOOTS
toEnum 13 = ARM_BUCKLER
toEnum 14 = ARM_SHIELD
toEnum 15 = ARM_LARGE_SHIELD
toEnum 15 = ARM_MAX_RACIAL
toEnum 16 = ARM_CRYSTAL_PLATE_ARMOUR
toEnum 16 = ARM_MIN_UNBRANDED
toEnum 17 = ARM_ANIMAL_SKIN
toEnum 18 = ARM_TROLL_HIDE
toEnum 19 = ARM_TROLL_LEATHER_ARMOUR
toEnum 20 = ARM_FIRE_DRAGON_HIDE
toEnum 21 = ARM_FIRE_DRAGON_ARMOUR
toEnum 22 = ARM_ICE_DRAGON_HIDE
toEnum 23 = ARM_ICE_DRAGON_ARMOUR
toEnum 24 = ARM_STEAM_DRAGON_HIDE
toEnum 25 = ARM_STEAM_DRAGON_ARMOUR
toEnum 26 = ARM_MOTTLED_DRAGON_HIDE
toEnum 27 = ARM_MOTTLED_DRAGON_ARMOUR
toEnum 28 = ARM_STORM_DRAGON_HIDE
toEnum 29 = ARM_STORM_DRAGON_ARMOUR
toEnum 30 = ARM_GOLD_DRAGON_HIDE
toEnum 31 = ARM_GOLD_DRAGON_ARMOUR
toEnum 32 = ARM_SWAMP_DRAGON_HIDE
toEnum 33 = ARM_SWAMP_DRAGON_ARMOUR
toEnum 34 = ARM_PEARL_DRAGON_HIDE
toEnum 35 = ARM_PEARL_DRAGON_ARMOUR
toEnum 35 = ARM_MAX_UNBRANDED
toEnum 36 = ARM_CENTAUR_BARDING
toEnum 37 = ARM_NAGA_BARDING
toEnum 38 = NUM_ARMOURS
toEnum unmatched = error ("Crawl_armour_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 39 "enums.chs" #-}
data Crawl_artefact_prop_type = ARTP_BRAND
| ARTP_AC
| ARTP_EVASION
| ARTP_STRENGTH
| ARTP_INTELLIGENCE
| ARTP_DEXTERITY
| ARTP_FIRE
| ARTP_COLD
| ARTP_ELECTRICITY
| ARTP_POISON
| ARTP_NEGATIVE_ENERGY
| ARTP_MAGIC
| ARTP_EYESIGHT
| ARTP_INVISIBLE
| ARTP_FLY
| ARTP_BLINK
| ARTP_BERSERK
| ARTP_NOISES
| ARTP_PREVENT_SPELLCASTING
| ARTP_CAUSE_TELEPORTATION
| ARTP_PREVENT_TELEPORTATION
| ARTP_ANGRY
| ARTP_METABOLISM
| ARTP_MUTAGENIC
| ARTP_ACCURACY
| ARTP_DAMAGE
| ARTP_CURSED
| ARTP_STEALTH
| ARTP_MAGICAL_POWER
| ARTP_BASE_DELAY
| ARTP_HP
| ARTP_CLARITY
| ARTP_BASE_ACC
| ARTP_BASE_DAM
| ARTP_RMSL
| ARTP_FOG
| ARTP_NUM_PROPERTIES
instance Enum Crawl_artefact_prop_type where
fromEnum ARTP_BRAND = 0
fromEnum ARTP_AC = 1
fromEnum ARTP_EVASION = 2
fromEnum ARTP_STRENGTH = 3
fromEnum ARTP_INTELLIGENCE = 4
fromEnum ARTP_DEXTERITY = 5
fromEnum ARTP_FIRE = 6
fromEnum ARTP_COLD = 7
fromEnum ARTP_ELECTRICITY = 8
fromEnum ARTP_POISON = 9
fromEnum ARTP_NEGATIVE_ENERGY = 10
fromEnum ARTP_MAGIC = 11
fromEnum ARTP_EYESIGHT = 12
fromEnum ARTP_INVISIBLE = 13
fromEnum ARTP_FLY = 14
fromEnum ARTP_BLINK = 15
fromEnum ARTP_BERSERK = 16
fromEnum ARTP_NOISES = 17
fromEnum ARTP_PREVENT_SPELLCASTING = 18
fromEnum ARTP_CAUSE_TELEPORTATION = 19
fromEnum ARTP_PREVENT_TELEPORTATION = 20
fromEnum ARTP_ANGRY = 21
fromEnum ARTP_METABOLISM = 22
fromEnum ARTP_MUTAGENIC = 23
fromEnum ARTP_ACCURACY = 24
fromEnum ARTP_DAMAGE = 25
fromEnum ARTP_CURSED = 26
fromEnum ARTP_STEALTH = 27
fromEnum ARTP_MAGICAL_POWER = 28
fromEnum ARTP_BASE_DELAY = 29
fromEnum ARTP_HP = 30
fromEnum ARTP_CLARITY = 31
fromEnum ARTP_BASE_ACC = 32
fromEnum ARTP_BASE_DAM = 33
fromEnum ARTP_RMSL = 34
fromEnum ARTP_FOG = 35
fromEnum ARTP_NUM_PROPERTIES = 36
toEnum 0 = ARTP_BRAND
toEnum 1 = ARTP_AC
toEnum 2 = ARTP_EVASION
toEnum 3 = ARTP_STRENGTH
toEnum 4 = ARTP_INTELLIGENCE
toEnum 5 = ARTP_DEXTERITY
toEnum 6 = ARTP_FIRE
toEnum 7 = ARTP_COLD
toEnum 8 = ARTP_ELECTRICITY
toEnum 9 = ARTP_POISON
toEnum 10 = ARTP_NEGATIVE_ENERGY
toEnum 11 = ARTP_MAGIC
toEnum 12 = ARTP_EYESIGHT
toEnum 13 = ARTP_INVISIBLE
toEnum 14 = ARTP_FLY
toEnum 15 = ARTP_BLINK
toEnum 16 = ARTP_BERSERK
toEnum 17 = ARTP_NOISES
toEnum 18 = ARTP_PREVENT_SPELLCASTING
toEnum 19 = ARTP_CAUSE_TELEPORTATION
toEnum 20 = ARTP_PREVENT_TELEPORTATION
toEnum 21 = ARTP_ANGRY
toEnum 22 = ARTP_METABOLISM
toEnum 23 = ARTP_MUTAGENIC
toEnum 24 = ARTP_ACCURACY
toEnum 25 = ARTP_DAMAGE
toEnum 26 = ARTP_CURSED
toEnum 27 = ARTP_STEALTH
toEnum 28 = ARTP_MAGICAL_POWER
toEnum 29 = ARTP_BASE_DELAY
toEnum 30 = ARTP_HP
toEnum 31 = ARTP_CLARITY
toEnum 32 = ARTP_BASE_ACC
toEnum 33 = ARTP_BASE_DAM
toEnum 34 = ARTP_RMSL
toEnum 35 = ARTP_FOG
toEnum 36 = ARTP_NUM_PROPERTIES
toEnum unmatched = error ("Crawl_artefact_prop_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 40 "enums.chs" #-}
data Crawl_attack_flavour = AF_PLAIN
| AF_ACID
| AF_BLINK
| AF_COLD
| AF_CONFUSE
| AF_DISEASE
| AF_DRAIN_STR
| AF_DRAIN_INT
| AF_DRAIN_DEX
| AF_DRAIN_STAT
| AF_DRAIN_XP
| AF_ELEC
| AF_FIRE
| AF_HUNGER
| AF_MUTATE
| AF_PARALYSE
| AF_POISON
| AF_POISON_NASTY
| AF_POISON_MEDIUM
| AF_POISON_STRONG
| AF_POISON_STR
| AF_POISON_INT
| AF_POISON_DEX
| AF_POISON_STAT
| AF_ROT
| AF_VAMPIRIC
| AF_KLOWN
| AF_DISTORT
| AF_RAGE
| AF_NAPALM
| AF_CHAOS
| AF_STEAL
| AF_STEAL_FOOD
| AF_CRUSH
| AF_REACH
| AF_HOLY
| AF_ANTIMAGIC
| AF_PAIN
| AF_ENSNARE
instance Enum Crawl_attack_flavour where
fromEnum AF_PLAIN = 0
fromEnum AF_ACID = 1
fromEnum AF_BLINK = 2
fromEnum AF_COLD = 3
fromEnum AF_CONFUSE = 4
fromEnum AF_DISEASE = 5
fromEnum AF_DRAIN_STR = 6
fromEnum AF_DRAIN_INT = 7
fromEnum AF_DRAIN_DEX = 8
fromEnum AF_DRAIN_STAT = 9
fromEnum AF_DRAIN_XP = 10
fromEnum AF_ELEC = 11
fromEnum AF_FIRE = 12
fromEnum AF_HUNGER = 13
fromEnum AF_MUTATE = 14
fromEnum AF_PARALYSE = 15
fromEnum AF_POISON = 16
fromEnum AF_POISON_NASTY = 17
fromEnum AF_POISON_MEDIUM = 18
fromEnum AF_POISON_STRONG = 19
fromEnum AF_POISON_STR = 20
fromEnum AF_POISON_INT = 21
fromEnum AF_POISON_DEX = 22
fromEnum AF_POISON_STAT = 23
fromEnum AF_ROT = 24
fromEnum AF_VAMPIRIC = 25
fromEnum AF_KLOWN = 26
fromEnum AF_DISTORT = 27
fromEnum AF_RAGE = 28
fromEnum AF_NAPALM = 29
fromEnum AF_CHAOS = 30
fromEnum AF_STEAL = 31
fromEnum AF_STEAL_FOOD = 32
fromEnum AF_CRUSH = 33
fromEnum AF_REACH = 34
fromEnum AF_HOLY = 35
fromEnum AF_ANTIMAGIC = 36
fromEnum AF_PAIN = 37
fromEnum AF_ENSNARE = 38
toEnum 0 = AF_PLAIN
toEnum 1 = AF_ACID
toEnum 2 = AF_BLINK
toEnum 3 = AF_COLD
toEnum 4 = AF_CONFUSE
toEnum 5 = AF_DISEASE
toEnum 6 = AF_DRAIN_STR
toEnum 7 = AF_DRAIN_INT
toEnum 8 = AF_DRAIN_DEX
toEnum 9 = AF_DRAIN_STAT
toEnum 10 = AF_DRAIN_XP
toEnum 11 = AF_ELEC
toEnum 12 = AF_FIRE
toEnum 13 = AF_HUNGER
toEnum 14 = AF_MUTATE
toEnum 15 = AF_PARALYSE
toEnum 16 = AF_POISON
toEnum 17 = AF_POISON_NASTY
toEnum 18 = AF_POISON_MEDIUM
toEnum 19 = AF_POISON_STRONG
toEnum 20 = AF_POISON_STR
toEnum 21 = AF_POISON_INT
toEnum 22 = AF_POISON_DEX
toEnum 23 = AF_POISON_STAT
toEnum 24 = AF_ROT
toEnum 25 = AF_VAMPIRIC
toEnum 26 = AF_KLOWN
toEnum 27 = AF_DISTORT
toEnum 28 = AF_RAGE
toEnum 29 = AF_NAPALM
toEnum 30 = AF_CHAOS
toEnum 31 = AF_STEAL
toEnum 32 = AF_STEAL_FOOD
toEnum 33 = AF_CRUSH
toEnum 34 = AF_REACH
toEnum 35 = AF_HOLY
toEnum 36 = AF_ANTIMAGIC
toEnum 37 = AF_PAIN
toEnum 38 = AF_ENSNARE
toEnum unmatched = error ("Crawl_attack_flavour.toEnum: Cannot match " ++ show unmatched)
{-# LINE 41 "enums.chs" #-}
data Crawl_attack_type = AT_NONE
| AT_HIT
| AT_BITE
| AT_STING
| AT_SPORE
| AT_TOUCH
| AT_ENGULF
| AT_CLAW
| AT_PECK
| AT_HEADBUTT
| AT_PUNCH
| AT_KICK
| AT_TENTACLE_SLAP
| AT_TAIL_SLAP
| AT_GORE
| AT_CONSTRICT
| AT_TRAMPLE
| AT_TRUNK_SLAP
| AT_SNAP
| AT_SPLASH
| AT_POUNCE
| AT_CHERUB
| AT_SHOOT
| AT_WEAP_ONLY
| AT_RANDOM
instance Enum Crawl_attack_type where
fromEnum AT_NONE = 0
fromEnum AT_HIT = 1
fromEnum AT_BITE = 2
fromEnum AT_STING = 3
fromEnum AT_SPORE = 4
fromEnum AT_TOUCH = 5
fromEnum AT_ENGULF = 6
fromEnum AT_CLAW = 7
fromEnum AT_PECK = 8
fromEnum AT_HEADBUTT = 9
fromEnum AT_PUNCH = 10
fromEnum AT_KICK = 11
fromEnum AT_TENTACLE_SLAP = 12
fromEnum AT_TAIL_SLAP = 13
fromEnum AT_GORE = 14
fromEnum AT_CONSTRICT = 15
fromEnum AT_TRAMPLE = 16
fromEnum AT_TRUNK_SLAP = 17
fromEnum AT_SNAP = 18
fromEnum AT_SPLASH = 19
fromEnum AT_POUNCE = 20
fromEnum AT_CHERUB = 21
fromEnum AT_SHOOT = 22
fromEnum AT_WEAP_ONLY = 23
fromEnum AT_RANDOM = 24
toEnum 0 = AT_NONE
toEnum 1 = AT_HIT
toEnum 2 = AT_BITE
toEnum 3 = AT_STING
toEnum 4 = AT_SPORE
toEnum 5 = AT_TOUCH
toEnum 6 = AT_ENGULF
toEnum 7 = AT_CLAW
toEnum 8 = AT_PECK
toEnum 9 = AT_HEADBUTT
toEnum 10 = AT_PUNCH
toEnum 11 = AT_KICK
toEnum 12 = AT_TENTACLE_SLAP
toEnum 13 = AT_TAIL_SLAP
toEnum 14 = AT_GORE
toEnum 15 = AT_CONSTRICT
toEnum 16 = AT_TRAMPLE
toEnum 17 = AT_TRUNK_SLAP
toEnum 18 = AT_SNAP
toEnum 19 = AT_SPLASH
toEnum 20 = AT_POUNCE
toEnum 21 = AT_CHERUB
toEnum 22 = AT_SHOOT
toEnum 23 = AT_WEAP_ONLY
toEnum 24 = AT_RANDOM
toEnum unmatched = error ("Crawl_attack_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 42 "enums.chs" #-}
data Crawl_attribute_type = ATTR_DIVINE_LIGHTNING_PROTECTION
| ATTR_DIVINE_REGENERATION
| ATTR_DIVINE_DEATH_CHANNEL
| ATTR_CARD_COUNTDOWN
| ATTR_BANISHMENT_IMMUNITY
| ATTR_DELAYED_FIREBALL
| ATTR_HELD
| ATTR_ABYSS_ENTOURAGE
| ATTR_DIVINE_VIGOUR
| ATTR_DIVINE_STAMINA
| ATTR_DIVINE_SHIELD
| ATTR_WEAPON_SWAP_INTERRUPTED
| ATTR_GOLD_FOUND
| ATTR_PURCHASES
| ATTR_DONATIONS
| ATTR_MISC_SPENDING
| ATTR_UNUSED1
| ATTR_NOISES
| ATTR_SHADOWS
| ATTR_UNUSED2
| ATTR_FLIGHT_UNCANCELLABLE
| ATTR_INVIS_UNCANCELLABLE
| ATTR_PERM_FLIGHT
| ATTR_SEEN_INVIS_TURN
| ATTR_SEEN_INVIS_SEED
| ATTR_APPENDAGE
| ATTR_TITHE_BASE
| ATTR_EVOL_XP
| ATTR_LIFE_GAINED
| ATTR_TEMP_MUTATIONS
| NUM_ATTRIBUTES
instance Enum Crawl_attribute_type where
fromEnum ATTR_DIVINE_LIGHTNING_PROTECTION = 0
fromEnum ATTR_DIVINE_REGENERATION = 1
fromEnum ATTR_DIVINE_DEATH_CHANNEL = 2
fromEnum ATTR_CARD_COUNTDOWN = 3
fromEnum ATTR_BANISHMENT_IMMUNITY = 4
fromEnum ATTR_DELAYED_FIREBALL = 5
fromEnum ATTR_HELD = 6
fromEnum ATTR_ABYSS_ENTOURAGE = 7
fromEnum ATTR_DIVINE_VIGOUR = 8
fromEnum ATTR_DIVINE_STAMINA = 9
fromEnum ATTR_DIVINE_SHIELD = 10
fromEnum ATTR_WEAPON_SWAP_INTERRUPTED = 11
fromEnum ATTR_GOLD_FOUND = 12
fromEnum ATTR_PURCHASES = 13
fromEnum ATTR_DONATIONS = 14
fromEnum ATTR_MISC_SPENDING = 15
fromEnum ATTR_UNUSED1 = 16
fromEnum ATTR_NOISES = 17
fromEnum ATTR_SHADOWS = 18
fromEnum ATTR_UNUSED2 = 19
fromEnum ATTR_FLIGHT_UNCANCELLABLE = 20
fromEnum ATTR_INVIS_UNCANCELLABLE = 21
fromEnum ATTR_PERM_FLIGHT = 22
fromEnum ATTR_SEEN_INVIS_TURN = 23
fromEnum ATTR_SEEN_INVIS_SEED = 24
fromEnum ATTR_APPENDAGE = 25
fromEnum ATTR_TITHE_BASE = 26
fromEnum ATTR_EVOL_XP = 27
fromEnum ATTR_LIFE_GAINED = 28
fromEnum ATTR_TEMP_MUTATIONS = 29
fromEnum NUM_ATTRIBUTES = 30
toEnum 0 = ATTR_DIVINE_LIGHTNING_PROTECTION
toEnum 1 = ATTR_DIVINE_REGENERATION
toEnum 2 = ATTR_DIVINE_DEATH_CHANNEL
toEnum 3 = ATTR_CARD_COUNTDOWN
toEnum 4 = ATTR_BANISHMENT_IMMUNITY
toEnum 5 = ATTR_DELAYED_FIREBALL
toEnum 6 = ATTR_HELD
toEnum 7 = ATTR_ABYSS_ENTOURAGE
toEnum 8 = ATTR_DIVINE_VIGOUR
toEnum 9 = ATTR_DIVINE_STAMINA
toEnum 10 = ATTR_DIVINE_SHIELD
toEnum 11 = ATTR_WEAPON_SWAP_INTERRUPTED
toEnum 12 = ATTR_GOLD_FOUND
toEnum 13 = ATTR_PURCHASES
toEnum 14 = ATTR_DONATIONS
toEnum 15 = ATTR_MISC_SPENDING
toEnum 16 = ATTR_UNUSED1
toEnum 17 = ATTR_NOISES
toEnum 18 = ATTR_SHADOWS
toEnum 19 = ATTR_UNUSED2
toEnum 20 = ATTR_FLIGHT_UNCANCELLABLE
toEnum 21 = ATTR_INVIS_UNCANCELLABLE
toEnum 22 = ATTR_PERM_FLIGHT
toEnum 23 = ATTR_SEEN_INVIS_TURN
toEnum 24 = ATTR_SEEN_INVIS_SEED
toEnum 25 = ATTR_APPENDAGE
toEnum 26 = ATTR_TITHE_BASE
toEnum 27 = ATTR_EVOL_XP
toEnum 28 = ATTR_LIFE_GAINED
toEnum 29 = ATTR_TEMP_MUTATIONS
toEnum 30 = NUM_ATTRIBUTES
toEnum unmatched = error ("Crawl_attribute_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 43 "enums.chs" #-}
data Crawl_band_type = BAND_NO_BAND
| BAND_KOBOLDS
| BAND_ORCS
| BAND_ORC_WARRIOR
| BAND_ORC_KNIGHT
| BAND_KILLER_BEES
| BAND_FLYING_SKULLS
| BAND_SLIME_CREATURES
| BAND_YAKS
| BAND_UGLY_THINGS
| BAND_HELL_HOUNDS
| BAND_JACKALS
| BAND_HELL_KNIGHTS
| BAND_ORC_HIGH_PRIEST
| BAND_GNOLLS
| BAND_WIGHTS
| BAND_BUMBLEBEES
| BAND_CENTAURS
| BAND_YAKTAURS
| BAND_INSUBSTANTIAL_WISPS
| BAND_OGRE_MAGE
| BAND_DEATH_YAKS
| BAND_NECROMANCER
| BAND_BALRUG
| BAND_CACODEMON
| BAND_EXECUTIONER
| BAND_HELLWING
| BAND_DEEP_ELF_FIGHTER
| BAND_DEEP_ELF_KNIGHT
| BAND_DEEP_ELF_HIGH_PRIEST
| BAND_KOBOLD_DEMONOLOGIST
| BAND_NAGAS
| BAND_WAR_DOGS
| BAND_GREEN_RATS
| BAND_ORANGE_RATS
| BAND_SHEEP
| BAND_GHOULS
| BAND_DEEP_TROLLS
| BAND_HOGS
| BAND_HELL_HOGS
| BAND_VAMPIRE_MOSQUITOES
| BAND_FIRE_BATS
| BAND_BOGGARTS
| BAND_BLINK_FROGS
| BAND_SKELETAL_WARRIORS
| BAND_DRACONIAN
| BAND_PANDEMONIUM_LORD
| BAND_HARPIES
| BAND_ILSUIW
| BAND_AZRAEL
| BAND_DUVESSA
| BAND_KHUFU
| BAND_GOLDEN_EYE
| BAND_PIKEL
| BAND_MERFOLK_AQUAMANCER
| BAND_MERFOLK_IMPALER
| BAND_MERFOLK_JAVELINEER
| BAND_ALLIGATOR
| BAND_ELEPHANT
| BAND_DEEP_DWARF
| BAND_SHEDU
| BAND_REDBACK
| BAND_SPIDER
| BAND_JUMPING_SPIDER
| BAND_TARANTELLA
| NUM_BANDS
instance Enum Crawl_band_type where
fromEnum BAND_NO_BAND = 0
fromEnum BAND_KOBOLDS = 1
fromEnum BAND_ORCS = 2
fromEnum BAND_ORC_WARRIOR = 3
fromEnum BAND_ORC_KNIGHT = 4
fromEnum BAND_KILLER_BEES = 5
fromEnum BAND_FLYING_SKULLS = 6
fromEnum BAND_SLIME_CREATURES = 7
fromEnum BAND_YAKS = 8
fromEnum BAND_UGLY_THINGS = 9
fromEnum BAND_HELL_HOUNDS = 10
fromEnum BAND_JACKALS = 11
fromEnum BAND_HELL_KNIGHTS = 12
fromEnum BAND_ORC_HIGH_PRIEST = 13
fromEnum BAND_GNOLLS = 14
fromEnum BAND_WIGHTS = 15
fromEnum BAND_BUMBLEBEES = 16
fromEnum BAND_CENTAURS = 17
fromEnum BAND_YAKTAURS = 18
fromEnum BAND_INSUBSTANTIAL_WISPS = 19
fromEnum BAND_OGRE_MAGE = 20
fromEnum BAND_DEATH_YAKS = 21
fromEnum BAND_NECROMANCER = 22
fromEnum BAND_BALRUG = 23
fromEnum BAND_CACODEMON = 24
fromEnum BAND_EXECUTIONER = 25
fromEnum BAND_HELLWING = 26
fromEnum BAND_DEEP_ELF_FIGHTER = 27
fromEnum BAND_DEEP_ELF_KNIGHT = 28
fromEnum BAND_DEEP_ELF_HIGH_PRIEST = 29
fromEnum BAND_KOBOLD_DEMONOLOGIST = 30
fromEnum BAND_NAGAS = 31
fromEnum BAND_WAR_DOGS = 32
fromEnum BAND_GREEN_RATS = 33
fromEnum BAND_ORANGE_RATS = 34
fromEnum BAND_SHEEP = 35
fromEnum BAND_GHOULS = 36
fromEnum BAND_DEEP_TROLLS = 37
fromEnum BAND_HOGS = 38
fromEnum BAND_HELL_HOGS = 39
fromEnum BAND_VAMPIRE_MOSQUITOES = 40
fromEnum BAND_FIRE_BATS = 41
fromEnum BAND_BOGGARTS = 42
fromEnum BAND_BLINK_FROGS = 43
fromEnum BAND_SKELETAL_WARRIORS = 44
fromEnum BAND_DRACONIAN = 45
fromEnum BAND_PANDEMONIUM_LORD = 46
fromEnum BAND_HARPIES = 47
fromEnum BAND_ILSUIW = 48
fromEnum BAND_AZRAEL = 49
fromEnum BAND_DUVESSA = 50
fromEnum BAND_KHUFU = 51
fromEnum BAND_GOLDEN_EYE = 52
fromEnum BAND_PIKEL = 53
fromEnum BAND_MERFOLK_AQUAMANCER = 54
fromEnum BAND_MERFOLK_IMPALER = 55
fromEnum BAND_MERFOLK_JAVELINEER = 56
fromEnum BAND_ALLIGATOR = 57
fromEnum BAND_ELEPHANT = 58
fromEnum BAND_DEEP_DWARF = 59
fromEnum BAND_SHEDU = 60
fromEnum BAND_REDBACK = 61
fromEnum BAND_SPIDER = 62
fromEnum BAND_JUMPING_SPIDER = 63
fromEnum BAND_TARANTELLA = 64
fromEnum NUM_BANDS = 65
toEnum 0 = BAND_NO_BAND
toEnum 1 = BAND_KOBOLDS
toEnum 2 = BAND_ORCS
toEnum 3 = BAND_ORC_WARRIOR
toEnum 4 = BAND_ORC_KNIGHT
toEnum 5 = BAND_KILLER_BEES
toEnum 6 = BAND_FLYING_SKULLS
toEnum 7 = BAND_SLIME_CREATURES
toEnum 8 = BAND_YAKS
toEnum 9 = BAND_UGLY_THINGS
toEnum 10 = BAND_HELL_HOUNDS
toEnum 11 = BAND_JACKALS
toEnum 12 = BAND_HELL_KNIGHTS
toEnum 13 = BAND_ORC_HIGH_PRIEST
toEnum 14 = BAND_GNOLLS
toEnum 15 = BAND_WIGHTS
toEnum 16 = BAND_BUMBLEBEES
toEnum 17 = BAND_CENTAURS
toEnum 18 = BAND_YAKTAURS
toEnum 19 = BAND_INSUBSTANTIAL_WISPS
toEnum 20 = BAND_OGRE_MAGE
toEnum 21 = BAND_DEATH_YAKS
toEnum 22 = BAND_NECROMANCER
toEnum 23 = BAND_BALRUG
toEnum 24 = BAND_CACODEMON
toEnum 25 = BAND_EXECUTIONER
toEnum 26 = BAND_HELLWING
toEnum 27 = BAND_DEEP_ELF_FIGHTER
toEnum 28 = BAND_DEEP_ELF_KNIGHT
toEnum 29 = BAND_DEEP_ELF_HIGH_PRIEST
toEnum 30 = BAND_KOBOLD_DEMONOLOGIST
toEnum 31 = BAND_NAGAS
toEnum 32 = BAND_WAR_DOGS
toEnum 33 = BAND_GREEN_RATS
toEnum 34 = BAND_ORANGE_RATS
toEnum 35 = BAND_SHEEP
toEnum 36 = BAND_GHOULS
toEnum 37 = BAND_DEEP_TROLLS
toEnum 38 = BAND_HOGS
toEnum 39 = BAND_HELL_HOGS
toEnum 40 = BAND_VAMPIRE_MOSQUITOES
toEnum 41 = BAND_FIRE_BATS
toEnum 42 = BAND_BOGGARTS
toEnum 43 = BAND_BLINK_FROGS
toEnum 44 = BAND_SKELETAL_WARRIORS
toEnum 45 = BAND_DRACONIAN
toEnum 46 = BAND_PANDEMONIUM_LORD
toEnum 47 = BAND_HARPIES
toEnum 48 = BAND_ILSUIW
toEnum 49 = BAND_AZRAEL
toEnum 50 = BAND_DUVESSA
toEnum 51 = BAND_KHUFU
toEnum 52 = BAND_GOLDEN_EYE
toEnum 53 = BAND_PIKEL
toEnum 54 = BAND_MERFOLK_AQUAMANCER
toEnum 55 = BAND_MERFOLK_IMPALER
toEnum 56 = BAND_MERFOLK_JAVELINEER
toEnum 57 = BAND_ALLIGATOR
toEnum 58 = BAND_ELEPHANT
toEnum 59 = BAND_DEEP_DWARF
toEnum 60 = BAND_SHEDU
toEnum 61 = BAND_REDBACK
toEnum 62 = BAND_SPIDER
toEnum 63 = BAND_JUMPING_SPIDER
toEnum 64 = BAND_TARANTELLA
toEnum 65 = NUM_BANDS
toEnum unmatched = error ("Crawl_band_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 44 "enums.chs" #-}
data Crawl_beam_type = BEAM_NONE
| BEAM_MISSILE
| BEAM_MMISSILE
| BEAM_FIRE
| BEAM_COLD
| BEAM_MAGIC
| BEAM_ELECTRICITY
| BEAM_POISON
| BEAM_NEG
| BEAM_ACID
| BEAM_MIASMA
| BEAM_WATER
| BEAM_SPORE
| BEAM_POISON_ARROW
| BEAM_HELLFIRE
| BEAM_NAPALM
| BEAM_STEAM
| BEAM_ENERGY
| BEAM_HOLY
| BEAM_FRAG
| BEAM_LAVA
| BEAM_ICE
| BEAM_NUKE
| BEAM_LIGHT
| BEAM_RANDOM
| BEAM_CHAOS
| BEAM_SLOW
| BEAM_FIRST_ENCHANTMENT
| BEAM_HASTE
| BEAM_MIGHT
| BEAM_HEALING
| BEAM_PARALYSIS
| BEAM_CONFUSION
| BEAM_INVISIBILITY
| BEAM_DIGGING
| BEAM_TELEPORT
| BEAM_POLYMORPH
| BEAM_ENSLAVE
| BEAM_BANISH
| BEAM_DEGENERATE
| BEAM_ENSLAVE_SOUL
| BEAM_PAIN
| BEAM_DISPEL_UNDEAD
| BEAM_DISINTEGRATION
| BEAM_BLINK
| BEAM_BLINK_CLOSE
| BEAM_PETRIFY
| BEAM_CORONA
| BEAM_PORKALATOR
| BEAM_HIBERNATION
| BEAM_BERSERK
| BEAM_SLEEP
| BEAM_INNER_FLAME
| BEAM_LAST_ENCHANTMENT
| BEAM_POTION_MEPHITIC
| BEAM_POTION_POISON
| BEAM_POTION_MIASMA
| BEAM_POTION_STEAM
| BEAM_POTION_FIRE
| BEAM_POTION_COLD
| BEAM_POTION_BLACK_SMOKE
| BEAM_POTION_GREY_SMOKE
| BEAM_POTION_MUTAGENIC
| BEAM_POTION_BLUE_SMOKE
| BEAM_POTION_PURPLE_SMOKE
| BEAM_POTION_RAIN
| BEAM_GLOOM
| BEAM_INK
| BEAM_HOLY_FLAME
| BEAM_HOLY_LIGHT
| BEAM_POTION_RANDOM
| BEAM_AIR
| BEAM_PETRIFYING_CLOUD
| BEAM_BOLT_OF_ZIN
| BEAM_ENSNARE
| BEAM_LAST_REAL
| BEAM_VISUAL
| BEAM_TORMENT_DAMAGE
| BEAM_FIRST_PSEUDO
| BEAM_DEVOUR_FOOD
| NUM_BEAMS
instance Enum Crawl_beam_type where
fromEnum BEAM_NONE = 0
fromEnum BEAM_MISSILE = 1
fromEnum BEAM_MMISSILE = 2
fromEnum BEAM_FIRE = 3
fromEnum BEAM_COLD = 4
fromEnum BEAM_MAGIC = 5
fromEnum BEAM_ELECTRICITY = 6
fromEnum BEAM_POISON = 7
fromEnum BEAM_NEG = 8
fromEnum BEAM_ACID = 9
fromEnum BEAM_MIASMA = 10
fromEnum BEAM_WATER = 11
fromEnum BEAM_SPORE = 12
fromEnum BEAM_POISON_ARROW = 13
fromEnum BEAM_HELLFIRE = 14
fromEnum BEAM_NAPALM = 15
fromEnum BEAM_STEAM = 16
fromEnum BEAM_ENERGY = 17
fromEnum BEAM_HOLY = 18
fromEnum BEAM_FRAG = 19
fromEnum BEAM_LAVA = 20
fromEnum BEAM_ICE = 21
fromEnum BEAM_NUKE = 22
fromEnum BEAM_LIGHT = 23
fromEnum BEAM_RANDOM = 24
fromEnum BEAM_CHAOS = 25
fromEnum BEAM_SLOW = 26
fromEnum BEAM_FIRST_ENCHANTMENT = 26
fromEnum BEAM_HASTE = 27
fromEnum BEAM_MIGHT = 28
fromEnum BEAM_HEALING = 29
fromEnum BEAM_PARALYSIS = 30
fromEnum BEAM_CONFUSION = 31
fromEnum BEAM_INVISIBILITY = 32
fromEnum BEAM_DIGGING = 33
fromEnum BEAM_TELEPORT = 34
fromEnum BEAM_POLYMORPH = 35
fromEnum BEAM_ENSLAVE = 36
fromEnum BEAM_BANISH = 37
fromEnum BEAM_DEGENERATE = 38
fromEnum BEAM_ENSLAVE_SOUL = 39
fromEnum BEAM_PAIN = 40
fromEnum BEAM_DISPEL_UNDEAD = 41
fromEnum BEAM_DISINTEGRATION = 42
fromEnum BEAM_BLINK = 43
fromEnum BEAM_BLINK_CLOSE = 44
fromEnum BEAM_PETRIFY = 45
fromEnum BEAM_CORONA = 46
fromEnum BEAM_PORKALATOR = 47
fromEnum BEAM_HIBERNATION = 48
fromEnum BEAM_BERSERK = 49
fromEnum BEAM_SLEEP = 50
fromEnum BEAM_INNER_FLAME = 51
fromEnum BEAM_LAST_ENCHANTMENT = 51
fromEnum BEAM_POTION_MEPHITIC = 52
fromEnum BEAM_POTION_POISON = 53
fromEnum BEAM_POTION_MIASMA = 54
fromEnum BEAM_POTION_STEAM = 55
fromEnum BEAM_POTION_FIRE = 56
fromEnum BEAM_POTION_COLD = 57
fromEnum BEAM_POTION_BLACK_SMOKE = 58
fromEnum BEAM_POTION_GREY_SMOKE = 59
fromEnum BEAM_POTION_MUTAGENIC = 60
fromEnum BEAM_POTION_BLUE_SMOKE = 61
fromEnum BEAM_POTION_PURPLE_SMOKE = 62
fromEnum BEAM_POTION_RAIN = 63
fromEnum BEAM_GLOOM = 64
fromEnum BEAM_INK = 65
fromEnum BEAM_HOLY_FLAME = 66
fromEnum BEAM_HOLY_LIGHT = 67
fromEnum BEAM_POTION_RANDOM = 68
fromEnum BEAM_AIR = 69
fromEnum BEAM_PETRIFYING_CLOUD = 70
fromEnum BEAM_BOLT_OF_ZIN = 71
fromEnum BEAM_ENSNARE = 72
fromEnum BEAM_LAST_REAL = 72
fromEnum BEAM_VISUAL = 73
fromEnum BEAM_TORMENT_DAMAGE = 74
fromEnum BEAM_FIRST_PSEUDO = 74
fromEnum BEAM_DEVOUR_FOOD = 75
fromEnum NUM_BEAMS = 76
toEnum 0 = BEAM_NONE
toEnum 1 = BEAM_MISSILE
toEnum 2 = BEAM_MMISSILE
toEnum 3 = BEAM_FIRE
toEnum 4 = BEAM_COLD
toEnum 5 = BEAM_MAGIC
toEnum 6 = BEAM_ELECTRICITY
toEnum 7 = BEAM_POISON
toEnum 8 = BEAM_NEG
toEnum 9 = BEAM_ACID
toEnum 10 = BEAM_MIASMA
toEnum 11 = BEAM_WATER
toEnum 12 = BEAM_SPORE
toEnum 13 = BEAM_POISON_ARROW
toEnum 14 = BEAM_HELLFIRE
toEnum 15 = BEAM_NAPALM
toEnum 16 = BEAM_STEAM
toEnum 17 = BEAM_ENERGY
toEnum 18 = BEAM_HOLY
toEnum 19 = BEAM_FRAG
toEnum 20 = BEAM_LAVA
toEnum 21 = BEAM_ICE
toEnum 22 = BEAM_NUKE
toEnum 23 = BEAM_LIGHT
toEnum 24 = BEAM_RANDOM
toEnum 25 = BEAM_CHAOS
toEnum 26 = BEAM_SLOW
toEnum 26 = BEAM_FIRST_ENCHANTMENT
toEnum 27 = BEAM_HASTE
toEnum 28 = BEAM_MIGHT
toEnum 29 = BEAM_HEALING
toEnum 30 = BEAM_PARALYSIS
toEnum 31 = BEAM_CONFUSION
toEnum 32 = BEAM_INVISIBILITY
toEnum 33 = BEAM_DIGGING
toEnum 34 = BEAM_TELEPORT
toEnum 35 = BEAM_POLYMORPH
toEnum 36 = BEAM_ENSLAVE
toEnum 37 = BEAM_BANISH
toEnum 38 = BEAM_DEGENERATE
toEnum 39 = BEAM_ENSLAVE_SOUL
toEnum 40 = BEAM_PAIN
toEnum 41 = BEAM_DISPEL_UNDEAD
toEnum 42 = BEAM_DISINTEGRATION
toEnum 43 = BEAM_BLINK
toEnum 44 = BEAM_BLINK_CLOSE
toEnum 45 = BEAM_PETRIFY
toEnum 46 = BEAM_CORONA
toEnum 47 = BEAM_PORKALATOR
toEnum 48 = BEAM_HIBERNATION
toEnum 49 = BEAM_BERSERK
toEnum 50 = BEAM_SLEEP
toEnum 51 = BEAM_INNER_FLAME
toEnum 51 = BEAM_LAST_ENCHANTMENT
toEnum 52 = BEAM_POTION_MEPHITIC
toEnum 53 = BEAM_POTION_POISON
toEnum 54 = BEAM_POTION_MIASMA
toEnum 55 = BEAM_POTION_STEAM
toEnum 56 = BEAM_POTION_FIRE
toEnum 57 = BEAM_POTION_COLD
toEnum 58 = BEAM_POTION_BLACK_SMOKE
toEnum 59 = BEAM_POTION_GREY_SMOKE
toEnum 60 = BEAM_POTION_MUTAGENIC
toEnum 61 = BEAM_POTION_BLUE_SMOKE
toEnum 62 = BEAM_POTION_PURPLE_SMOKE
toEnum 63 = BEAM_POTION_RAIN
toEnum 64 = BEAM_GLOOM
toEnum 65 = BEAM_INK
toEnum 66 = BEAM_HOLY_FLAME
toEnum 67 = BEAM_HOLY_LIGHT
toEnum 68 = BEAM_POTION_RANDOM
toEnum 69 = BEAM_AIR
toEnum 70 = BEAM_PETRIFYING_CLOUD
toEnum 71 = BEAM_BOLT_OF_ZIN
toEnum 72 = BEAM_ENSNARE
toEnum 72 = BEAM_LAST_REAL
toEnum 73 = BEAM_VISUAL
toEnum 74 = BEAM_TORMENT_DAMAGE
toEnum 74 = BEAM_FIRST_PSEUDO
toEnum 75 = BEAM_DEVOUR_FOOD
toEnum 76 = NUM_BEAMS
toEnum unmatched = error ("Crawl_beam_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 45 "enums.chs" #-}
data Crawl_beh_type = BEH_SLEEP
| BEH_WANDER
| BEH_SEEK
| BEH_FLEE
| BEH_CORNERED
| BEH_PANIC
| BEH_LURK
| BEH_RETREAT
| NUM_BEHAVIOURS
| BEH_CHARMED
| BEH_FRIENDLY
| BEH_GOOD_NEUTRAL
| BEH_STRICT_NEUTRAL
| BEH_NEUTRAL
| BEH_HOSTILE
| BEH_GUARD
| BEH_COPY
instance Enum Crawl_beh_type where
fromEnum BEH_SLEEP = 0
fromEnum BEH_WANDER = 1
fromEnum BEH_SEEK = 2
fromEnum BEH_FLEE = 3
fromEnum BEH_CORNERED = 4
fromEnum BEH_PANIC = 5
fromEnum BEH_LURK = 6
fromEnum BEH_RETREAT = 7
fromEnum NUM_BEHAVIOURS = 8
fromEnum BEH_CHARMED = 9
fromEnum BEH_FRIENDLY = 10
fromEnum BEH_GOOD_NEUTRAL = 11
fromEnum BEH_STRICT_NEUTRAL = 12
fromEnum BEH_NEUTRAL = 13
fromEnum BEH_HOSTILE = 14
fromEnum BEH_GUARD = 15
fromEnum BEH_COPY = 16
toEnum 0 = BEH_SLEEP
toEnum 1 = BEH_WANDER
toEnum 2 = BEH_SEEK
toEnum 3 = BEH_FLEE
toEnum 4 = BEH_CORNERED
toEnum 5 = BEH_PANIC
toEnum 6 = BEH_LURK
toEnum 7 = BEH_RETREAT
toEnum 8 = NUM_BEHAVIOURS
toEnum 9 = BEH_CHARMED
toEnum 10 = BEH_FRIENDLY
toEnum 11 = BEH_GOOD_NEUTRAL
toEnum 12 = BEH_STRICT_NEUTRAL
toEnum 13 = BEH_NEUTRAL
toEnum 14 = BEH_HOSTILE
toEnum 15 = BEH_GUARD
toEnum 16 = BEH_COPY
toEnum unmatched = error ("Crawl_beh_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 46 "enums.chs" #-}
data Crawl_bom_type = BOM_NORMAL
| BOM_UTF8
| BOM_UTF16LE
| BOM_UTF16BE
| BOM_UTF32LE
| BOM_UTF32BE
instance Enum Crawl_bom_type where
fromEnum BOM_NORMAL = 0
fromEnum BOM_UTF8 = 1
fromEnum BOM_UTF16LE = 2
fromEnum BOM_UTF16BE = 3
fromEnum BOM_UTF32LE = 4
fromEnum BOM_UTF32BE = 5
toEnum 0 = BOM_NORMAL
toEnum 1 = BOM_UTF8
toEnum 2 = BOM_UTF16LE
toEnum 3 = BOM_UTF16BE
toEnum 4 = BOM_UTF32LE
toEnum 5 = BOM_UTF32BE
toEnum unmatched = error ("Crawl_bom_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 47 "enums.chs" #-}
data Crawl_book_mem_or_forget = BOOK_MEM
| BOOK_FORGET
| BOOK_NEITHER
instance Enum Crawl_book_mem_or_forget where
fromEnum BOOK_MEM = 0
fromEnum BOOK_FORGET = 1
fromEnum BOOK_NEITHER = 2
toEnum 0 = BOOK_MEM
toEnum 1 = BOOK_FORGET
toEnum 2 = BOOK_NEITHER
toEnum unmatched = error ("Crawl_book_mem_or_forget.toEnum: Cannot match " ++ show unmatched)
{-# LINE 48 "enums.chs" #-}
data Crawl_book_type = BOOK_MINOR_MAGIC
| BOOK_CONJURATIONS
| BOOK_FLAMES
| BOOK_FROST
| BOOK_SUMMONINGS
| BOOK_FIRE
| BOOK_ICE
| BOOK_SPATIAL_TRANSLOCATIONS
| BOOK_ENCHANTMENTS
| BOOK_YOUNG_POISONERS
| BOOK_TEMPESTS
| BOOK_DEATH
| BOOK_HINDERANCE
| BOOK_CHANGES
| BOOK_TRANSFIGURATIONS
| BOOK_WAR_CHANTS
| BOOK_CLOUDS
| BOOK_NECROMANCY
| BOOK_CALLINGS
| BOOK_MALEDICT
| BOOK_AIR
| BOOK_SKY
| BOOK_WARP
| BOOK_ENVENOMATIONS
| BOOK_UNLIFE
| BOOK_CONTROL
| BOOK_MUTATIONS
| BOOK_GEOMANCY
| BOOK_EARTH
| BOOK_WIZARDRY
| BOOK_POWER
| BOOK_CANTRIPS
| BOOK_PARTY_TRICKS
| BOOK_STALKING
| BOOK_DEBILITATION
| BOOK_DRAGON
| BOOK_BURGLARY
| BOOK_DREAMS
| BOOK_ALCHEMY
| BOOK_BEASTS
| MAX_NORMAL_BOOK
| MIN_GOD_ONLY_BOOK
| BOOK_ANNIHILATIONS
| BOOK_GRAND_GRIMOIRE
| BOOK_NECRONOMICON
| MAX_GOD_ONLY_BOOK
| MAX_FIXED_BOOK
| BOOK_RANDART_LEVEL
| BOOK_RANDART_THEME
| BOOK_MANUAL
| BOOK_DESTRUCTION
| NUM_BOOKS
instance Enum Crawl_book_type where
fromEnum BOOK_MINOR_MAGIC = 0
fromEnum BOOK_CONJURATIONS = 1
fromEnum BOOK_FLAMES = 2
fromEnum BOOK_FROST = 3
fromEnum BOOK_SUMMONINGS = 4
fromEnum BOOK_FIRE = 5
fromEnum BOOK_ICE = 6
fromEnum BOOK_SPATIAL_TRANSLOCATIONS = 7
fromEnum BOOK_ENCHANTMENTS = 8
fromEnum BOOK_YOUNG_POISONERS = 9
fromEnum BOOK_TEMPESTS = 10
fromEnum BOOK_DEATH = 11
fromEnum BOOK_HINDERANCE = 12
fromEnum BOOK_CHANGES = 13
fromEnum BOOK_TRANSFIGURATIONS = 14
fromEnum BOOK_WAR_CHANTS = 15
fromEnum BOOK_CLOUDS = 16
fromEnum BOOK_NECROMANCY = 17
fromEnum BOOK_CALLINGS = 18
fromEnum BOOK_MALEDICT = 19
fromEnum BOOK_AIR = 20
fromEnum BOOK_SKY = 21
fromEnum BOOK_WARP = 22
fromEnum BOOK_ENVENOMATIONS = 23
fromEnum BOOK_UNLIFE = 24
fromEnum BOOK_CONTROL = 25
fromEnum BOOK_MUTATIONS = 26
fromEnum BOOK_GEOMANCY = 27
fromEnum BOOK_EARTH = 28
fromEnum BOOK_WIZARDRY = 29
fromEnum BOOK_POWER = 30
fromEnum BOOK_CANTRIPS = 31
fromEnum BOOK_PARTY_TRICKS = 32
fromEnum BOOK_STALKING = 33
fromEnum BOOK_DEBILITATION = 34
fromEnum BOOK_DRAGON = 35
fromEnum BOOK_BURGLARY = 36
fromEnum BOOK_DREAMS = 37
fromEnum BOOK_ALCHEMY = 38
fromEnum BOOK_BEASTS = 39
fromEnum MAX_NORMAL_BOOK = 39
fromEnum MIN_GOD_ONLY_BOOK = 40
fromEnum BOOK_ANNIHILATIONS = 40
fromEnum BOOK_GRAND_GRIMOIRE = 41
fromEnum BOOK_NECRONOMICON = 42
fromEnum MAX_GOD_ONLY_BOOK = 42
fromEnum MAX_FIXED_BOOK = 42
fromEnum BOOK_RANDART_LEVEL = 43
fromEnum BOOK_RANDART_THEME = 44
fromEnum BOOK_MANUAL = 45
fromEnum BOOK_DESTRUCTION = 46
fromEnum NUM_BOOKS = 47
toEnum 0 = BOOK_MINOR_MAGIC
toEnum 1 = BOOK_CONJURATIONS
toEnum 2 = BOOK_FLAMES
toEnum 3 = BOOK_FROST
toEnum 4 = BOOK_SUMMONINGS
toEnum 5 = BOOK_FIRE
toEnum 6 = BOOK_ICE
toEnum 7 = BOOK_SPATIAL_TRANSLOCATIONS
toEnum 8 = BOOK_ENCHANTMENTS
toEnum 9 = BOOK_YOUNG_POISONERS
toEnum 10 = BOOK_TEMPESTS
toEnum 11 = BOOK_DEATH
toEnum 12 = BOOK_HINDERANCE
toEnum 13 = BOOK_CHANGES
toEnum 14 = BOOK_TRANSFIGURATIONS
toEnum 15 = BOOK_WAR_CHANTS
toEnum 16 = BOOK_CLOUDS
toEnum 17 = BOOK_NECROMANCY
toEnum 18 = BOOK_CALLINGS
toEnum 19 = BOOK_MALEDICT
toEnum 20 = BOOK_AIR
toEnum 21 = BOOK_SKY
toEnum 22 = BOOK_WARP
toEnum 23 = BOOK_ENVENOMATIONS
toEnum 24 = BOOK_UNLIFE
toEnum 25 = BOOK_CONTROL
toEnum 26 = BOOK_MUTATIONS
toEnum 27 = BOOK_GEOMANCY
toEnum 28 = BOOK_EARTH
toEnum 29 = BOOK_WIZARDRY
toEnum 30 = BOOK_POWER
toEnum 31 = BOOK_CANTRIPS
toEnum 32 = BOOK_PARTY_TRICKS
toEnum 33 = BOOK_STALKING
toEnum 34 = BOOK_DEBILITATION
toEnum 35 = BOOK_DRAGON
toEnum 36 = BOOK_BURGLARY
toEnum 37 = BOOK_DREAMS
toEnum 38 = BOOK_ALCHEMY
toEnum 39 = BOOK_BEASTS
toEnum 39 = MAX_NORMAL_BOOK
toEnum 40 = MIN_GOD_ONLY_BOOK
toEnum 40 = BOOK_ANNIHILATIONS
toEnum 41 = BOOK_GRAND_GRIMOIRE
toEnum 42 = BOOK_NECRONOMICON
toEnum 42 = MAX_GOD_ONLY_BOOK
toEnum 42 = MAX_FIXED_BOOK
toEnum 43 = BOOK_RANDART_LEVEL
toEnum 44 = BOOK_RANDART_THEME
toEnum 45 = BOOK_MANUAL
toEnum 46 = BOOK_DESTRUCTION
toEnum 47 = NUM_BOOKS
toEnum unmatched = error ("Crawl_book_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 49 "enums.chs" #-}
data Crawl_branch_flag_type = BFLAG_NONE
| BFLAG_ISLANDED
| BFLAG_NO_XLEV_TRAVEL
| BFLAG_NO_ITEMS
instance Enum Crawl_branch_flag_type where
fromEnum BFLAG_NONE = 0
fromEnum BFLAG_ISLANDED = 2
fromEnum BFLAG_NO_XLEV_TRAVEL = 4
fromEnum BFLAG_NO_ITEMS = 8
toEnum 0 = BFLAG_NONE
toEnum 2 = BFLAG_ISLANDED
toEnum 4 = BFLAG_NO_XLEV_TRAVEL
toEnum 8 = BFLAG_NO_ITEMS
toEnum unmatched = error ("Crawl_branch_flag_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 50 "enums.chs" #-}
data Crawl_branch_type = BRANCH_MAIN_DUNGEON
| BRANCH_ECUMENICAL_TEMPLE
| BRANCH_FIRST_NON_DUNGEON
| BRANCH_ORCISH_MINES
| BRANCH_ELVEN_HALLS
| BRANCH_DWARVEN_HALL
| BRANCH_LAIR
| BRANCH_SWAMP
| BRANCH_SHOALS
| BRANCH_SNAKE_PIT
| BRANCH_SPIDER_NEST
| BRANCH_SLIME_PITS
| BRANCH_VAULTS
| BRANCH_HALL_OF_BLADES
| BRANCH_CRYPT
| BRANCH_TOMB
| BRANCH_VESTIBULE_OF_HELL
| BRANCH_DIS
| BRANCH_GEHENNA
| BRANCH_COCYTUS
| BRANCH_TARTARUS
| BRANCH_FIRST_HELL
| BRANCH_LAST_HELL
| BRANCH_HALL_OF_ZOT
| BRANCH_FOREST
| BRANCH_ABYSS
| BRANCH_PANDEMONIUM
| BRANCH_ZIGGURAT
| BRANCH_LABYRINTH
| BRANCH_BAZAAR
| BRANCH_TROVE
| BRANCH_SEWER
| BRANCH_OSSUARY
| BRANCH_BAILEY
| BRANCH_ICE_CAVE
| BRANCH_VOLCANO
| BRANCH_WIZLAB
| NUM_BRANCHES
instance Enum Crawl_branch_type where
fromEnum BRANCH_MAIN_DUNGEON = 0
fromEnum BRANCH_ECUMENICAL_TEMPLE = 1
fromEnum BRANCH_FIRST_NON_DUNGEON = 1
fromEnum BRANCH_ORCISH_MINES = 2
fromEnum BRANCH_ELVEN_HALLS = 3
fromEnum BRANCH_DWARVEN_HALL = 4
fromEnum BRANCH_LAIR = 5
fromEnum BRANCH_SWAMP = 6
fromEnum BRANCH_SHOALS = 7
fromEnum BRANCH_SNAKE_PIT = 8
fromEnum BRANCH_SPIDER_NEST = 9
fromEnum BRANCH_SLIME_PITS = 10
fromEnum BRANCH_VAULTS = 11
fromEnum BRANCH_HALL_OF_BLADES = 12
fromEnum BRANCH_CRYPT = 13
fromEnum BRANCH_TOMB = 14
fromEnum BRANCH_VESTIBULE_OF_HELL = 15
fromEnum BRANCH_DIS = 16
fromEnum BRANCH_GEHENNA = 17
fromEnum BRANCH_COCYTUS = 18
fromEnum BRANCH_TARTARUS = 19
fromEnum BRANCH_FIRST_HELL = 16
fromEnum BRANCH_LAST_HELL = 19
fromEnum BRANCH_HALL_OF_ZOT = 20
fromEnum BRANCH_FOREST = 21
fromEnum BRANCH_ABYSS = 22
fromEnum BRANCH_PANDEMONIUM = 23
fromEnum BRANCH_ZIGGURAT = 24
fromEnum BRANCH_LABYRINTH = 25
fromEnum BRANCH_BAZAAR = 26
fromEnum BRANCH_TROVE = 27
fromEnum BRANCH_SEWER = 28
fromEnum BRANCH_OSSUARY = 29
fromEnum BRANCH_BAILEY = 30
fromEnum BRANCH_ICE_CAVE = 31
fromEnum BRANCH_VOLCANO = 32
fromEnum BRANCH_WIZLAB = 33
fromEnum NUM_BRANCHES = 34
toEnum 0 = BRANCH_MAIN_DUNGEON
toEnum 1 = BRANCH_ECUMENICAL_TEMPLE
toEnum 1 = BRANCH_FIRST_NON_DUNGEON
toEnum 2 = BRANCH_ORCISH_MINES
toEnum 3 = BRANCH_ELVEN_HALLS
toEnum 4 = BRANCH_DWARVEN_HALL
toEnum 5 = BRANCH_LAIR
toEnum 6 = BRANCH_SWAMP
toEnum 7 = BRANCH_SHOALS
toEnum 8 = BRANCH_SNAKE_PIT
toEnum 9 = BRANCH_SPIDER_NEST
toEnum 10 = BRANCH_SLIME_PITS
toEnum 11 = BRANCH_VAULTS
toEnum 12 = BRANCH_HALL_OF_BLADES
toEnum 13 = BRANCH_CRYPT
toEnum 14 = BRANCH_TOMB
toEnum 15 = BRANCH_VESTIBULE_OF_HELL
toEnum 16 = BRANCH_DIS
toEnum 17 = BRANCH_GEHENNA
toEnum 18 = BRANCH_COCYTUS
toEnum 19 = BRANCH_TARTARUS
toEnum 16 = BRANCH_FIRST_HELL
toEnum 19 = BRANCH_LAST_HELL
toEnum 20 = BRANCH_HALL_OF_ZOT
toEnum 21 = BRANCH_FOREST
toEnum 22 = BRANCH_ABYSS
toEnum 23 = BRANCH_PANDEMONIUM
toEnum 24 = BRANCH_ZIGGURAT
toEnum 25 = BRANCH_LABYRINTH
toEnum 26 = BRANCH_BAZAAR
toEnum 27 = BRANCH_TROVE
toEnum 28 = BRANCH_SEWER
toEnum 29 = BRANCH_OSSUARY
toEnum 30 = BRANCH_BAILEY
toEnum 31 = BRANCH_ICE_CAVE
toEnum 32 = BRANCH_VOLCANO
toEnum 33 = BRANCH_WIZLAB
toEnum 34 = NUM_BRANCHES
toEnum unmatched = error ("Crawl_branch_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 51 "enums.chs" #-}
data Crawl_brand_type = SPWPN_FORBID_BRAND
| SPWPN_NORMAL
| SPWPN_FLAMING
| SPWPN_FREEZING
| SPWPN_HOLY_WRATH
| SPWPN_ELECTROCUTION
| SPWPN_ORC_SLAYING
| SPWPN_DRAGON_SLAYING
| SPWPN_VENOM
| SPWPN_PROTECTION
| SPWPN_DRAINING
| SPWPN_SPEED
| SPWPN_VORPAL
| SPWPN_FLAME
| SPWPN_FROST
| SPWPN_VAMPIRICISM
| SPWPN_PAIN
| SPWPN_ANTIMAGIC
| SPWPN_DISTORTION
| SPWPN_REACHING
| SPWPN_RETURNING
| SPWPN_CHAOS
| SPWPN_EVASION
| MAX_PAN_LORD_BRANDS
| SPWPN_CONFUSE
| SPWPN_PENETRATION
| SPWPN_REAPING
| NUM_REAL_SPECIAL_WEAPONS
| SPWPN_ACID
| SPWPN_DEBUG_RANDART
| NUM_SPECIAL_WEAPONS
instance Enum Crawl_brand_type where
fromEnum SPWPN_FORBID_BRAND = (-1)
fromEnum SPWPN_NORMAL = 0
fromEnum SPWPN_FLAMING = 1
fromEnum SPWPN_FREEZING = 2
fromEnum SPWPN_HOLY_WRATH = 3
fromEnum SPWPN_ELECTROCUTION = 4
fromEnum SPWPN_ORC_SLAYING = 5
fromEnum SPWPN_DRAGON_SLAYING = 6
fromEnum SPWPN_VENOM = 7
fromEnum SPWPN_PROTECTION = 8
fromEnum SPWPN_DRAINING = 9
fromEnum SPWPN_SPEED = 10
fromEnum SPWPN_VORPAL = 11
fromEnum SPWPN_FLAME = 12
fromEnum SPWPN_FROST = 13
fromEnum SPWPN_VAMPIRICISM = 14
fromEnum SPWPN_PAIN = 15
fromEnum SPWPN_ANTIMAGIC = 16
fromEnum SPWPN_DISTORTION = 17
fromEnum SPWPN_REACHING = 18
fromEnum SPWPN_RETURNING = 19
fromEnum SPWPN_CHAOS = 20
fromEnum SPWPN_EVASION = 21
fromEnum MAX_PAN_LORD_BRANDS = 21
fromEnum SPWPN_CONFUSE = 22
fromEnum SPWPN_PENETRATION = 23
fromEnum SPWPN_REAPING = 24
fromEnum NUM_REAL_SPECIAL_WEAPONS = 25
fromEnum SPWPN_ACID = 26
fromEnum SPWPN_DEBUG_RANDART = 27
fromEnum NUM_SPECIAL_WEAPONS = 28
toEnum (-1) = SPWPN_FORBID_BRAND
toEnum 0 = SPWPN_NORMAL
toEnum 1 = SPWPN_FLAMING
toEnum 2 = SPWPN_FREEZING
toEnum 3 = SPWPN_HOLY_WRATH
toEnum 4 = SPWPN_ELECTROCUTION
toEnum 5 = SPWPN_ORC_SLAYING
toEnum 6 = SPWPN_DRAGON_SLAYING
toEnum 7 = SPWPN_VENOM
toEnum 8 = SPWPN_PROTECTION
toEnum 9 = SPWPN_DRAINING
toEnum 10 = SPWPN_SPEED
toEnum 11 = SPWPN_VORPAL
toEnum 12 = SPWPN_FLAME
toEnum 13 = SPWPN_FROST
toEnum 14 = SPWPN_VAMPIRICISM
toEnum 15 = SPWPN_PAIN
toEnum 16 = SPWPN_ANTIMAGIC
toEnum 17 = SPWPN_DISTORTION
toEnum 18 = SPWPN_REACHING
toEnum 19 = SPWPN_RETURNING
toEnum 20 = SPWPN_CHAOS
toEnum 21 = SPWPN_EVASION
toEnum 21 = MAX_PAN_LORD_BRANDS
toEnum 22 = SPWPN_CONFUSE
toEnum 23 = SPWPN_PENETRATION
toEnum 24 = SPWPN_REAPING
toEnum 25 = NUM_REAL_SPECIAL_WEAPONS
toEnum 26 = SPWPN_ACID
toEnum 27 = SPWPN_DEBUG_RANDART
toEnum 28 = NUM_SPECIAL_WEAPONS
toEnum unmatched = error ("Crawl_brand_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 52 "enums.chs" #-}
data Crawl_burden_state_type = BS_UNENCUMBERED
| BS_ENCUMBERED
| BS_OVERLOADED
instance Enum Crawl_burden_state_type where
fromEnum BS_UNENCUMBERED = 0
fromEnum BS_ENCUMBERED = 2
fromEnum BS_OVERLOADED = 5
toEnum 0 = BS_UNENCUMBERED
toEnum 2 = BS_ENCUMBERED
toEnum 5 = BS_OVERLOADED
toEnum unmatched = error ("Crawl_burden_state_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 53 "enums.chs" #-}
data Crawl_button_state_type = BUTTON1
| BUTTON1_DBL
| BUTTON2
| BUTTON2_DBL
| BUTTON3
| BUTTON3_DBL
| BUTTON4
| BUTTON4_DBL
| BUTTON_SCRL_UP
| BUTTON_SCRL_DN
instance Enum Crawl_button_state_type where
fromEnum BUTTON1 = 1
fromEnum BUTTON1_DBL = 2
fromEnum BUTTON2 = 4
fromEnum BUTTON2_DBL = 8
fromEnum BUTTON3 = 16
fromEnum BUTTON3_DBL = 32
fromEnum BUTTON4 = 64
fromEnum BUTTON4_DBL = 128
fromEnum BUTTON_SCRL_UP = 256
fromEnum BUTTON_SCRL_DN = 512
toEnum 1 = BUTTON1
toEnum 2 = BUTTON1_DBL
toEnum 4 = BUTTON2
toEnum 8 = BUTTON2_DBL
toEnum 16 = BUTTON3
toEnum 32 = BUTTON3_DBL
toEnum 64 = BUTTON4
toEnum 128 = BUTTON4_DBL
toEnum 256 = BUTTON_SCRL_UP
toEnum 512 = BUTTON_SCRL_DN
toEnum unmatched = error ("Crawl_button_state_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 54 "enums.chs" #-}
data Crawl_caction_type = CACT_MELEE
| CACT_FIRE
| CACT_THROW
| CACT_CAST
| CACT_INVOKE
| CACT_ABIL
| CACT_EVOKE
| CACT_USE
| NUM_CACTIONS
instance Enum Crawl_caction_type where
fromEnum CACT_MELEE = 0
fromEnum CACT_FIRE = 1
fromEnum CACT_THROW = 2
fromEnum CACT_CAST = 3
fromEnum CACT_INVOKE = 4
fromEnum CACT_ABIL = 5
fromEnum CACT_EVOKE = 6
fromEnum CACT_USE = 7
fromEnum NUM_CACTIONS = 8
toEnum 0 = CACT_MELEE
toEnum 1 = CACT_FIRE
toEnum 2 = CACT_THROW
toEnum 3 = CACT_CAST
toEnum 4 = CACT_INVOKE
toEnum 5 = CACT_ABIL
toEnum 6 = CACT_EVOKE
toEnum 7 = CACT_USE
toEnum 8 = NUM_CACTIONS
toEnum unmatched = error ("Crawl_caction_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 55 "enums.chs" #-}
data Crawl_canned_message_type = MSG_SOMETHING_APPEARS
| MSG_NOTHING_HAPPENS
| MSG_YOU_UNAFFECTED
| MSG_YOU_RESIST
| MSG_YOU_PARTIALLY_RESIST
| MSG_TOO_BERSERK
| MSG_PRESENT_FORM
| MSG_NOTHING_CARRIED
| MSG_CANNOT_DO_YET
| MSG_OK
| MSG_UNTHINKING_ACT
| MSG_NOTHING_THERE
| MSG_NOTHING_CLOSE_ENOUGH
| MSG_NO_ENERGY
| MSG_SPELL_FIZZLES
| MSG_HUH
| MSG_EMPTY_HANDED_ALREADY
| MSG_EMPTY_HANDED_NOW
| MSG_YOU_BLINK
| MSG_STRANGE_STASIS
| MSG_NO_SPELLS
| MSG_MANA_INCREASE
| MSG_MANA_DECREASE
| MSG_DISORIENTED
| MSG_TOO_HUNGRY
| MSG_DETECT_NOTHING
| MSG_CALL_DEAD
| MSG_ANIMATE_REMAINS
| MSG_DECK_EXHAUSTED
| MSG_EVOCATION_SUPPRESSED
instance Enum Crawl_canned_message_type where
fromEnum MSG_SOMETHING_APPEARS = 0
fromEnum MSG_NOTHING_HAPPENS = 1
fromEnum MSG_YOU_UNAFFECTED = 2
fromEnum MSG_YOU_RESIST = 3
fromEnum MSG_YOU_PARTIALLY_RESIST = 4
fromEnum MSG_TOO_BERSERK = 5
fromEnum MSG_PRESENT_FORM = 6
fromEnum MSG_NOTHING_CARRIED = 7
fromEnum MSG_CANNOT_DO_YET = 8
fromEnum MSG_OK = 9
fromEnum MSG_UNTHINKING_ACT = 10
fromEnum MSG_NOTHING_THERE = 11
fromEnum MSG_NOTHING_CLOSE_ENOUGH = 12
fromEnum MSG_NO_ENERGY = 13
fromEnum MSG_SPELL_FIZZLES = 14
fromEnum MSG_HUH = 15
fromEnum MSG_EMPTY_HANDED_ALREADY = 16
fromEnum MSG_EMPTY_HANDED_NOW = 17
fromEnum MSG_YOU_BLINK = 18
fromEnum MSG_STRANGE_STASIS = 19
fromEnum MSG_NO_SPELLS = 20
fromEnum MSG_MANA_INCREASE = 21
fromEnum MSG_MANA_DECREASE = 22
fromEnum MSG_DISORIENTED = 23
fromEnum MSG_TOO_HUNGRY = 24
fromEnum MSG_DETECT_NOTHING = 25
fromEnum MSG_CALL_DEAD = 26
fromEnum MSG_ANIMATE_REMAINS = 27
fromEnum MSG_DECK_EXHAUSTED = 28
fromEnum MSG_EVOCATION_SUPPRESSED = 29
toEnum 0 = MSG_SOMETHING_APPEARS
toEnum 1 = MSG_NOTHING_HAPPENS
toEnum 2 = MSG_YOU_UNAFFECTED
toEnum 3 = MSG_YOU_RESIST
toEnum 4 = MSG_YOU_PARTIALLY_RESIST
toEnum 5 = MSG_TOO_BERSERK
toEnum 6 = MSG_PRESENT_FORM
toEnum 7 = MSG_NOTHING_CARRIED
toEnum 8 = MSG_CANNOT_DO_YET
toEnum 9 = MSG_OK
toEnum 10 = MSG_UNTHINKING_ACT
toEnum 11 = MSG_NOTHING_THERE
toEnum 12 = MSG_NOTHING_CLOSE_ENOUGH
toEnum 13 = MSG_NO_ENERGY
toEnum 14 = MSG_SPELL_FIZZLES
toEnum 15 = MSG_HUH
toEnum 16 = MSG_EMPTY_HANDED_ALREADY
toEnum 17 = MSG_EMPTY_HANDED_NOW
toEnum 18 = MSG_YOU_BLINK
toEnum 19 = MSG_STRANGE_STASIS
toEnum 20 = MSG_NO_SPELLS
toEnum 21 = MSG_MANA_INCREASE
toEnum 22 = MSG_MANA_DECREASE
toEnum 23 = MSG_DISORIENTED
toEnum 24 = MSG_TOO_HUNGRY
toEnum 25 = MSG_DETECT_NOTHING
toEnum 26 = MSG_CALL_DEAD
toEnum 27 = MSG_ANIMATE_REMAINS
toEnum 28 = MSG_DECK_EXHAUSTED
toEnum 29 = MSG_EVOCATION_SUPPRESSED
toEnum unmatched = error ("Crawl_canned_message_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 56 "enums.chs" #-}
data Crawl_card_flags_type = CFLAG_ODDITY
| CFLAG_SEEN
| CFLAG_MARKED
| CFLAG_DEALT
instance Enum Crawl_card_flags_type where
fromEnum CFLAG_ODDITY = 1
fromEnum CFLAG_SEEN = 2
fromEnum CFLAG_MARKED = 4
fromEnum CFLAG_DEALT = 16
toEnum 1 = CFLAG_ODDITY
toEnum 2 = CFLAG_SEEN
toEnum 4 = CFLAG_MARKED
toEnum 16 = CFLAG_DEALT
toEnum unmatched = error ("Crawl_card_flags_type.toEnum: Cannot match " ++ show unmatched)
{-# LINE 57 "enums.chs" #-}
data Crawl_card_type = CARD_PORTAL
| CARD_WARP
| CARD_SWAP
| CARD_VELOCITY