
// Indexes of the various "stats" (hard-coded by savefiles, etc).
enum STAT_ID
{
	STAT_STR,
	STAT_INT,
	STAT_WIS,
	STAT_DEX,
	STAT_CON,
	STAT_CHA,
	STAT_MAX
};

enum CAMPAIGN_ID
{
	CAMPAIGN_FATE_OF_STIGMA,
	CAMPAIGN_CURSE_OF_ILUVATAR,
	CAMPAIGN_RIVALRY_IN_MULTIVARSE,
	MAX_CAMPAIGNS,
};

enum SLOT_ID
{
	SLOT_ID_INVENTORY,
	SLOT_ID_HAND,
	SLOT_ID_BOW,
	SLOT_ID_AMMO,
	SLOT_ID_RING,
	SLOT_ID_AMULET,
	SLOT_ID_BODY,
	SLOT_ID_OUTER,
	SLOT_ID_HEAD,
	SLOT_ID_ARMS,
	SLOT_ID_FEET,
	SLOT_ID_INSTRUMENT,
	SLOT_ID_LITE,
	SLOT_ID_TAIL,
	SLOT_ID_INTAKE,
	SLOT_ID_ORGAN,
	MAX_SLOT_IDS
};

enum MELEE_TYPE
{
	MELEE_TYPE_WEAPON_1ST = MELLE_WEAPON_INDEX + 0,
	MELEE_TYPE_WEAPON_2ND = MELLE_WEAPON_INDEX + 1,
	MELEE_TYPE_WEAPON_3RD = MELLE_WEAPON_INDEX + 2,
	MELEE_TYPE_WEAPON_4TH = MELLE_WEAPON_INDEX + 3,
	MELEE_TYPE_WEAPON_5TH = MELLE_WEAPON_INDEX + 4,
	MELEE_TYPE_WEAPON_6TH = MELLE_WEAPON_INDEX + 5,
	MELEE_TYPE_WEAPON_7TH = MELLE_WEAPON_INDEX + 6,
	MELEE_TYPE_WEAPON_8TH = MELLE_WEAPON_INDEX + 7,
	MELEE_TYPE_SPECIAL_1ST = MELLE_SP_BLOW_INDEX + 0,
	MELEE_TYPE_SPECIAL_2ND = MELLE_SP_BLOW_INDEX + 1,
	MELEE_TYPE_SPECIAL_3RD = MELLE_SP_BLOW_INDEX + 2,
	MELEE_TYPE_SPECIAL_4TH = MELLE_SP_BLOW_INDEX + 3,
	MELEE_TYPE_BARE_HAND = MELLE_APPENDAGE_INDEX + 0,
	MELEE_TYPE_STAMP     = MELLE_APPENDAGE_INDEX + 1,
	MELEE_TYPE_HORNS     = MELLE_APPENDAGE_INDEX + 2,
	MELEE_TYPE_BEAK      = MELLE_APPENDAGE_INDEX + 3,
	MELEE_TYPE_SCOR_TAIL = MELLE_APPENDAGE_INDEX + 4,
	MELEE_TYPE_TRUNK     = MELLE_APPENDAGE_INDEX + 5,
	MELEE_TYPE_TENTACLES = MELLE_APPENDAGE_INDEX + 6,
};

enum RACE_ID
{
	RACE_HUMAN,
	RACE_ELF,
	RACE_DWARF,
	RACE_HOBBIT,
	RACE_GNOME,
	RACE_BARBARIAN,
	RACE_DUNADAN,
	RACE_MELNIBONE,
	RACE_AMBERITE,
	RACE_CHAOSIAN,
	RACE_DARK_ELF,
	RACE_ELDAR,
	RACE_AVARI,
	RACE_KOBOLD,
	RACE_NIBELUNG,
	RACE_SPRITE,
	RACE_S_FAIRY,
	RACE_WAREFOLK,
	RACE_SKAVEN,
	RACE_LIZARDMAN,
	RACE_BEASTMAN,
	RACE_MINOTAUR,
	RACE_NAGA,
	RACE_MARFOLK,
	RACE_CENTAUR,
	RACE_ENT,
	RACE_ORC,
	RACE_URUK,
	RACE_TROLL,
	RACE_OLOG,
	RACE_OGRE,
	RACE_GIANT,
	RACE_CYCLOPS,
	RACE_TITAN,
	RACE_YEEK,
	RACE_KLACKON,
	RACE_MIND_FLAYER,
	RACE_DRACONIAN,
	RACE_SAIYAN,
	RACE_KUTAR,
	RACE_JURAL,
	RACE_EWOK,
	RACE_ANGEL,
	RACE_IMP,
	RACE_DEMON,
	RACE_MAIAR,
	RACE_DEEP_ONE,
	RACE_ELDER_ONE,
	RACE_MI_GO,
	RACE_FLYING_POLYP,
	RACE_SHOGGOTH,
	RACE_YITH,

	RACE_ISTARI,
	RACE_BALROG,
	RACE_DRAGON,
	RACE_GIANT_APE,
	RACE_SUPER_SAIYAN,

	RACE_HORSE,
	RACE_ANT,
	RACE_BAT,
	RACE_CENTIPETE,

	RACE_FLOATING_EYE,
	RACE_FELINE,
	RACE_ICKY,
	RACE_JELLY,
	RACE_AQUARIC_MONSTER,
	RACE_MOLD,
	RACE_QUADRUPED,
	RACE_RODENT,
	RACE_VORTEX,
	RACE_WORM,
	RACE_MIMIC,
	RACE_BIRD,
	RACE_CANINE,
	RACE_ELEMENTAL,
	RACE_INSECT,
	RACE_SNAKE,
	RACE_SHADOW,
	RACE_QUYLTHLUG,
	RACE_SPIDER,
	RACE_CRUSTACEA,
	RACE_WRAITH,
	RACE_XORN,
	RACE_YETI,
	RACE_ZEPHYR_HOUND,
	RACE_FUNGUS,
	RACE_GREAT_OLD_ONE,
	RACE_REPTILIA,
	RACE_FIEND_LORD,
	RACE_HYDRA,
	MAX_RACES
};

/*
 * Intelligence race rarity.
 */
enum RACE_RARITY_TYPE
{
	RACE_RARITY_COMMON,
	RACE_RARITY_UNCOMMON,
	RACE_RARITY_RARE,
	RACE_RARITY_LEGENDARY,
	RACE_RARITY_UNSELECTABLE,
};


