// Automagically generated by enummaker.exe.
// DO NOT EDIT THIS FILE (Yes, I mean you!)

#include "mygba.h"
#include "glbdef.h"

// Definitions for POTION
const POTION_DEF
glb_potiondefs[NUM_POTIONS] =
{
  {
    "water",
  },
  {
    "heal potion",
  },
  {
    "cure potion",
  },
  {
    "poison potion",
  },
  {
    "fruit juice",
  },
  {
    "acid potion",
  },
  {
    "speed potion",
  },
};

// Definitions for RING
const RING_DEF
glb_ringdefs[NUM_RINGS] =
{
  {
    "plain ring",
    0,
    0,
    ELEMENT_NONE,
  },
  {
    "ring of cold resistance",
    50,
    0,
    ELEMENT_COLD,
  },
  {
    "ring of cold vulnerability",
    -25,
    0,
    ELEMENT_COLD,
  },
  {
    "ring of acid resistance",
    50,
    0,
    ELEMENT_ACID,
  },
  {
    "ring of acid vulnerability",
    -25,
    0,
    ELEMENT_ACID,
  },
  {
    "ring of deflection",
    0,
    50,
    ELEMENT_NONE,
  },
  {
    "magnetic ring",
    0,
    -25,
    ELEMENT_NONE,
  },
  {
    "ring of searching",
    0,
    0,
    ELEMENT_NONE,
  },
  {
    "ring of poison resistance",
    50,
    0,
    ELEMENT_POISON,
  },
  {
    "ring of poison vulnerability",
    -25,
    0,
    ELEMENT_POISON,
  },
};

// Definitions for WORLDSTATE
const WORLDSTATE_DEF
glb_worldstatedefs[NUM_WORLDSTATES] =
{
  {
    "choose",
  },
  {
    "quest",
  },
  {
    "complete",
  },
  {
    "state",
  },
  {
    "state",
  },
};

// Definitions for QUEST
const QUEST_DEF
glb_questdefs[NUM_QUESTS] =
{
  {
    "none",
    "none",
    0,
    MOB_NONE,
    ITEM_NONE,
    ATLAS_CRYPT,
    0,
    0,
  },
  {
    "the rare seeds",
    "grain",
    1,
    MOB_ADVISOR_PEACE,
    ITEM_QUEST_GRAIN,
    ATLAS_CRYPT,
    5,
    0,
  },
  {
    "smallpox vaccine",
    "cure",
    2,
    MOB_ADVISOR_PEACE,
    ITEM_QUEST_CURE,
    ATLAS_GOBLIN,
    5,
    0,
  },
  {
    "a source for clean water",
    "water",
    3,
    MOB_ADVISOR_PEACE,
    ITEM_QUEST_WATERFILTER,
    ATLAS_KOBOLD,
    5,
    0,
  },
  {
    "the preservation of milk",
    "milk",
    4,
    MOB_ADVISOR_PEACE,
    ITEM_QUEST_PASTEURIZATION,
    ATLAS_SLIME,
    5,
    0,
  },
  {
    "sticky flames",
    "fire",
    1,
    MOB_ADVISOR_WAR,
    ITEM_QUEST_FIRESCROLL,
    ATLAS_CRYPT,
    0,
    100,
  },
  {
    "explosives",
    "powder",
    2,
    MOB_ADVISOR_WAR,
    ITEM_QUEST_EXPLOSIVE,
    ATLAS_GOBLIN,
    0,
    100,
  },
  {
    "poison gas",
    "poison",
    3,
    MOB_ADVISOR_WAR,
    ITEM_QUEST_POISON,
    ATLAS_KOBOLD,
    0,
    100,
  },
  {
    "improved siege equipment",
    "trebuchet",
    4,
    MOB_ADVISOR_WAR,
    ITEM_QUEST_TREBUCHET,
    ATLAS_SLIME,
    0,
    100,
  },
  {
    "the BFG9000++",
    "bfg",
    5,
    MOB_ADVISOR_WAR,
    ITEM_QUEST_BFG,
    ATLAS_SLIME,
    0,
    100,
  },
};