enum CLASS_ID
{
	CLASS_NONE,
	CLASS_WARRIOR,
	CLASS_MAGE,
	CLASS_PRIEST,
	CLASS_ROGUE,
	CLASS_RANGER,
	CLASS_PALADIN,
	CLASS_WARRIOR_MAGE,
	CLASS_CHAOS_WARRIOR,
	CLASS_MONK,
	CLASS_MINDCRAFTER,
	CLASS_HIGH_MAGE,
	CLASS_TOURIST,
	CLASS_IMITATOR,
	CLASS_BEASTMASTER,
	CLASS_SORCERER,
	CLASS_ARCHER,
	CLASS_MAGIC_EATER,
	CLASS_BARD,
	CLASS_RED_MAGE,
	CLASS_SAMURAI,
	CLASS_FORCETRAINER,
	CLASS_BLUE_MAGE,
	CLASS_CAVALRY,
	CLASS_BERSERKER,
	CLASS_SMITH,
	CLASS_MIRROR_MASTER,
	CLASS_NINJA,
	CLASS_SNIPER,
	CLASS_COMMONER,
	CLASS_SOLDIER,
	MAX_CLASS
};

enum CHARA_ID
{
	CHARA_FUTUU,
	CHARA_CHIKARA,
	CHARA_KIREMONO,
	CHARA_SHIAWASE,
	CHARA_SUBASI,
	CHARA_INOCHI,
	CHARA_COMBAT,
	CHARA_NAMAKE,
	CHARA_SEXY,
	CHARA_LUCKY,
	CHARA_GAMAN,
	CHARA_MUNCHKIN,
	CHARA_CHARGEMAN,
	CHARA_POWERLESS,
	CHARA_IGNORANT,
	CHARA_IMBECILE,
	CHARA_SLOWWITTED,
	CHARA_WEAK,
	CHARA_UGLY,
	MAX_CHARA,
};

enum AUTHORITY_TYPE
{
	AUTHORITY_FIRE1,
	AUTHORITY_FIRE2,
	AUTHORITY_FIRE3,
	AUTHORITY_FIRE4,
	AUTHORITY_WATER1,
	AUTHORITY_WATER2,
	AUTHORITY_WATER3,
	AUTHORITY_WATER4,
	AUTHORITY_EARTH1,
	AUTHORITY_EARTH2,
	AUTHORITY_EARTH3,
	AUTHORITY_EARTH4,
	AUTHORITY_WIND1,
	AUTHORITY_WIND2,
	AUTHORITY_WIND3,
	AUTHORITY_WIND4,
	AUTHORITY_LIGHT1,
	AUTHORITY_LIGHT2,
	AUTHORITY_LIGHT3,
	AUTHORITY_DARK1,
	AUTHORITY_DARK2,
	AUTHORITY_DARK3,
	AUTHORITY_ORDER1,
	AUTHORITY_ORDER2,
	AUTHORITY_ORDER3,
	AUTHORITY_CHAOS1,
	AUTHORITY_CHAOS2,
	AUTHORITY_CHAOS3,
	MAX_AUTHORITY
};


enum FEATURE_TRAIT
{	
	FF_LOS,
	FF_PROJECT,
	FF_MOVE,
	FF_PLACE,
	FF_DROP,
	FF_SECRET,
	FF_NOTICE,
	FF_REMEMBER,
	FF_OPEN,
	FF_CLOSE,
	FF_BASH,
	FF_SPIKE,
	FF_DISARM,
	FF_STORE,
	FF_TUNNEL,
	FF_MAY_HAVE_GOLD,
	FF_HAS_GOLD,
	FF_HAS_ITEM,
	FF_DOOR,
	FF_TRAP,
	FF_STAIRS,
	FF_GLYPH,
	FF_LESS,
	FF_MORE,
	FF_AVOID_R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FF_UNPERM,
	FF_TELEPORTABLE,
	FF_CONVERT,
	FF_GLASS,
	FF_CHAOS_TAINTED,
	FF_POISON_SWAMP,
	FF_ACID_SWAMP,
	
	FF_FLAG_MAX,
};

enum TERRAIN_TYPE
{
	TERRAIN_EDGE,			/* Edge of the World */
	TERRAIN_TOWN,			/* Town */
	TERRAIN_DEEP_WATER,		/* Deep water */
	TERRAIN_SHALLOW_WATER,	/* Shallow water */
	TERRAIN_SWAMP,			/* Swamp */
	TERRAIN_DIRT,			/* Dirt */
	TERRAIN_GRASS,			/* Grass */
	TERRAIN_TREES,			/* Trees */
	TERRAIN_DESERT,			/* Desert */
	TERRAIN_SHALLOW_LAVA,	/* Shallow lava */
	TERRAIN_DEEP_LAVA,		/* Deep lava */
	TERRAIN_MOUNTAIN,		/* Mountain */
	TERRAIN_CHAOS,			/* Chaos Tainted Field */
	MAX_WILDERNESS,			/* Maximum wilderness index */
};

/*
 * Mega-Hack -- some primitive sound support (see "main-win.c")
 *
 * Some "sound" constants for "Term_xtra(TERM_XTRA_SOUND, val)"
 */

enum SOUND
{
	SOUND_NONE,
	SOUND_HIT,
	SOUND_MISS,
	SOUND_FLEE,
	SOUND_DROP,
	SOUND_KILL,
	SOUND_LEVEL,
	SOUND_DEATH,
	SOUND_STUDY,
	SOUND_TELEPORT,
	SOUND_SHOOT,
	SOUND_QUAFF,
	SOUND_ZAP,
	SOUND_WALK,
	SOUND_TPOTHER,
	SOUND_HITWALL,
	SOUND_EAT,
	SOUND_STORE1,
	SOUND_STORE2,
	SOUND_STORE3,
	SOUND_STORE4,
	SOUND_DIG,
	SOUND_OPENDOOR,
	SOUND_SHUTDOOR,
	SOUND_TPLEVEL,
	SOUND_SCROLL,
	SOUND_BUY,
	SOUND_SELL,
	SOUND_WARN,
	SOUND_ROCKET,
	SOUND_N_KILL,
	SOUND_U_KILL,
	SOUND_QUEST,
	SOUND_HEAL,
	SOUND_X_HEAL,
	SOUND_BITE,
	SOUND_CLAW,
	SOUND_M_SPELL,
	SOUND_SUMMON,
	SOUND_BREATH,
	SOUND_BALL,
	SOUND_M_HEAL,
	SOUND_ATK_SPELL,
	SOUND_EVIL,
	SOUND_TOUCH,
	SOUND_STING,
	SOUND_CRUSH,
	SOUND_SLIME,
	SOUND_WAIL,
	SOUND_WINNER,
	SOUND_FIRE,
	SOUND_ACID,
	SOUND_ELEC,
	SOUND_COLD,
	SOUND_ILLEGAL,
	SOUND_FAIL,
	SOUND_WAKEUP,
	SOUND_INVULN,
	SOUND_FALL,
	SOUND_PAIN,
	SOUND_DESTITEM,
	SOUND_MOAN,
	SOUND_SHOW,
	SOUND_UNUSED,
	SOUND_EXPLODE,
	SOUND_GLASS,
	SOUND_MAX
};