// Definitions for MAGICMOVE
const MAGICMOVE_DEF
glb_magicmovedefs[NUM_MAGICMOVES] =
{
  {
    "sit quietly in a corner",
    ".................@.................",
    0,
    0,
    '?',
  },
  {
    "Impale",
    ".................@***..............",
    2,
    1,
    'a',
  },
  {
    "Blade Wall",
    "....*......*.....@*......*......*..",
    2,
    1,
    's',
  },
  {
    "Charge",
    "............*....o@*......*........",
    3,
    2,
    'd',
  },
  {
    "Leap Attack",
    "...........***...o*@*....***.......",
    4,
    2,
    'f',
  },
  {
    "Flash",
    "............!....@!!......!........",
    1,
    0,
    'g',
  },
};

// Definitions for SPELL
const SPELL_DEF
glb_spelldefs[NUM_SPELLS] =
{
  {
    "none",
    0,
    ITEM_NONE,
    false,
  },
};

// Definitions for ITEM
const ITEM_DEF
glb_itemdefs[NUM_ITEMS] =
{
  {
    "Programming Error",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '!',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "corpse",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '%',
    ATTR_DKRED,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "gold coin",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '$',
    ATTR_GOLD,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "arrow",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '/',
    ATTR_BROWN,
    12,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Hasted",
    "%S <speed> up!",
    "%S <slow> down.",
    "hit",
    "shoot",
    50,
    0,
    0,
    0,
    0,
    '!',
    ATTR_GREEN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Blinded",
    "%S <be> blinded!",
    "%S can see!",
    "hit",
    "shoot",
    5,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Enraged",
    "%S <be> enraged!",
    "%S <calm> down.",
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Poisoned",
    "%S <be> poisoned!",
    "%S <be> cured.",
    "hit",
    "shoot",
    10,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Sick",
    "%S <fall> sick.",
    "%S <get> well.",
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Slow",
    "%r muscles slow.",
    "%S <regain> normal movement.",
    "hit",
    "shoot",
    4,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "sausages",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_RED,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "bread",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_BROWN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "mushrooms",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_GREY,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "apple",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_RED,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "pickle",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_DKGREEN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Invulnerability",
    "%S <become> invulnerable.",
    "%S <feel> vulnerable.",
    "hit",
    "shoot",
    50,
    0,
    0,
    0,
    0,
    '&',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "crude bow",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    1,
    0,
    10,
    '(',
    ATTR_BROWN,
    1,
    0,
    0,
    0,
    5,
    0,
    1,
    1,
    '/',
    ATTR_BROWN,
    ITEM_ARROW,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "short bow",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    3,
    0,
    20,
    '(',
    ATTR_LIGHTBROWN,
    1,
    0,
    0,
    0,
    5,
    0,
    3,
    1,
    '/',
    ATTR_BROWN,
    ITEM_ARROW,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "long bow",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    4,
    0,
    40,
    '(',
    ATTR_LIGHTBROWN,
    1,
    0,
    0,
    0,
    6,
    0,
    8,
    1,
    '/',
    ATTR_BROWN,
    ITEM_ARROW,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "yew long bow",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    5,
    0,
    100,
    '(',
    ATTR_YELLOW,
    1,
    0,
    0,
    0,
    7,
    0,
    12,
    1,
    '/',
    ATTR_BROWN,
    ITEM_ARROW,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "kitchen knife",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '(',
    ATTR_GREY,
    1,
    0,
    1,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "The Freyblade",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    0,
    0,
    '(',
    ATTR_CYAN,
    1,
    0,
    1,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "crude stone dagger",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    1,
    0,
    0,
    '(',
    ATTR_GREY,
    1,
    0,
    2,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "bronze short sword",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    2,
    0,
    20,
    '(',
    ATTR_ORANGE,
    1,
    0,
    3,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "iron-shod staff",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    3,
    0,
    35,
    '(',
    ATTR_BROWN,
    1,
    0,
    5,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "short sword",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    3,
    0,
    50,
    '(',
    ATTR_DKCYAN,
    1,
    0,
    7,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "mace",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    4,
    0,
    75,
    '(',
    ATTR_LIGHTBLUE,
    1,
    0,
    10,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "long sword",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    4,
    0,
    100,
    '(',
    ATTR_CYAN,
    1,
    0,
    15,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "warhammer",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    5,
    0,
    150,
    '(',
    ATTR_LIGHTBLACK,
    1,
    0,
    18,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "crystal sword",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    5,
    0,
    200,
    '(',
    ATTR_WHITE,
    1,
    0,
    23,
    100,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "clothes",
    0,
    0,
    "hit",
    "shoot",
    -1,
    0,
    0,
    1,
    0,
    '[',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "leather armour",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    1,
    25,
    10,
    '[',
    ATTR_BROWN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "studded leather armour",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    2,
    50,
    20,
    '[',
    ATTR_LIGHTBROWN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "ring mail",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    3,
    75,
    35,
    '[',
    ATTR_LIGHTBLACK,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "chain mail",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    3,
    100,
    50,
    '[',
    ATTR_NORMAL,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "breast plate",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    4,
    150,
    75,
    '[',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "platemail",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    4,
    200,
    100,
    '[',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "full platemail",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    5,
    300,
    200,
    '[',
    ATTR_DKCYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "pacifier",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    ';',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "kobold doll",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    ';',
    ATTR_PURPLE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "stuffed toy dragon",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    ';',
    ATTR_RED,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "threadbare rag",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    ';',
    ATTR_GREY,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "vaccine vial",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '!',
    ATTR_GOLD,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "blight resistant seeds",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '"',
    ATTR_GOLD,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "water filter",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_CYAN,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "pasteurization process description",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '?',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "sticky fire recipe",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '?',
    ATTR_FIRE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "explosive powder",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '%',
    ATTR_GOLD,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "neurotoxic poison",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '!',
    ATTR_BLUEPORTAL,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Kitab Aniq fi al-Manajaniq",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '+',
    ATTR_WHITE,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "bigger f-ing gun",
    0,
    0,
    "hit",
    "shoot",
    -1,
    100,
    0,
    0,
    0,
    '(',
    ATTR_GOLD,
    1,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
};

// Definitions for MOB
const MOB_DEF
glb_mobdefs[NUM_MOBS] =
{
  {
    "program error",
    "claw",
    "thwack",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '!',
    ATTR_WHITE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    0,
    0,
    AI_NONE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "You",
    "fists",
    "punch",
    { 0, 0, 1 },
    "none",
    "hit",
    { 0, 0, 0 },
    '@',
    ATTR_WHITE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    100,
    0,
    0,
    100,
    AI_NONE,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "King Viola",
    "scepter",
    "smash",
    { 0, 0, 5 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '@',
    ATTR_GOLD,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    50,
    0,
    0,
    100,
    AI_HOME,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Map Table",
    "none",
    "smash",
    { 0, 0, 0 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'O',
    ATTR_BG_LAVENDER,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    250,
    0,
    0,
    100,
    AI_STAYHOME,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "Lord Patrick",
    "scroll",
    "bop",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '@',
    ATTR_RED,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    25,
    0,
    0,
    100,
    AI_HOME,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "General Julia",
    "great sword",
    "eviscerate",
    { 0, 0, 10 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '@',
    ATTR_DKGREEN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    25,
    0,
    0,
    100,
    AI_HOME,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "guard",
    "halberd",
    "slash",
    { 0, 0, 3 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '@',
    ATTR_LAVENDER,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    2,
    0,
    0,
    100,
    AI_STAYHOME,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "servant",
    "duster",
    "dust",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    '@',
    ATTR_GREY,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    0,
    100,
    AI_MOUSE,
    100,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "rat",
    "teeth",
    "bite",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'r',
    ATTR_BROWN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_RAT,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "bat",
    "teeth",
    "bite",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'B',
    ATTR_LIGHTBROWN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_FLANK,
    100,
    false,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "goblin",
    "teeth",
    "bite",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'g',
    ATTR_GREEN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "goblin guard",
    "mace",
    "bash",
    { 0, 0, 2 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'G',
    ATTR_GREEN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    2,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "goblin queen",
    "spiked club",
    "crush",
    { 0, 0, 2 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'G',
    ATTR_YELLOW,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    5,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "kobold",
    "fists",
    "punch",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'k',
    ATTR_PURPLE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    2,
    100,
    AI_RAT,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "kobold archer",
    "fists",
    "punch",
    { 0, 0, 1 },
    "bow",
    "shoot",
    { 0, 0, 1 },
    'k',
    ATTR_KOBOLD_ARCHER,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    5,
    '/',
    100,
    ATTR_BROWN,
    ELEMENT_PHYSICAL,
    1,
    0,
    2,
    100,
    AI_RAT,
    100,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "kobold guard",
    "stone knife",
    "stab",
    { 0, 0, 2 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'k',
    ATTR_KOBOLD_GUARD,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    2,
    0,
    2,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "kobold chief",
    "stone axe",
    "crush",
    { 0, 0, 2 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'K',
    ATTR_PURPLE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    5,
    0,
    2,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "baby kobold",
    "fists",
    "punch",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'k',
    ATTR_PINK,
    0,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_COWARD,
    100,
    false,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "slime",
    "corrosive spit",
    "dissolve",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'j',
    ATTR_SLIME,
    100,
    ITEM_NONE,
    ELEMENT_ACID,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "big slime",
    "corrosive spit",
    "dissolve",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'J',
    ATTR_SLIME,
    100,
    ITEM_NONE,
    ELEMENT_ACID,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    2,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "giant slime",
    "corrosive spit",
    "dissolve",
    { 0, 0, 2 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'J',
    ATTR_YELLOWSLIME,
    100,
    ITEM_NONE,
    ELEMENT_ACID,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    5,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "slug",
    "corrosive slime",
    "slime",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    's',
    ATTR_BROWN,
    100,
    ITEM_NONE,
    ELEMENT_ACID,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    3,
    50,
    AI_CHARGE,
    100,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "skeleton",
    "broken sword",
    "cut",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'z',
    ATTR_WHITE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "zombie",
    "broken chairleg",
    "bash",
    { 0, 0, 1 },
    "none",
    "pierce",
    { 0, 0, 0 },
    'z',
    ATTR_BROWN,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    0,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    1,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "skeleton captain",
    "long sword",
    "eviscerate",
    { 0, 0, 2 },
    "long bow",
    "pierce",
    { 0, 0, 1 },
    'Z',
    ATTR_WHITE,
    100,
    ITEM_NONE,
    ELEMENT_PHYSICAL,
    5,
    '*',
    100,
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    5,
    0,
    0,
    100,
    AI_RANGECOWARD,
    100,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
};

// Definitions for TILE
const TILE_DEF
glb_tiledefs[NUM_TILES] =
{
  {
    "wall",
    '#',
    ATTR_BROWN,
    MOB_NONE,
    0,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "none",
    '&',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "large kobold statue",
    'K',
    ATTR_RED,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "blood-stained stone altar",
    '_',
    ATTR_RED,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "golden throne",
    'W',
    ATTR_GOLD,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "floor",
    '.',
    ATTR_NORMAL,
    MOB_NONE,
    100,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "wooden chair",
    'h',
    ATTR_BROWN,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "wooden table",
    'O',
    ATTR_LIGHTBROWN,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "map table",
    'O',
    ATTR_BG_LAVENDER,
    MOB_MAPSHOP,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "exit",
    '>',
    ATTR_WHITE,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "floor",
    '.',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "thick carpet",
    '.',
    ATTR_BG_LAVENDER,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "thick carpet",
    '.',
    ATTR_BG_DKGREEN,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "snow covered ground",
    '.',
    ATTR_WHITE,
    MOB_NONE,
    20,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "path",
    '.',
    ATTR_BROWN,
    MOB_NONE,
    100,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "grass",
    '.',
    ATTR_GREEN,
    MOB_NONE,
    75,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "sacred isle",
    '^',
    ATTR_GREEN_ISLE,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "field",
    '"',
    ATTR_BROWN,
    MOB_NONE,
    75,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "frost-killed field",
    '"',
    ATTR_LIGHTBLACK,
    MOB_NONE,
    75,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "forge",
    '&',
    ATTR_FIRE,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "cooking fire",
    '&',
    ATTR_FIRE,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "wall",
    '#',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
  },
  {
    "city",
    '#',
    ATTR_WHITE,
    MOB_NONE,
    100,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "city",
    '#',
    ATTR_WHITE,
    MOB_NONE,
    100,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "desert",
    '-',
    ATTR_BROWN,
    MOB_NONE,
    75,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
  {
    "wooden wall",
    '#',
    ATTR_BROWN,
    MOB_NONE,
    0,
    false,
    false,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
  },
  {
    "wall",
    '#',
    ATTR_BROWN,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "portal",
    '*',
    ATTR_PURPLE,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "orange portal",
    '*',
    ATTR_ORANGEPORTAL,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "blue portal",
    '*',
    ATTR_BLUEPORTAL,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "mountain",
    '^',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "wall",
    '#',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    "mountain",
    '^',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "broken wall",
    '%',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
  },
  {
    "door",
    '+',
    ATTR_BROWN,
    MOB_NONE,
    0,
    true,
    false,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "wall",
    '#',
    ATTR_WHITE,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "mountain",
    '^',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "icy mountain",
    '^',
    ATTR_WHITE,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "snowy pass",
    'W',
    ATTR_WHITE,
    MOB_NONE,
    0,
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "bed",
    '=',
    ATTR_BLUE,
    MOB_NONE,
    0,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "window",
    'o',
    ATTR_NORMAL,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "portcullis",
    '!',
    ATTR_WHITE,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "locked chest",
    '+',
    ATTR_BROWN,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "bridge",
    '=',
    ATTR_BROWN,
    MOB_NONE,
    100,
    true,
    true,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    "water",
    '~',
    ATTR_BLUE,
    MOB_NONE,
    0,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    "ice",
    '~',
    ATTR_CYAN,
    MOB_NONE,
    10,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    true,
    true,
  },
  {
    "forest",
    '&',
    ATTR_DKGREEN,
    MOB_NONE,
    25,
    true,
    false,
    true,
    false,
    false,
    false,
    true,
    false,
    true,
  },
  {
    "leafless trees",
    '&',
    ATTR_LIGHTBLACK,
    MOB_NONE,
    25,
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    true,
  },
};

// Definitions for TRAP
const TRAP_DEF
glb_trapdefs[NUM_TRAPS] =
{
  {
    { 1, 2, 0 },
    "arrow trap",
    '/',
    ATTR_BROWN,
    ELEMENT_PHYSICAL,
    ITEM_ARROW,
  },
  {
    { 0, 0, 0 },
    "light trap",
    '^',
    ATTR_YELLOW,
    ELEMENT_LIGHT,
    ITEM_BLIND,
  },
  {
    { 1, 2, 0 },
    "pit trap",
    '^',
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    ITEM_NONE,
  },
  {
    { 1, 3, 0 },
    "fire trap",
    '&',
    ATTR_FIRE,
    ELEMENT_FIRE,
    ITEM_NONE,
  },
  {
    { 1, 2, 0 },
    "falling rock trap",
    '*',
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    ITEM_NONE,
  },
  {
    { 1, 2, 0 },
    "falling boulder trap",
    '0',
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    ITEM_NONE,
  },
  {
    { 1, 3, 0 },
    "spiked pit trap",
    '^',
    ATTR_CYAN,
    ELEMENT_PHYSICAL,
    ITEM_NONE,
  },
};

// Definitions for ATTR
const ATTR_DEF
glb_attrdefs[NUM_ATTRS] =
{
  {
    0,
    0,
    0,
    255,
    255,
    255,
    false,
  },
  {
    255,
    0,
    0,
    0,
    0,
    0,
    false,
  },
  {
    0,
    128,
    0,
    255,
    255,
    255,
    false,
  },
  {
    16,
    96,
    16,
    192,
    192,
    192,
    false,
  },
  {
    128,
    96,
    128,
    255,
    255,
    255,
    false,
  },
  {
    128,
    128,
    0,
    255,
    255,
    255,
    false,
  },
  {
    64,
    64,
    64,
    255,
    255,
    255,
    false,
  },
  {
    96,
    32,
    32,
    192,
    192,
    192,
    false,
  },
  {
    96,
    32,
    32,
    192,
    192,
    192,
    false,
  },
  {
    196,
    196,
    196,
    0,
    0,
    0,
    false,
  },
  {
    255,
    255,
    255,
    0,
    0,
    0,
    false,
  },
  {
    64,
    196,
    255,
    0,
    0,
    0,
    false,
  },
  {
    0,
    16,
    32,
    32,
    128,
    255,
    false,
  },
  {
    0,
    0,
    0,
    32,
    128,
    196,
    false,
  },
  {
    0,
    0,
    0,
    20,
    30,
    128,
    true,
  },
  {
    0,
    0,
    0,
    128,
    96,
    32,
    true,
  },
  {
    0,
    0,
    0,
    192,
    128,
    64,
    true,
  },
  {
    196,
    196,
    0,
    0,
    0,
    0,
    false,
  },
  {
    0,
    0,
    0,
    255,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    255,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    128,
    255,
    128,
    false,
  },
  {
    0,
    0,
    0,
    255,
    196,
    128,
    false,
  },
  {
    0,
    0,
    0,
    255,
    128,
    128,
    false,
  },
  {
    0,
    0,
    0,
    255,
    128,
    255,
    false,
  },
  {
    0,
    0,
    0,
    255,
    192,
    255,
    false,
  },
  {
    128,
    96,
    128,
    255,
    255,
    255,
    false,
  },
  {
    64,
    128,
    64,
    128,
    196,
    128,
    false,
  },
  {
    0,
    0,
    0,
    153,
    51,
    0,
    false,
  },
  {
    0,
    0,
    0,
    102,
    0,
    255,
    false,
  },
  {
    0,
    0,
    0,
    220,
    196,
    255,
    false,
  },
  {
    0,
    0,
    0,
    204,
    153,
    0,
    false,
  },
  {
    0,
    0,
    0,
    192,
    192,
    192,
    false,
  },
  {
    0,
    0,
    0,
    96,
    96,
    96,
    false,
  },
  {
    0,
    0,
    0,
    96,
    96,
    96,
    false,
  },
  {
    0,
    0,
    0,
    255,
    255,
    255,
    false,
  },
  {
    0,
    0,
    0,
    255,
    192,
    64,
    false,
  },
  {
    0,
    0,
    0,
    255,
    192,
    128,
    false,
  },
  {
    0,
    0,
    0,
    192,
    128,
    64,
    false,
  },
  {
    0,
    0,
    0,
    255,
    32,
    32,
    false,
  },
  {
    0,
    0,
    0,
    255,
    196,
    196,
    false,
  },
  {
    0,
    0,
    0,
    196,
    32,
    32,
    false,
  },
  {
    0,
    0,
    0,
    0,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    128,
    255,
    0,
    false,
  },
  {
    0,
    128,
    0,
    255,
    255,
    255,
    false,
  },
  {
    0,
    128,
    0,
    255,
    255,
    0,
    false,
  },
  {
    0,
    0,
    192,
    0,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    0,
    196,
    0,
    false,
  },
  {
    0,
    0,
    0,
    64,
    64,
    255,
    false,
  },
  {
    0,
    0,
    0,
    128,
    128,
    255,
    false,
  },
  {
    0,
    0,
    0,
    64,
    128,
    128,
    false,
  },
  {
    0,
    0,
    0,
    64,
    255,
    255,
    false,
  },
  {
    0,
    0,
    0,
    64,
    192,
    192,
    false,
  },
  {
    0,
    0,
    0,
    196,
    196,
    196,
    false,
  },
};

// Definitions for GOSSIP
const GOSSIP_DEF
glb_gossipdefs[NUM_GOSSIPS] =
{
  {
    "intro",
  },
  {
    "meditate",
  },
  {
    "sickness",
  },
  {
    "impass",
  },
  {
    "cold",
  },
  {
    "orcs",
  },
};

// Definitions for OPTION
const OPTION_DEF
glb_optiondefs[NUM_OPTIONS] =
{
  {
    "Instructions",
  },
  {
    "Resume Game",
  },
  {
    "Toggle Blood",
  },
  {
    "Toggle Full Screen",
  },
  {
    "Quit",
  },
};

// Definitions for ROOMTYPE
const ROOMTYPE_DEF
glb_roomtypedefs[NUM_ROOMTYPES] =
{
  {
    "x",
    1,
    1,
    3,
    192,
    192,
    192,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    true,
    true,
    "\x00",
  },
  {
    "throne",
    0,
    0,
    0,
    192,
    192,
    192,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    false,
    false,
    "\x00",
  },
  {
    "strategy",
    0,
    0,
    0,
    192,
    192,
    192,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    false,
    false,
    "\x00",
  },
  {
    "goblin",
    1,
    1,
    3,
    196,
    196,
    196,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    true,
    true,
    "\x00",
  },
  {
    "startgoblin",
    1,
    1,
    3,
    196,
    196,
    196,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
  {
    "finishgoblin",
    1,
    1,
    5,
    255,
    255,
    255,
    ITEM_NONE,
    0,
    MOB_GOBLIN_QUEEN,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
  {
    "kobold",
    0,
    1,
    3,
    192,
    128,
    192,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    true,
    true,
    "\x00",
  },
  {
    "startkobold",
    0,
    1,
    3,
    192,
    128,
    192,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
  {
    "finishkobold",
    0,
    1,
    5,
    192,
    128,
    192,
    ITEM_NONE,
    0,
    MOB_KOBOLD_CHIEF,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
  {
    "slime",
    1,
    1,
    3,
    128,
    192,
    128,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FOREST,
    true,
    true,
    "\x00",
  },
  {
    "startslime",
    1,
    1,
    0,
    128,
    192,
    128,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FOREST,
    false,
    true,
    "\x00",
  },
  {
    "finishslime",
    1,
    1,
    3,
    128,
    192,
    128,
    ITEM_NONE,
    0,
    MOB_GIANTSLIME,
    TILE_FOREST,
    false,
    true,
    "\x00",
  },
  {
    "crypt",
    1,
    1,
    3,
    128,
    128,
    128,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    true,
    true,
    "\x00",
  },
  {
    "startcrypt",
    1,
    1,
    3,
    128,
    128,
    128,
    ITEM_NONE,
    0,
    MOB_NONE,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
  {
    "finishcrypt",
    1,
    1,
    5,
    196,
    196,
    196,
    ITEM_NONE,
    0,
    MOB_SKELETONCAPTAIN,
    TILE_FLOOR,
    false,
    true,
    "\x00",
  },
};

// Definitions for ATLAS
const ATLAS_DEF
glb_atlasdefs[NUM_ATLASS] =
{
  {
    "Limbo",
    ROOMTYPE_NONE,
    ROOMTYPE_NONE,
    ROOMTYPE_NONE,
    "\x00",
    "\x00",
  },
  {
    "Viola's Castle",
    ROOMTYPE_THRONE,
    ROOMTYPE_NONE,
    ROOMTYPE_NONE,
    "\x00",
    "\x01",
  },
  {
    "Strategy Map",
    ROOMTYPE_STRATEGY,
    ROOMTYPE_NONE,
    ROOMTYPE_NONE,
    "\x00",
    "\x00",
  },
  {
    "Goblin Castle",
    ROOMTYPE_GOBLIN_START,
    ROOMTYPE_GOBLIN,
    ROOMTYPE_GOBLIN_FINISH,
    "\x0a\x0b\x08",
    "\x01\x02",
  },
  {
    "Kobold Cave",
    ROOMTYPE_KOBOLD_START,
    ROOMTYPE_KOBOLD,
    ROOMTYPE_KOBOLD_FINISH,
    "\x0d\x0e\x0f\x11",
    "\x01\x03\x02",
  },
  {
    "Slime Pits",
    ROOMTYPE_SLIME_START,
    ROOMTYPE_SLIME,
    ROOMTYPE_SLIME_FINISH,
    "\x12\x13\x15",
    "\x00",
  },
  {
    "Undead Crypt",
    ROOMTYPE_CRYPT_START,
    ROOMTYPE_CRYPT,
    ROOMTYPE_CRYPT_FINISH,
    "\x16\x17\x09",
    "\x01",
  },
};

// Definitions for ITEMLIST
const ITEMLIST_DEF
glb_itemlistdefs[NUM_ITEMLISTS] =
{
  {
    "\x00",
  },
  {
    "\x03\x10\x11\x12\x13\x14\x17\x19\x1a\x1c\x1f\x22\x24",
  },
  {
    "\x0a\x0b\x0c\x0d\x0e",
  },
  {
    "\x26\x27\x28\x29",
  },
};

// Definitions for ELEMENT
const ELEMENT_DEF
glb_elementdefs[NUM_ELEMENTS] =
{
  {
    "none",
  },
  {
    "physical",
  },
  {
    "poison",
  },
  {
    "fire",
  },
  {
    "cold",
  },
  {
    "acid",
  },
  {
    "light",
  },
};