enum KARMA_TYPE
{
	KARMA_IDEAL	,
	KARMA_PRAGMATIC,
	KARMA_HARMONY,
	KARMA_ALOOFNESS,
	KARMA_TEMPERATE,
	KARMA_INDULGENT,
	KARMA_CHASTE,
	KARMA_PASSION,
	KARMA_MERCY,
	KARMA_CRUELTY,
	KARMA_HONEST,
	KARMA_CLEVER,
	KARMA_FORGIVING,
	KARMA_AVENGE,
	KARMA_GENEROUS,
	KARMA_GREED,
	KARMA_MODEST,
	KARMA_PROUD,
	KARMA_TRSUTING,
	KARMA_SUSPICION,
	KARMA_ZEALOTRY,
	KARMA_SCEPTICISM,
	KARMA_DELIGENT,
	KARMA_IDLENESS,
	KARMA_CREATION,
	KARMA_DESTRUCTION,
	KARMA_PLEASURE,
	KARMA_PAIN,
	KARMA_WEALTH,
	KARMA_PRESITIGE,
	KARMA_ERUDITION,
	KARMA_BRAVE,
	KARMA_DISCRETION,
	KARMA_FORTUNE,
	MAX_KARMA,

	KARMA_NONE
};

/*
 * Spell types used by project(), and related functions.
 */
enum EFFECT_ID
{
	DO_EFFECT_MELEE,
	DO_EFFECT_ELEC,
	DO_EFFECT_POIS,
	DO_EFFECT_ACID,
	DO_EFFECT_COLD,
	DO_EFFECT_FIRE,
	DO_EFFECT_PSY_SPEAR,
	DO_EFFECT_MISSILE,
	DO_EFFECT_ARROW,
	DO_EFFECT_PLASMA,
	DO_EFFECT_WATER,
	DO_EFFECT_LITE,
	DO_EFFECT_DARK,
	DO_EFFECT_LITE_WEAK,
	DO_EFFECT_DARK_WEAK,
	DO_EFFECT_SHARDS,
	DO_EFFECT_SOUND,
	DO_EFFECT_CONFUSION,
	DO_EFFECT_FORCE,
	DO_EFFECT_INERTIA,
	DO_EFFECT_MANA,
	DO_EFFECT_METEOR,
	DO_EFFECT_ICE,
	DO_EFFECT_CHAOS,
	DO_EFFECT_NETHER,
	DO_EFFECT_DISENCHANT,
	DO_EFFECT_NEXUS,
	DO_EFFECT_TIME,
	DO_EFFECT_GRAVITY,
	DO_EFFECT_KILL_WALL,
	DO_EFFECT_KILL_DOOR,
	DO_EFFECT_KILL_TRAP,
	DO_EFFECT_MAKE_WALL,
	DO_EFFECT_MAKE_DOOR,
	DO_EFFECT_MAKE_TRAP,
	DO_EFFECT_MAKE_TREE,
	DO_EFFECT_CLONE,
	DO_EFFECT_POLY,
	DO_EFFECT_HEAL_HP,
	DO_EFFECT_HEAL_MP,
	DO_EFFECT_HASTE,
	DO_EFFECT_SLOW,
	DO_EFFECT_SLEEP,
	DO_EFFECT_DRAIN,
	DO_EFFECT_AWAY_UNDEAD,
	DO_EFFECT_AWAY_EVIL,
	DO_EFFECT_AWAY_ALL,
	DO_EFFECT_TURN_UNDEAD,
	DO_EFFECT_TURN_EVIL,
	DO_EFFECT_TURN_ALL,
	DO_EFFECT_DISP_UNDEAD,
	DO_EFFECT_DISP_EVIL,
	DO_EFFECT_DISP_ALL,
	DO_EFFECT_DISP_DEMON,
	DO_EFFECT_DISP_LIVING,
	DO_EFFECT_ROCKET,
	DO_EFFECT_NUKE,
	DO_EFFECT_MAKE_GLYPH,
	DO_EFFECT_HOLD,
	DO_EFFECT_STONE_WALL,
	DO_EFFECT_DEATH_RAY,
	DO_EFFECT_STUN,
	DO_EFFECT_HOLY_FIRE,
	DO_EFFECT_HELL_FIRE,
	DO_EFFECT_DISINTEGRATE,
	DO_EFFECT_CHARM,
	DO_EFFECT_CONTROL_UNDEAD,
	DO_EFFECT_CONTROL_ANIMAL,
	DO_EFFECT_PSI,
	DO_EFFECT_PSI_DRAIN,
	DO_EFFECT_TELEKINESIS,
	DO_EFFECT_JAM_DOOR,
	DO_EFFECT_DOMINATION,
	DO_EFFECT_DISP_GOOD,
	DO_EFFECT_DRAIN_MANA,
	DO_EFFECT_MIND_BLAST,
	DO_EFFECT_BRAIN_SMASH,
	DO_EFFECT_CURSE,
	DO_EFFECT_KEIRAKU,
	DO_EFFECT_HAND_DOOM,
	DO_EFFECT_CAPTURE,
	DO_EFFECT_ANIM_DEAD,
	DO_EFFECT_CONTROL_LIVING,
	DO_EFFECT_IDENTIFY,
	DO_EFFECT_ATTACK,
	DO_EFFECT_ENGETSU,
	DO_EFFECT_GENOCIDE,
	DO_EFFECT_PHOTO,
	DO_EFFECT_CONTROL_DEMON,
	DO_EFFECT_LAVA_FLOW,
	DO_EFFECT_BLOOD_CURSE,
	DO_EFFECT_SEEKER,
	DO_EFFECT_SUPER_RAY,
	DO_EFFECT_STAR_HEAL,
	DO_EFFECT_WATER_FLOW,
	DO_EFFECT_CRUSADE,
	DO_EFFECT_HOLD_EVIL,
	DO_EFFECT_WOUNDS,
	DO_EFFECT_ACID_FLOW,
	DO_EFFECT_POISON_FLOW,
	DO_EFFECT_WANDER,
	DO_EFFECT_INVOKE_SPIRITS,
	DO_EFFECT_RUMOR,
	DO_EFFECT_TIMESTOP,
	DO_EFFECT_DISPEL,
	DO_EFFECT_TRY_LIVINGTRUMP,
	DO_EFFECT_VOMITING,
	DO_EFFECT_REMOVE_CURSE_1,
	DO_EFFECT_REMOVE_CURSE_2,
	DO_EFFECT_SATIATE,
	DO_EFFECT_AGGRAVATE,
	DO_EFFECT_MIRROR_SET,
	DO_EFFECT_IMPROVE_FORCE,
	DO_EFFECT_GAIN_EXP,
	DO_EFFECT_RESTORE_EXP,
	DO_EFFECT_DEC_STR,
	DO_EFFECT_DEC_INT,
	DO_EFFECT_DEC_WIS,
	DO_EFFECT_DEC_DEX,
	DO_EFFECT_DEC_CON,
	DO_EFFECT_DEC_CHA,
	DO_EFFECT_RES_STR,
	DO_EFFECT_RES_INT,
	DO_EFFECT_RES_WIS,
	DO_EFFECT_RES_DEX,
	DO_EFFECT_RES_CON,
	DO_EFFECT_RES_CHA,
	DO_EFFECT_INC_STR,
	DO_EFFECT_INC_INT,
	DO_EFFECT_INC_WIS,
	DO_EFFECT_INC_DEX,
	DO_EFFECT_INC_CON,
	DO_EFFECT_INC_CHA,
	DO_EFFECT_WIZLITE,
	DO_EFFECT_SHUFFLE,
	DO_EFFECT_RING_POWER,
	DO_EFFECT_CALL_CHAOS,
	DO_EFFECT_TY_CURSE,
	MAX_DO_EFFECT,
};

enum BUILDING_FUNCTION
{
	BUILDING_FUNCTION_NOTHING,
	BUILDING_FUNCTION_RESEARCH_ITEM,
	BUILDING_FUNCTION_TOWN_HISTORY,
	BUILDING_FUNCTION_RACE_LEGENDS,
	BUILDING_FUNCTION_GREET_KING,
	BUILDING_FUNCTION_KING_LEGENDS,
	BUILDING_FUNCTION_QUEST,
	BUILDING_FUNCTION_XXX_UNUSED,
	BUILDING_FUNCTION_POSTER,
	BUILDING_FUNCTION_ARENA_RULES,
	BUILDING_FUNCTION_ARENA,
	BUILDING_FUNCTION_ARENA_LEGENDS,
	BUILDING_FUNCTION_IN_BETWEEN,
	BUILDING_FUNCTION_GAMBLE_RULES,
	BUILDING_FUNCTION_CRAPS,
	BUILDING_FUNCTION_SPIN_WHEEL,
	BUILDING_FUNCTION_DICE_SLOTS,
	BUILDING_FUNCTION_REST,
	BUILDING_FUNCTION_FOOD,
	BUILDING_FUNCTION_RUMORS,
	BUILDING_FUNCTION_RESEARCH_MONSTER,
	BUILDING_FUNCTION_COMPARE_WEAPONS,
	BUILDING_FUNCTION_LEGENDS,
	BUILDING_FUNCTION_ENCHANT_WEAPON,
	BUILDING_FUNCTION_ENCHANT_ARMOR,
	BUILDING_FUNCTION_RECHARGE,
	BUILDING_FUNCTION_IDENTS,
	BUILDING_FUNCTION_LEARN,
	BUILDING_FUNCTION_HEALING,
	BUILDING_FUNCTION_RESTORE,
	BUILDING_FUNCTION_ENCHANT_ARROWS,
	BUILDING_FUNCTION_ENCHANT_BOW,
	BUILDING_FUNCTION_GREET,
	BUILDING_FUNCTION_RECALL,
	BUILDING_FUNCTION_TELEPORT_LEVEL,
	BUILDING_FUNCTION_LOSE_MUTATION,
	BUILDING_FUNCTION_BATTLE,
	BUILDING_FUNCTION_TSUCHINOKO,
	BUILDING_FUNCTION_TARGET,
	BUILDING_FUNCTION_KUBI,
	BUILDING_FUNCTION_KANKIN,
	BUILDING_FUNCTION_HEIKOUKA,
	BUILDING_FUNCTION_TELE_TOWN,
	BUILDING_FUNCTION_POKER,
	BUILDING_FUNCTION_IDENT_ONE,
	BUILDING_FUNCTION_RECHARGE_ALL,
	BUILDING_FUNCTION_EVAL_AC,
	BUILDING_FUNCTION_RESIZE_ARMOR,
	BUILDING_FUNCTION_STORE,
	BUILDING_FUNCTION_MAX,
};

// Quest status
enum QUEST_STATUS
{
	QUEST_STATUS_UNTAKEN,
	QUEST_STATUS_TAKEN,
	QUEST_STATUS_COMPLETED,
	QUEST_STATUS_REWARDED,
	QUEST_STATUS_FINISHED,
	QUEST_STATUS_FAILED,
	QUEST_STATUS_FAILED_DONE,
};


// Quest type
enum QUEST_TYPE
{
	QUEST_TYPE_KILL_LEVEL,
	QUEST_TYPE_KILL_ANY_LEVEL,
	QUEST_TYPE_FIND_ARTIFACT,
	QUEST_TYPE_FIND_EXIT,
	QUEST_TYPE_KILL_NUMBER,
	QUEST_TYPE_KILL_ALL,
	QUEST_TYPE_RANDOM,
};


// Parse errors
enum PARSE_ERROR
{
	PARSE_ERROR_NONE,

	PARSE_ERROR_GENERIC,
	PARSE_ERROR_ABSOLETE_FILE,
	PARSE_ERROR_MISSING_RECORD_HEADER,
	PARSE_ERROR_NON_SEQUENTIAL_RECORDS,
	PARSE_ERROR_INVALID_FLAG,

	PARSE_ERROR_UNDEFINED_DIRECTIVE,
	PARSE_ERROR_OUT_OF_MEMORY,
	PARSE_ERROR_OUT_OF_BOUNDS,
	PARSE_ERROR_TOO_FEW_ARGUMENTS,
	PARSE_ERROR_UNDEFINED_TERRAIN_TAG,

	PARSE_ERROR_COLUMN,
	PARSE_ERROR_MAX,
};

// Skill
enum SKILL_LIST
{
	SKILL_MARTIAL_ARTS,
	SKILL_SHORT_EDGE,
	SKILL_LONG_EDGE,
	SKILL_HUGE_EDGE,
	SKILL_AXE,
	SKILL_HAFTED,
	SKILL_POLEARM,
	SKILL_SLING,
	SKILL_BOW,
	SKILL_CROSSBOW,
	SKILL_GUN,
	SKILL_MULTI_WEAPON,
	SKILL_RIDING,
	MAX_SKILLS
};



enum CREATURE_ACTION
{
	ACTION_NONE,
	ACTION_SEARCH,
	ACTION_REST,
	ACTION_LEARN,
	ACTION_FISH,
	ACTION_KAMAE,
	ACTION_KATA,
	ACTION_SING,
	ACTION_HAYAGAKE,
	ACTION_SPELL
};

enum DIARY_DESCRIPT
{
	DIARY_HIGAWARI,
	DIARY_BUNSHOU,
	DIARY_ART,
	DIARY_UNIQUE,
	DIARY_FIX_QUEST_C,
	DIARY_FIX_QUEST_F,
	DIARY_RAND_QUEST_C,
	DIARY_RAND_QUEST_F,
	DIARY_MAXDEAPTH,
	DIARY_TRUMP,
	DIARY_STAIR,
	DIARY_RECALL,
	DIARY_TO_QUEST,
	DIARY_TELE_LEV,
	DIARY_BUY,
	DIARY_SELL,
	DIARY_ARENA,
	DIARY_HANMEI,
	DIARY_LEVELUP,
	DIARY_GAMESTART,
	DIARY_WIZ_TELE,
	DIARY_NAMED_PET,
	DIARY_PAT_TELE,
};

enum DUNGEON_TYPE
{
	DUNGEON_NONE,
	DUNGEON_ANGBAND,
	DUNGEON_GALGALS,
	DUNGEON_ORC,
	DUNGEON_DOD,
	DUNGEON_DRAGON,
	DUNGEON_GRAVE,
	DUNGEON_WOOD,
	DUNGEON_VOLCANO,
	DUNGEON_HELL,
	DUNGEON_HEAVEN,
	DUNGEON_OCEAN,
	DUNGEON_CASTLE,
	DUNGEON_CTH,
	DUNGEON_MOUNTAIN,
	DUNGEON_GOLD,
	DUNGEON_NO_MAGIC,
	DUNGEON_NO_MELEE,
	DUNGEON_CHAMELEON,
	DUNGEON_DARKNESS,
};

// Sniper
enum SNIPER_TYPE
{
	SP_NONE,
	SP_LITE,
	SP_AWAY,
	SP_FIRE,
	SP_KILL_WALL,
	SP_COLD,
	SP_KILL_TRAP,
	SP_ELEC,
	SP_PIERCE,
	SP_RUSH,
	SP_DOUBLE,
	SP_EXPLODE,
	SP_EVILNESS,
	SP_HOLYNESS,
	SP_FINAL,
	SP_NEEDLE,
};


enum HEX_SPELL
{
	HEX_BLESS,
	HEX_CURE_LIGHT,
	HEX_DEMON_AURA,
	HEX_STINKING_MIST,
	HEX_XTRA_MIGHT,
	HEX_CURSE_WEAPON,
	HEX_DETECT_EVIL,
	HEX_PATIENCE,

	HEX_ICE_ARMOR,
	HEX_CURE_SERIOUS,
	HEX_INHAIL,
	HEX_VAMP_MIST,
	HEX_RUNESWORD,
	HEX_CONFUSION,
	HEX_BUILDING,
	HEX_ANTI_TELE,

	HEX_SHOCK_CLOAK,
	HEX_CURE_CRITICAL,
	HEX_RECHARGE,
	HEX_RAISE_DEAD,
	HEX_CURSE_ARMOUR,
	HEX_SHADOW_CLOAK,
	HEX_PAIN_TO_MANA,
	HEX_EYE_FOR_EYE,

	HEX_ANTI_MULTI,
	HEX_RESTORE,
	HEX_DRAIN_CURSE,
	HEX_VAMP_BLADE,
	HEX_STUN_CREATURES,
	HEX_SHADOW_MOVE,
	HEX_ANTI_MAGIC,
	HEX_REVENGE,
};


enum DISPLAY_CR_STATUS
{
	DISPLAY_CR_STATUS_STANDARD,
	DISPLAY_CR_STATUS_HISTORY,
	DISPLAY_CR_STATUS_INVENTORY,
	DISPLAY_CR_STATUS_EQUIPMENT,
	DISPLAY_CR_STATUS_VARIOUS1,
	DISPLAY_CR_STATUS_VARIOUS2,
	DISPLAY_CR_STATUS_VARIOUS3,
	DISPLAY_CR_STATUS_VARIOUS4,
	DISPLAY_CR_STATUS_MUTATION,
	DISPLAY_CR_STATUS_UNDERINGS,
	DISPLAY_CR_STATUS_MAX
};

/*
 * Game generated inscription indices. These are stored in the object,
 * and are used to index the string array from tables.c.
 */
typedef enum OBJECT_FEELING OBJECT_FEELING;
enum OBJECT_FEELING
{
	FEEL_NONE,
	FEEL_BROKEN,
	FEEL_TERRIBLE,
	FEEL_WORTHLESS,
	FEEL_CURSED,
	FEEL_UNCURSED,
	FEEL_AVERAGE,
	FEEL_GOOD,
	FEEL_EXCELLENT,
	FEEL_SPECIAL,
	MAX_FEEL,
};

enum TRAIT_ID
{
	TRAIT_UNIQUE,
	TRAIT_QUESTOR,
	TRAIT_STIGMATIC,
	TRAIT_ATTR_FORCE,
	TRAIT_CHAR_CLEAR,
	TRAIT_SHAPECHANGER,
	TRAIT_ATTR_CLEAR,
	TRAIT_ATTR_MULTI,
	TRAIT_FORCE_DEPTH,
	TRAIT_XXX0009,
	TRAIT_FORCE_SLEEP,
	TRAIT_XXX0011,
	TRAIT_ATTR_SEMIRAND,
	TRAIT_FRIENDS,
	TRAIT_XXX0014,
	TRAIT_XXX0015,
	TRAIT_NEVER_BLOW,
	TRAIT_NEVER_MOVE,
	TRAIT_RAND_25,
	TRAIT_RAND_50,
	TRAIT_CLONE,
	TRAIT_EASY_SPELL,
	TRAIT_DEC_MANA,
	TRAIT_HARD_SPELL,
	TRAIT_CURSE_OF_ILUVATAR,
	TRAIT_DOWN_SAVING,
	TRAIT_EASY_MULTI_WEAPON,
	TRAIT_PARRYING_WEAPON,
	TRAIT_NO_PET,
	TRAIT_NO_GENOCIDE,
	TRAIT_LEFT_HANDER,
	TRAIT_NO_DEVOTEE,
	TRAIT_STUPID,
	TRAIT_SMART,
	TRAIT_CAN_SPEAK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HELL_LANCE,
	TRAIT_HP_TO_SP_ACTIVE,
	TRAIT_SP_TO_HP_ACTIVE,
	TRAIT_CONFUSING_LIGHT,
	TRAIT_POSTURE,
	TRAIT_DOUBLE_ATTACK,
	TRAIT_CLEAR_MIND,
	TRAIT_TAKE_PHOTO,
	TRAIT_IDENTIFY_TRUE,
	TRAIT_DOUBLE_REVENGE,
	TRAIT_DOMINATE_LIVE,
	TRAIT_DOMINATE_LIVES,
	TRAIT_CREATE_AMMO,
	TRAIT_ABSORB_MAGIC,
	TRAIT_STOP_SINGING,
	TRAIT_DOUBLE_MAGIC,
	TRAIT_CONCENTRATION,
	TRAIT_POSTURE2,
	TRAIT_LEARNING,
	TRAIT_RODEO,
	TRAIT_BREAK_MIRROR,
	TRAIT_MIRROR_CONC,
	TRAIT_WEAPON_JUDGE,
	TRAIT_QUICK_WALK,
	TRAIT_DETECT_DOOR_TRAP,
	TRAIT_CREATE_FOOD,
	TRAIT_SHADOW_SHIFT,
	TRAIT_PATTERN_WALK,
	TRAIT_EXPLOSIVE_RUNE,
	TRAIT_STONE_TO_MUD,
	TRAIT_THROW_BOULDER,
	TRAIT_SCARE_CREATURE,
	TRAIT_POISON_DART,
	TRAIT_MAGIC_MISSILE,
	TRAIT_MASSACRE,
	TRAIT_STAR_DESTROY,
	TRAIT_STAIR_BUILDING,
	TRAIT_STONE_SKIN,
	TRAIT_RESTORE_LIFE,
	TRAIT_DRAIN_LIFE,
	TRAIT_SLEEPING_DUST,
	TRAIT_EXPAND_HLIZN,
	TRAIT_RAY_GUN,
	TRAIT_BLASTER,
	TRAIT_BAZOOKA,
	TRAIT_BEAM_CANNON,
	TRAIT_SEXY_EQUIPMENT,
	TRAIT_VAMPIRIZE,
	TRAIT_SUMMON_DAWN_LEGION,
	TRAIT_SLAY_SMAUG,
	TRAIT_ILLUMINATION,
	TRAIT_DISPEL_EVIL_1,
	TRAIT_SUMMON_OCTOPUS,
	TRAIT_NO_EGO,
	TRAIT_BIZARRE_THING_OF_TH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IT_TRUE_HEALING2,
	TRAIT_XXX0800,
	TRAIT_RES_STR,
	TRAIT_RES_INT,
	TRAIT_RES_WIS,
	TRAIT_RES_DEX,
	TRAIT_RES_CON,
	TRAIT_RES_CHR,
	TRAIT_INC_STR,
	TRAIT_INC_INT,
	TRAIT_INC_WIS,
	TRAIT_INC_DEX,
	TRAIT_INC_CON,
	TRAIT_INC_CHR,
	TRAIT_DEC_STR,
	TRAIT_DEC_INT,
	TRAIT_DEC_WIS,
	TRAIT_DEC_DEX,
	TRAIT_DEC_CON,
	TRAIT_DEC_CHR,
	TRAIT_SUPERHURT,
	TRAIT_UN_BONUS,
	TRAIT_UN_POWER,
	TRAIT_EAT_GOLD,
	TRAIT_EAT_ITEM,
	TRAIT_EAT_FOOD,
	TRAIT_EAT_LITE,
	TRAIT_BLIND_BRAND,
	TRAIT_TERRIFY_BRAND,
	TRAIT_PARALYZE_BRAND,
	TRAIT_DISEASE_BRAND,
	TRAIT_MANA_DRAIN_BRAND,
	TRAIT_TIME_BRAND,
	TRAIT_EXP_VAMP_BRAND,
	TRAIT_LOSE_EXP_BRAND,
	TRAIT_BODYSIZE_BOOST,
	TRAIT_MIRROR_SHIELD,
	TRAIT_SUPERRAY,
	TRAIT_BINDING_FIELD,
	TRAIT_FOOD_POISONING_6D6,
	TRAIT_FOOD_POISONING_8D8,
	TRAIT_FOOD_POISONING_10D10,
	TRAIT_SELF_HEALING_2D8,
	TRAIT_SELF_HEALING_4D8,
	TRAIT_SELF_HEALING_6D8,
	TRAIT_SELF_HEALING_10D10,
	TRAIT_SELF_HEALING_30D20,
	TRAIT_SELF_HEALING_50D20,
	TRAIT_SELF_HEALING_80D20,
	TRAIT_SELF_HEALING_30D100,
	TRAIT_SELF_HEALING_100D100,
	TRAIT_DISPEL_UNDEAD,
	TRAIT_GENOCIDE_UNDEAD,
	TRAIT_TELEPORT_TOWN,
	TRAIT_SELF_KNOWLEDGE,
	TRAIT_GET_ULTRA_RESISTANCE,
	TRAIT_LIGHTNING_STORM,
	TRAIT_COLD_STORM,
	TRAIT_WATER_STORM,
	TRAIT_GAIN_EXP,
	TRAIT_CALL_THE_VOID,
	TRAIT_DETECT_NONLIVING,
	TRAIT_DETECT_EVIL,
	TRAIT_SONIC_BOOM,
	TRAIT_HEAL_OTHER,
	TRAIT_FORCE_FIST,
	TRAIT_MASS_SLEEP,
	TRAIT_TURN_UNDEAD,
	TRAIT_DETECT_ITEM_GOLD,
	TRAIT_MASS_TELE_AWAY,
	TRAIT_LIGHTNING_BEAM,
	TRAIT_NATURE_AWARENESS,
	TRAIT_MASS_SLOW,
	TRAIT_CREATE_FOREST,
	TRAIT_RUSTPROOF,
	TRAIT_CALL_SUNLIGHT,
	TRAIT_ENCHANT_ELEMENTAL_BRAND,
	TRAIT_NATURE_WRATH,
	TRAIT_GET_CONFUSING_MELEE,
	TRAIT_MANA_BURST,
	TRAIT_CHAIN_LIGHTNING,
	TRAIT_WANDER,
	TRAIT_BO_CHAO,
	TRAIT_STORM_CHAOS,
	TRAIT_POLYMORPH_OTHER,
	TRAIT_BA_DISI,
	TRAIT_ENCHANT_CHAOS_BRAND,
	TRAIT_BE_GRAV,
	TRAIT_BA_DRAI,
	TRAIT_GENOCIDE_ONE,
	TRAIT_ENCHANT_POISON_BRAND,
	TRAIT_INVOKE_SPIRITS,
	TRAIT_STORM_FIRE,
	TRAIT_BO_DARK,
	TRAIT_BATTLE_FRENZY,
	TRAIT_ENCHANT_VAMPIRIC_BRAND,
	TRAIT_DISPEL_LIVES,
	TRAIT_DEATH_RAY,
	TRAIT_MIRROR_SEEING,
	TRAIT_MIRROR_SET,
	TRAIT_GOOD_ITEM,
	TRAIT_MIRROR_BOLT,
	TRAIT_BOOK,
	TRAIT_MIRROR_CRASH,
	TRAIT_MIRROR_SLEEP,
	TRAIT_MIRROR_SEAL,
	TRAIT_GET_DUST_ROBE,
	TRAIT_STORM_MANA,
	TRAIT_HOLINESS,
	TRAIT_SPLASH_LITE,
	TRAIT_SLOW_SELF,
	TRAIT_HASTE_OTHERS,
	TRAIT_POLYMORPH_VAMPIRE,
	TRAIT_HELLFIRE,
	TRAIT_SHUFFLE,
	TRAIT_RESET_RECALL,
	TRAIT_HASTE_OTHER,
	TRAIT_ENCHANT_TRUMP_BRAND,
	TRAIT_BO_JAM,
	TRAIT_DETECT_INVISIBLE,
	TRAIT_LIVING_TRUMP,
	TRAIT_DESTROY_DOOR_TRAP_BEAM,
	TRAIT_PHLOGISTON,
	TRAIT_DETECT_OBJECT_MAGIC,
	TRAIT_GET_SEE_INVISIBLE,
	TRAIT_ELEMENTAL_BALL,
	TRAIT_GET_SEE_INFRA,
	TRAIT_GET_REGENERATE,
	TRAIT_GET_ELEMENT_BRAND,
	TRAIT_GET_PASS_WALL,
	TRAIT_ENCHANT_WEAPON_BOOST,
	TRAIT_ENCHANT_ARMOR_BOOST,
	TRAIT_ENCHANT_RANDOM_BRAND,
	TRAIT_GET_IMMUNE,
	TRAIT_GET_MAGIC_DEF,
	TRAIT_ENCHANT_REMOVE,
	TRAIT_BA_HELLFIRE,
	TRAIT_GET_RES_NETH,
	TRAIT_ENCHANT_FIRE_BRAND,
	TRAIT_DEVIL_CLOAK,
	TRAIT_FLOW_LAVA,
	TRAIT_POLYMORPH_DEMON,
	TRAIT_WAVE_NETHER,
	TRAIT_SUCCUBUS_KISS,
	TRAIT_GET_RES_TIME,
	TRAIT_INSANITY_CIRCLE,
	TRAIT_DISCHARGE_MINION,
	TRAIT_S_GREATER_DEMON,
	TRAIT_STORM_NETHER,
	TRAIT_CAUSE_BLOODY_CURSE,
	TRAIT_POLYMORPH_DEMONLORD,
	TRAIT_PUNISHMENT,
	TRAIT_HATE_FIRE,
	TRAIT_SANCTUARY,
	TRAIT_STAR_DUST,
	TRAIT_SCATTER_EVIL,
	TRAIT_BA_HOLYFIRE,
	TRAIT_EXORCISM,
	TRAIT_DOMINATE_DEMON,
	TRAIT_HOLY_WORD,
	TRAIT_GET_HOLY_AURA,
	TRAIT_ARREST_EVIL,
	TRAIT_DISPEL_UNDEAD_DEMON,
	TRAIT_ENCHANT_HOLY_BRAND,
	TRAIT_GET_EYE_FOR_EYE,
	TRAIT_WRATH_OF_GOD,
	TRAIT_DIVINE_INTERVENTION,
	TRAIT_CRUSADE,
	TRAIT_BO_SOUN,
	TRAIT_WEAPON_MASTER_JUDGE,
	TRAIT_MOON_DAZZLING,
	TRAIT_DETECT_DOOR,
	TRAIT_ACQUIREMENT1,
	TRAIT_ACQUIREMENT2,
	TRAIT_BEAM_DISARM,
	TRAIT_CREATE_CLONE,
	TRAIT_PESTICIDE,
	TRAIT_DISPEL_ALL,
	TRAIT_FETCH_CREATURE,
	TRAIT_CAPTURE_CREATURE,
	TRAIT_MIND_WAVE,
	TRAIT_GET_LIGHT_SPEED,
	TRAIT_GET_AURA_MANA,
	TRAIT_GET_RESIST_MAGIC,
	TRAIT_BEAM_MANA,
	TRAIT_IMPROVE_FORCE,
	TRAIT_SHOCK_WAVE,
	TRAIT_GET_LEVITATION,
	TRAIT_PULVERISE,
	TRAIT_PSI_DRAIN,
	TRAIT_TRAP_WALK,
	TRAIT_GET_KAWARIMI,
	TRAIT_GET_MULTI_SHADOW,
	TRAIT_ARREST_CREATURE,
	TRAIT_KATON,
	TRAIT_RUSH_ATTACK,
	TRAIT_SPREADING_THROW,
	TRAIT_CHAIN_HOOK,
	TRAIT_SMOKE_BALL,
	TRAIT_FIRE_SWARM,
	TRAIT_HIDE_IN_MYST,
	TRAIT_SEEKER_RAY,
	MAX_TRAITS,
};


// Store types
enum STORE_TYPE
{
	STORE_GENERAL,
	STORE_ARMOURY,
	STORE_WEAPON,
	STORE_TEMPLE,
	STORE_ALCHEMIST,
	STORE_MAGIC,
	STORE_BLACK,
	STORE_HOME,
	STORE_BOOK,
	STORE_MUSEUM,
	STORE_ART,
};

// Reward types
enum REWARD_TYPE
{
	REW_POLY_SLF,
	REW_GAIN_EXP,
	REW_LOSE_EXP,
	REW_GOOD_OBJ,
	REW_GREA_OBJ,
	REW_CHAOS_WP,
	REW_GOOD_OBS,
	REW_GREA_OBS,
	REW_TY_CURSE,
	REW_TRAIT_S_ENEMY,
	REW_H_SUMMON,
	REW_DO_HAVOC,
	REW_GAIN_ABL,
	REW_LOSE_ABL,
	REW_RUIN_ABL,
	REW_AUGM_ABL,
	REW_POLY_WND,
	REW_HEAL_FUL,
	REW_HURT_LOT,
	REW_CURSE_WP,
	REW_CURSE_AR,
	REW_PISS_OFF,
	REW_WRATH,
	REW_DESTRUCT,
	REW_GENOCIDE,
	REW_MASS_GEN,
	REW_DISPEL_C,
	REW_UNUSED_1,
	REW_UNUSED_2,
	REW_UNUSED_3,
	REW_UNUSED_4,
	REW_UNUSED_5,
	REW_IGNORE,
	REW_SER_UNDE,
	REW_SER_DEMO,
	REW_SER_MONS,
};

enum CLASS_BIAS_TYPE
{
	CLASS_TYPE_NONE,
	CLASS_TYPE_WARRIOR,
	CLASS_TYPE_MAGE,
	CLASS_TYPE_PRIEST,
	CLASS_TYPE_ROGUE,
	CLASS_TYPE_RANGER,
	CLASS_TYPE_PALADIN,
};

// "Biases"for random artifact gen
enum ARTIFACT_BIAS_TYPE
{
	BIAS_ELEC,
	BIAS_POIS,
	BIAS_FIRE,
	BIAS_COLD,
	BIAS_ACID,
	BIAS_STR,
	BIAS_INT,
	BIAS_WIS,
	BIAS_DEX,
	BIAS_CON,
	BIAS_CHR,
	BIAS_CHAOS,
	BIAS_PRIESTLY,
	BIAS_NECROMANTIC,
	BIAS_LAW,
	BIAS_ROGUE,
	BIAS_MAGE,
	BIAS_WARRIOR,
	BIAS_RANGER,
};


// Legal restrictions for "summoning()"
//TODO marger to trait.
enum TRAIT_S_TYPE_ID
{
	TRAIT_S_HI_DEMON,
	TRAIT_S_HI_MOLD,
	TRAIT_S_ANIMAL_RANGER,
	TRAIT_S_KAMIKAZE_LIVING,
	TRAIT_S_EAGLES,
	TRAIT_S_GUARDIANS,
	TRAIT_S_LOUSE,
	TRAIT_S_MOLD,
	TRAIT_S_MIMIC,
	TRAIT_S_BAT,
	TRAIT_S_VORTEX,
	TRAIT_S_CREEPING_COIN,
	TRAIT_S_KAMIKAZE,
	TRAIT_S_LIVING,
	TRAIT_S_HI_DRAGON_LIVING,
	TRAIT_S_GOLEM,
	TRAIT_S_MANES,
	TRAIT_S_KNIGHTS,
	TRAIT_S_QUYLTHULG,
	TRAIT_S_BLUE_HORROR,
	TRAIT_S_HYBRID,
	TRAIT_S_BIRD,
	TRAIT_S_PIRANHAS,
	TRAIT_S_ARMAGE_GOOD,
	TRAIT_S_ARMAGE_EVIL,
};


/*
 * Alignment 
 */
enum ALIGNMENT_TYPE_ID
{
	ALIGNMENT_GOOD,
	ALIGNMENT_EVIL,
	ALIGNMENT_ORDER,
	ALIGNMENT_CHAOS,
	ALIGNMENT_BALANCE,
};

enum DAMAGE_PROCESS_TYPE
{
	DAMAGE_FORCE,
	DAMAGE_GENO,
	DAMAGE_LOSELIFE,
	DAMAGE_ATTACK,
	DAMAGE_NOESCAPE,
	DAMAGE_USELIFE,
};

enum SAVING_THROW_TYPE {
	SAVING_AC,
	SAVING_EV,
	SAVING_VO,
};

enum TRAP_TYPE {
	NOT_TRAP,
	TRAP_TRAPDOOR,
	TRAP_PIT,
	TRAP_SPIKED_PIT,
	TRAP_POISON_PIT,
	TRAP_TY_CURSE,
	TRAP_TELEPORT,
	TRAP_FIRE,
	TRAP_ACID,
	TRAP_SLOW,
	TRAP_LOSE_STR,
	TRAP_LOSE_DEX,
	TRAP_LOSE_CON,
	TRAP_BLIND,
	TRAP_CONFUSE,
	TRAP_POISON,
	TRAP_SLEEP,
	TRAP_TRAPS,
	TRAP_ALARM,
	TRAP_OPEN,
	TRAP_ARMAGEDDON,
	TRAP_PIRANHA,
	TRAP_ACID_FLOW,
	TRAP_POISON_FLOW,

};

enum TRAIT_EFFECT_TYPE
{
	TRAIT_EFFECT_TYPE_CONSTANT,
	TRAIT_EFFECT_TYPE_SELF,
	TRAIT_EFFECT_TYPE_TARGET,
	TRAIT_EFFECT_TYPE_ADJACENCY,
	TRAIT_EFFECT_TYPE_ADJACENCY2,
	TRAIT_EFFECT_TYPE_POSTURE,
	TRAIT_EFFECT_TYPE_MEAT,
};

enum ACTIVE_TRAIT_OPTION
{
	AT_OPTION_USE_MOUTH = 0x00000001,
};


enum PET_COMMANDS
{
	PET_DISMISS,
	PET_TARGET,
	PET_STAY_CLOSE,
	PET_FOLLOW_ME,
	PET_SEEK_AND_DESTROY,
	PET_ALLOW_SPACE,
	PET_STAY_AWAY,
	PET_OPEN_DOORS,
	PET_TAKE_ITEMS,
	PET_TELEPORT,
	PET_ATTACK_SPELL,
	PET_TRAIT_S_SPELL,
	PET_BALL_SPELL,
	PET_RIDING,
	PET_NAME,
	PET_RYOUTE,
};

enum CAMP
{
	CAMP_STIGMATIC,
	CAMP_RUFFIAN,
	CAMP_NATIVE,
	CAMP_UTUMNO,
	CAMP_MORDOR,
	CAMP_AVARI,
	CAMP_NUMENOR,
	CAMP_ISENGARD,
	CAMP_VALINOR,
	CAMP_AMBER,
	CAMP_AM_CHAOS,
	CAMP_WH_CHAOS,
	CAMP_EC_CHAOS,
};

enum RECORD_NAMED_PET
{
	RECORD_NAMED_PET_NAME,
	RECORD_NAMED_PET_UNNAME,
	RECORD_NAMED_PET_DISMISS,
	RECORD_NAMED_PET_DEATH,
	RECORD_NAMED_PET_MOVED,
	RECORD_NAMED_PET_LOST_SIGHT,
	RECORD_NAMED_PET_DESTROY,
	RECORD_NAMED_PET_EARTHQUAKE,
	RECORD_NAMED_PET_GENOCIDE,
	RECORD_NAMED_PET_WIZ_ZAP,
	RECORD_NAMED_PET_TELE_LEVEL,
	RECORD_NAMED_PET_BLAST,
	RECORD_NAMED_PET_HEAL_LEPER,
	RECORD_NAMED_PET_COMPACT,
	RECORD_NAMED_PET_LOSE_PARENT,
};

enum LOAD_ERROR
{
	LOAD_ERROR_NONE,
	LOAD_ERROR_TOO_MANY_INVENTORY,
	LOAD_ERROR_TOO_MANY_ITEM,
	LOAD_ERROR_ALLOC_ITEM,
	LOAD_ERROR_TOO_MANY_CREATURE,
	LOAD_ERROR_ALLOC_CREATURE,
	LOAD_ERROR_FLOOR_DATA,
	LOAD_ERROR_TMPFILE,
	LOAD_ERROR_183,
	LOAD_ERROR_TOO_MANY_ITEM_KIND,
	LOAD_ERROR_TOO_MANY_TOWN,
	LOAD_ERROR_TOO_MANY_QUEST,
	LOAD_ERROR_TOO_MANY_ARTIFACT,
	LOAD_ERROR_INVALID_OBJECT,
	LOAD_ERROR_INVALID_FLOOR
};

enum OPT_PAGE
{
	OPT_PAGE_INPUT,
	OPT_PAGE_MAPSCREEN,
	OPT_PAGE_TEXT,
	OPT_PAGE_GAMEPLAY,
	OPT_PAGE_DISTURBANCE,
	OPT_PAGE_BIRTH,
	OPT_PAGE_AUTODESTROY,
	OPT_PAGE_PLAYRECORD,
	OPT_PAGE_AUTOSAVE,
	OPT_PAGE_JAPANESE_ONLY,
	OPT_PAGE_DEBUG,
	OPT_MAX,
};
