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

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

// Definitions for STRATEGY
const STRATEGY_DEF
glb_strategydefs[NUM_STRATEGYS] =
{
  {
    "None",
  },
  {
    "Charge!",
  },
  {
    "Pincer",
  },
  {
    "Line",
  },
  {
    "Hold Center",
  },
  {
    "Reserve",
  },
  {
    "Pair-up",
  },
  {
    "Flank",
  },

};
// Definitions for SOLDIER
const SOLDIER_DEF
glb_soldierdefs[NUM_SOLDIERS] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for PHASE
const PHASE_DEF
glb_phasedefs[NUM_PHASES] =
{
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for EFFECTCLASS
const EFFECTCLASS_DEF
glb_effectclassdefs[NUM_EFFECTCLASSS] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for EFFECT
const EFFECT_DEF
glb_effectdefs[NUM_EFFECTS] =
{
  {
    EFFECTCLASS_NONE,
    ELEMENT_NONE,
    0,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_FIRE,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_FIRE,
    5,
    0,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_ICE,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_ICE,
    5,
    0,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_POISON,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_POISON,
    5,
    0,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_ACID,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_ELECTRICITY,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_POISON,
    ELEMENT_NONE,
    10,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_VULN_FIRE,
  },
  {
    EFFECTCLASS_POISON,
    ELEMENT_NONE,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_HASTED,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    100,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_PLAGUE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ACID,
    0,
    3,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_FIRE,
    0,
    10,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ICE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_FIRE,
    0,
    20,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ICE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ICE,
    0,
    5,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ELECTRICITY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ICE,
    0,
    30,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ELECTRICITY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_PHYSICAL,
    0,
    15,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_PHYSICAL,
    0,
    50,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_HEAL,
    ELEMENT_PHYSICAL,
    0,
    30,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_VULN_FIRE_PARTY,
  },
  {
    EFFECTCLASS_CURE,
    ELEMENT_PHYSICAL,
    0,
    0,
    true,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_FIRE_PARTY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ICE,
    0,
    10,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ELECTRICITY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ICE,
    0,
    15,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ELECTRICITY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ACID,
    0,
    20,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_POISON,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ACID,
    0,
    30,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_POISON,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ELECTRICITY,
    0,
    30,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ACID,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ELECTRICITY,
    0,
    20,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ACID,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_POISON,
    0,
    15,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_SPELL_POISON,
  },
  {
    EFFECTCLASS_POISON,
    ELEMENT_NONE,
    5,
    0,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_VULN_FIRE_PARTY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_POISON,
    0,
    15,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_SPELL_POISON,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_FIRE,
    0,
    20,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ICE,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    20,
    0,
    true,
    DISTRIBUTION_UNIFORM,
    ITEM_REGEN,
    EFFECT_VULN_ICE_PARTY,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ELECTRICITY,
    0,
    15,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_SPELL_LIGHTNING_SLOW,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    5,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_SLOW,
    EFFECT_VULN_ACID,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ELECTRICITY,
    0,
    20,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_NONE,
    EFFECT_VULN_ACID,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    10,
    0,
    false,
    DISTRIBUTION_UNIFORM,
    ITEM_HASTED,
    EFFECT_VULN_POISON,
  },
  {
    EFFECTCLASS_HEAL,
    ELEMENT_ACID,
    0,
    20,
    true,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_VULN_POISON_PARTY,
  },
  {
    EFFECTCLASS_GAINITEM,
    ELEMENT_NONE,
    10,
    10,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_HASTED,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_HEAL,
    ELEMENT_NONE,
    0,
    10,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_HEAL,
    ELEMENT_NONE,
    0,
    20,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_HEAL,
    ELEMENT_NONE,
    0,
    50,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_VULNERABLE,
    ELEMENT_ACID,
    15,
    10,
    false,
    DISTRIBUTION_GAUSSIAN,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_RESIST,
    ELEMENT_ACID,
    15,
    10,
    false,
    DISTRIBUTION_GAUSSIAN,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_DAMAGE,
    ELEMENT_ACID,
    0,
    15,
    false,
    DISTRIBUTION_BIMODAL,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_POISON,
    ELEMENT_NONE,
    10,
    5,
    false,
    DISTRIBUTION_GAUSSIAN,
    ITEM_NONE,
    EFFECT_NONE,
  },
  {
    EFFECTCLASS_CURE,
    ELEMENT_NONE,
    0,
    0,
    false,
    DISTRIBUTION_CONSTANT,
    ITEM_NONE,
    EFFECT_NONE,
  },

};
// Definitions for ELEMENT
const ELEMENT_DEF
glb_elementdefs[NUM_ELEMENTS] =
{
  {
    "none",
    '-',
    ATTR_LIGHTBLACK,
    "enunciate",
  },
  {
    "physical",
    'K',
    ATTR_BROWN,
    "hit",
  },
  {
    "poison",
    'P',
    ATTR_GREEN,
    "poison",
  },
  {
    "acid",
    'A',
    ATTR_ORANGE,
    "dissolve",
  },
  {
    "light",
    'L',
    ATTR_YELLOW,
    "blind",
  },
  {
    "electricity",
    'E',
    ATTR_PURPLE,
    "zap",
  },
  {
    "fire",
    'F',
    ATTR_RED,
    "burn",
  },
  {
    "ice",
    'I',
    ATTR_WHITE,
    "freeze",
  },

};
// Definitions for WEAPONCLASS
const WEAPONCLASS_DEF
glb_weaponclassdefs[NUM_WEAPONCLASSS] =
{
  {
    "no",
  },
  {
    "pointed",
  },
  {
    "blunt",
  },
  {
    "edged",
  },
  {
    "ranged",
  },

};
// Definitions for ATTACKSTYLE
const ATTACKSTYLE_DEF
glb_attackstyledefs[NUM_ATTACKSTYLES] =
{
  {
  },
  {
  },
  {
  },

};
// Definitions for ROOMTYPE
const ROOMTYPE_DEF
glb_roomtypedefs[NUM_ROOMTYPES] =
{
  {
    "x",
    true,
    true,
    false,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "village",
    false,
    false,
    false,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "room",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "atrium",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "corridor",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "barracks",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "guardhouse",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "throneroom",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "vault",
    true,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "library",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "kitchen",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "dining room",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_INVALID,
    "pantry",
    false,
  },
  {
    "y",
    false,
    true,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    true,
    true,
    TILE_CAVEWALL,
    TILE_CAVEFLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    true,
    true,
    TILE_CAVEWALL,
    TILE_DARKCAVEFLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    true,
    true,
    TILE_MAZEWALL,
    TILE_MAZEFLOOR,
    TILE_PATH,
    TILE_MAZEDOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    true,
    true,
    TILE_WALL,
    TILE_FLOOR,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },
  {
    "y",
    false,
    false,
    true,
    TILE_WALL,
    TILE_GRASS,
    TILE_PATH,
    TILE_DOOR,
    TILE_TUNNELWALL,
    "room",
    false,
  },

};
// Definitions for LEVEL
const LEVEL_DEF
glb_leveldefs[NUM_LEVELS] =
{
  {
    0,
    ROOMTYPE_ROGUE,
  },
  {
    0,
    ROOMTYPE_ROGUE,
  },
  {
    0,
    ROOMTYPE_ROGUE,
  },
  {
    0,
    ROOMTYPE_DARKCAVE,
  },
  {
    0,
    ROOMTYPE_ROGUE,
  },
  {
    0,
    ROOMTYPE_BIGROOM,
  },
  {
    0,
    ROOMTYPE_MAZE,
  },
  {
    0,
    ROOMTYPE_CAVE,
  },
  {
    0,
    ROOMTYPE_MAZE,
  },
  {
    0,
    ROOMTYPE_CAVE,
  },
  {
    0,
    ROOMTYPE_MAZE,
  },

};
// Definitions for GAMERULES
const GAMERULES_DEF
glb_gamerulesdefs[NUM_GAMERULESS] =
{
  {
    10,
  },

};
// Definitions for YELL
const YELL_DEF
glb_yelldefs[NUM_YELLS] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for OPTION
const OPTION_DEF
glb_optiondefs[NUM_OPTIONS] =
{
  {
    "Instructions",
  },
  {
    "Welcome Message",
  },
  {
    "Play",
  },
  {
    "Toggle Full Screen",
  },
  {
    "About",
  },
  {
    "Quit",
  },

};
// Definitions for ACTION
const ACTION_DEF
glb_actiondefs[NUM_ACTIONS] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for GOSSIP
const GOSSIP_DEF
glb_gossipdefs[NUM_GOSSIPS] =
{
  {
    "intro",
  },
  {
    "meditate",
  },
  {
    "equip",
  },

};
// Definitions for ATTR
const ATTR_DEF
glb_attrdefs[NUM_ATTRS] =
{
  {
    0,
    0,
    0,
    255,
    255,
    255,
    false,
  },
  {
    0,
    0,
    0,
    255,
    196,
    64,
    false,
  },
  {
    255,
    0,
    0,
    0,
    0,
    0,
    false,
  },
  {
    0,
    128,
    0,
    255,
    255,
    255,
    false,
  },
  {
    255,
    192,
    128,
    0,
    0,
    0,
    false,
  },
  {
    16,
    96,
    16,
    192,
    192,
    192,
    false,
  },
  {
    255,
    196,
    64,
    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,
  },
  {
    128,
    128,
    128,
    0,
    0,
    0,
    false,
  },
  {
    20,
    40,
    196,
    0,
    0,
    0,
    false,
  },
  {
    196,
    64,
    196,
    0,
    0,
    0,
    false,
  },
  {
    255,
    128,
    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,
    64,
    255,
    255,
    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,
    255,
    255,
    128,
    false,
  },
  {
    255,
    255,
    0,
    0,
    0,
    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,
    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,
  },
  {
    255,
    255,
    255,
    0,
    0,
    0,
    false,
  },
  {
    0,
    0,
    0,
    255,
    192,
    64,
    false,
  },
  {
    0,
    0,
    0,
    192,
    128,
    64,
    false,
  },
  {
    255,
    192,
    64,
    0,
    0,
    0,
    false,
  },
  {
    0,
    0,
    0,
    255,
    192,
    128,
    false,
  },
  {
    0,
    0,
    0,
    192,
    128,
    64,
    false,
  },
  {
    0,
    0,
    0,
    255,
    128,
    128,
    false,
  },
  {
    0,
    0,
    0,
    255,
    32,
    32,
    false,
  },
  {
    255,
    32,
    32,
    0,
    0,
    0,
    false,
  },
  {
    0,
    0,
    0,
    196,
    32,
    32,
    false,
  },
  {
    0,
    0,
    0,
    0,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    128,
    255,
    128,
    false,
  },
  {
    0,
    255,
    0,
    0,
    0,
    0,
    false,
  },
  {
    0,
    0,
    192,
    0,
    255,
    0,
    false,
  },
  {
    0,
    0,
    0,
    0,
    196,
    0,
    false,
  },
  {
    0,
    0,
    0,
    0,
    128,
    0,
    false,
  },
  {
    0,
    0,
    0,
    64,
    64,
    255,
    false,
  },
  {
    64,
    64,
    255,
    0,
    0,
    0,
    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,
    128,
    128,
    128,
    false,
  },
  {
    0,
    0,
    0,
    196,
    196,
    196,
    false,
  },
  {
    0,
    0,
    0,
    220,
    220,
    220,
    false,
  },
  {
    196,
    196,
    196,
    0,
    0,
    0,
    false,
  },
  {
    128,
    128,
    128,
    0,
    0,
    0,
    false,
  },
  {
    255,
    255,
    255,
    0,
    0,
    0,
    false,
  },

};
// Definitions for MAPFLAG
const MAPFLAG_DEF
glb_mapflagdefs[NUM_MAPFLAGS] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for TRAP
const TRAP_DEF
glb_trapdefs[NUM_TRAPS] =
{
  {
    '^',
    ATTR_NORMAL,
    ELEMENT_PHYSICAL,
    "no-trap",
    ITEM_NONE,
  },

};
// Definitions for EVENTTYPE
const EVENTTYPE_DEF
glb_eventtypedefs[NUM_EVENTTYPES] =
{
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },
  {
  },

};
// Definitions for TILE
const TILE_DEF
glb_tiledefs[NUM_TILES] =
{
  {
    '#',
    ATTR_BROWN,
    "wall",
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '&',
    ATTR_NORMAL,
    "none",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    'X',
    ATTR_INV_RED,
    "engraved monolith",
    false,
    true,
    true,
    false,
    true,
    false,
    false,
    true,
    true,
  },
  {
    'K',
    ATTR_RED,
    "large kobold statue",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '_',
    ATTR_RED,
    "blood-stained stone altar",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_NORMAL,
    "floor",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_NORMAL,
    "cave floor",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_NORMAL,
    "floor",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_NORMAL,
    "cave floor",
    true,
    false,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    'h',
    ATTR_BROWN,
    "wooden chair",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    'O',
    ATTR_LIGHTBROWN,
    "wooden table",
    false,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '>',
    ATTR_WHITE,
    "downstairs ([c] to climb)",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '<',
    ATTR_WHITE,
    "upstairs ([c] to climb)",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_WHITE,
    "snow covered ground",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_BROWN,
    "path",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_GREEN,
    "grass",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '.',
    ATTR_BROWN,
    "dirt",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '^',
    ATTR_GREEN_ISLE,
    "sacred isle",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '"',
    ATTR_BROWN,
    "field",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '"',
    ATTR_LIGHTBLACK,
    "frost-killed field",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '&',
    ATTR_FIRE,
    "cooking fire",
    false,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    ' ',
    ATTR_NORMAL,
    "tunnel wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_NORMAL,
    "wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_NORMAL,
    "maze wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_NORMAL,
    "cave wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_NORMAL,
    "wall",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_BROWN,
    "wooden wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_BROWN,
    "wall",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '*',
    ATTR_PURPLE,
    "portal",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '*',
    ATTR_ORANGEPORTAL,
    "orange portal",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '*',
    ATTR_BLUEPORTAL,
    "blue portal",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '^',
    ATTR_NORMAL,
    "mountain",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_NORMAL,
    "wall",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '^',
    ATTR_NORMAL,
    "mountain",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '%',
    ATTR_NORMAL,
    "broken wall",
    false,
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '+',
    ATTR_BROWN,
    "door",
    true,
    false,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '+',
    ATTR_BROWN,
    "door",
    true,
    false,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '#',
    ATTR_WHITE,
    "wall",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '^',
    ATTR_NORMAL,
    "mountain",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '^',
    ATTR_WHITE,
    "icy mountain",
    false,
    false,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    'W',
    ATTR_WHITE,
    "snowed in pass",
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '=',
    ATTR_BROWN,
    "bridge",
    true,
    true,
    true,
    false,
    true,
    false,
    false,
    false,
    false,
  },
  {
    '~',
    ATTR_BLUE,
    "water",
    false,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '~',
    ATTR_CYAN,
    "ice",
    true,
    true,
    true,
    false,
    false,
    false,
    true,
    false,
    false,
  },
  {
    '+',
    ATTR_DKGREEN,
    "bushes",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },
  {
    '&',
    ATTR_DKRGREEN,
    "forest",
    true,
    false,
    true,
    false,
    false,
    true,
    false,
    false,
    false,
  },
  {
    '&',
    ATTR_LIGHTBLACK,
    "leafless trees",
    true,
    true,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
  },

};
// Definitions for TERRAIN
const TERRAIN_DEF
glb_terraindefs[NUM_TERRAINS] =
{
  {
    TILE_NONE,
    0,
    0,
    0,
    0,
    30,
    500,
  },
  {
    TILE_GRASS,
    90,
    0,
    10,
    0,
    100,
    500,
  },
  {
    TILE_BUSH,
    10,
    0,
    90,
    0,
    40,
    300,
  },
  {
    TILE_FOREST,
    0,
    0,
    10,
    90,
    15,
    100,
  },
  {
    TILE_DIRT,
    10,
    90,
    0,
    0,
    130,
    600,
  },

};
// Definitions for AI
const AI_DEF
glb_aidefs[NUM_AIS] =
{
  {
    "Do Nothing",
    "They stand still doing nothing all day.  Much like your brother John.",
  },
  {
    "Stay at Home",
    "They stay at their home and do not wander off.",
  },
  {
    "Hang around Home",
    "They keep near their home territory.",
  },
  {
    "Charge on Sight",
    "They charge at any foes as soon as they see them.",
  },
  {
    "Attack with Friends",
    "They wait to form a pack before attacking.",
  },
  {
    "Move in Straight Lines",
    "They like to run straight and avoid turning.",
  },
  {
    "Tracker",
    "They can track a foe across a trackless wasteland.",
  },
  {
    "Avoids Diagonals",
    "They avoid taking any shortcuts.",
  },
  {
    "Flanks",
    "They dance around to attack from the flanks.",
  },
  {
    "Attacks from Afar",
    "They keep their distance to attack from afar.",
  },
  {
    "Runs Away",
    "They flee any danger.",
  },
  {
    "Hugs Walls",
    "They keep close to walls.",
  },
  {
    "Peaceful",
    "They do not seek any battle.",
  },
  {
    "Commits Genocide for Profit",
    "They kill any and all, even if it nets them naught but a dirty rag.",
  },
  {
    "Peacefully Inhabits Dungeons",
    "They form the backbone of properly civilized dungeons.",
  },

};
// Definitions for DISTRIBUTION
const DISTRIBUTION_DEF
glb_distributiondefs[NUM_DISTRIBUTIONS] =
{
  {
    "Always Same",
    "exactly",
  },
  {
    "Usually Similar",
    "about",
  },
  {
    "Widely Spread",
    "a variable",
  },
  {
    "Either BIG or small",
    "a highly variable",
  },

};
// Definitions for ATTACK
const ATTACK_DEF
glb_attackdefs[NUM_ATTACKS] =
{
  {
    "attack",
    "attack",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    1,
    0,
    DISTRIBUTION_UNIFORM,
  },
  {
    "punch",
    "fists",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    3,
    0,
    DISTRIBUTION_UNIFORM,
  },
  {
    "dissolve",
    "acid splash",
    EFFECT_VULN_POISON,
    ELEMENT_ACID,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "freeze",
    "ice mist",
    EFFECT_VULN_ELECTRICITY,
    ELEMENT_ICE,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "burn",
    "fire spray",
    EFFECT_VULN_ICE,
    ELEMENT_FIRE,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "zap",
    "electric spark",
    EFFECT_VULN_ACID,
    ELEMENT_ELECTRICITY,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "poison",
    "venom",
    EFFECT_POISONSPLASH,
    ELEMENT_POISON,
    2,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "bash",
    "broken weapon",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    5,
    -3,
    DISTRIBUTION_BIMODAL,
  },
  {
    "pierce",
    "bow",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    8,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "pierce",
    "bow",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    13,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "pierce",
    "bow",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    5,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "pierce",
    "bow",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    3,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "slash",
    "sword",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    11,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "slash",
    "sword",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    9,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "slash",
    "sword",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "slash",
    "sword",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    5,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "crush",
    "club",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    10,
    0,
    DISTRIBUTION_UNIFORM,
  },
  {
    "crush",
    "club",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    0,
    DISTRIBUTION_UNIFORM,
  },
  {
    "crush",
    "club",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    5,
    5,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "crush",
    "club",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    20,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "crush",
    "club",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    5,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "stab",
    "spear",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    10,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "stab",
    "spear",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "stab",
    "spear",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    10,
    -5,
    DISTRIBUTION_BIMODAL,
  },
  {
    "stab",
    "spear",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    15,
    5,
    DISTRIBUTION_BIMODAL,
  },
  {
    "bite",
    "teeth",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "smash",
    "arm",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "stab",
    "dagger",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    20,
    0,
    DISTRIBUTION_BIMODAL,
  },
  {
    "freeze",
    "arrow",
    EFFECT_VULN_ELECTRICITY,
    ELEMENT_ICE,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "burn",
    "arrow",
    EFFECT_VULN_POISON,
    ELEMENT_FIRE,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "poison",
    "arrow",
    EFFECT_VULN_FIRE,
    ELEMENT_POISON,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "dissolve",
    "arrow",
    EFFECT_VULN_POISON,
    ELEMENT_ACID,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "shock",
    "arrow",
    EFFECT_VULN_ACID,
    ELEMENT_ELECTRICITY,
    10,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "claw",
    "claws",
    EFFECT_NONE,
    ELEMENT_PHYSICAL,
    30,
    0,
    DISTRIBUTION_GAUSSIAN,
  },
  {
    "zap",
    "lightning",
    EFFECT_NONE,
    ELEMENT_ELECTRICITY,
    20,
    0,
    DISTRIBUTION_GAUSSIAN,
  },

};
// Definitions for HERO
const HERO_DEF
glb_herodefs[NUM_HEROS] =
{
  {
    "no-one",
    ATTR_NORMAL,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    SPELL_NONE,
    ELEMENT_NONE,
    30,
    50,
  },
  {
    "avatar",
    ATTR_CYAN,
    WEAPONCLASS_EDGE,
    SPELL_ICEBOLT,
    SPELL_ICEBREATH,
    ELEMENT_ICE,
    30,
    50,
  },
  {
    "Kor Smith",
    ATTR_LTRED,
    WEAPONCLASS_BLUNT,
    SPELL_FIREBOLT,
    SPELL_FORGEFIRE,
    ELEMENT_FIRE,
    50,
    60,
  },
  {
    "Eliza Smith",
    ATTR_WHITE,
    WEAPONCLASS_EDGE,
    SPELL_BLIZZARD,
    SPELL_ICEBALL,
    ELEMENT_ICE,
    40,
    50,
  },
  {
    "Rodney Baker",
    ATTR_ORANGE,
    WEAPONCLASS_RANGE,
    SPELL_ACIDSPLASH,
    SPELL_ACIDEXPLODE,
    ELEMENT_ACID,
    30,
    50,
  },
  {
    "Debbie Baker",
    ATTR_LTGREEN,
    WEAPONCLASS_BLUNT,
    SPELL_CURE,
    SPELL_HEAL,
    ELEMENT_POISON,
    100,
    30,
  },
  {
    "Treska",
    ATTR_YELLOW,
    WEAPONCLASS_PIERCE,
    SPELL_LIGHTNINGBOLT,
    SPELL_SHOCK,
    ELEMENT_ELECTRICITY,
    20,
    30,
  },
  {
    "T'losh",
    ATTR_LIGHTBLACK,
    WEAPONCLASS_PIERCE,
    SPELL_POISONTOUCH,
    SPELL_POISONCLOUD,
    ELEMENT_POISON,
    20,
    40,
  },
  {
    "Timmy",
    ATTR_LIGHTBLUE,
    WEAPONCLASS_RANGE,
    SPELL_SPARK,
    SPELL_BALLLIGHTNING,
    ELEMENT_ELECTRICITY,
    40,
    20,
  },
  {
    "Farmer Joe",
    ATTR_NORMAL,
    WEAPONCLASS_EDGE,
    SPELL_SHOTGUN,
    SPELL_BOULDER,
    ELEMENT_PHYSICAL,
    100,
    50,
  },
  {
    "Elder Krall",
    ATTR_RED,
    WEAPONCLASS_PIERCE,
    SPELL_FIREBALL,
    SPELL_FIREREGEN,
    ELEMENT_FIRE,
    100,
    50,
  },
  {
    "Al'kami",
    ATTR_ORANGEPORTAL,
    WEAPONCLASS_BLUNT,
    SPELL_ACIDSPEED,
    SPELL_ACIDHEAL,
    ELEMENT_ACID,
    100,
    60,
  },

};
// Definitions for MOB
const MOB_DEF
glb_mobdefs[NUM_MOBS] =
{
  {
    '!',
    ATTR_WHITE,
    "program error",
    "",
    false,
    ATTACK_NONE,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    1,
    0,
    0,
    0,
    0,
    0,
    AI_CHARGE,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    '@',
    ATTR_NORMAL,
    "Traveler",
    "",
    true,
    ATTACK_AVATAR,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    50,
    0,
    0,
    0,
    0,
    100,
    AI_HOME,
    100,
    EFFECT_PLAGUECORPSE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'r',
    ATTR_BROWN,
    "rat",
    "",
    false,
    ATTACK_RATBITE,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    10,
    0,
    0,
    0,
    1,
    100,
    AI_RAT,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'Y',
    ATTR_GREEN,
    "tridude",
    "",
    false,
    ATTACK_TRIDUDE,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    50,
    0,
    0,
    0,
    3,
    100,
    AI_CHARGE,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'k',
    ATTR_WHITE,
    "kobold ice archer",
    "",
    false,
    ATTACK_KOBOLD_DAGGER,
    true,
    ATTACK_KOBOLD_BOW_ICE,
    6,
    3,
    '/',
    ATTR_WHITE,
    30,
    0,
    0,
    0,
    3,
    50,
    AI_RANGECOWARD,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'k',
    ATTR_RED,
    "kobold fire archer",
    "",
    false,
    ATTACK_KOBOLD_DAGGER,
    true,
    ATTACK_KOBOLD_BOW_FIRE,
    6,
    3,
    '/',
    ATTR_RED,
    30,
    0,
    0,
    0,
    3,
    50,
    AI_RANGECOWARD,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'k',
    ATTR_GREEN,
    "kobold poison archer",
    "",
    false,
    ATTACK_KOBOLD_DAGGER,
    true,
    ATTACK_KOBOLD_BOW_POISON,
    6,
    3,
    '/',
    ATTR_GREEN,
    30,
    0,
    0,
    0,
    3,
    50,
    AI_RANGECOWARD,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'k',
    ATTR_ORANGE,
    "kobold acid archer",
    "",
    false,
    ATTACK_KOBOLD_DAGGER,
    true,
    ATTACK_KOBOLD_BOW_ACID,
    6,
    3,
    '/',
    ATTR_ORANGE,
    30,
    0,
    0,
    0,
    3,
    50,
    AI_RANGECOWARD,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    'k',
    ATTR_YELLOW,
    "kobold shock archer",
    "",
    false,
    ATTACK_KOBOLD_DAGGER,
    true,
    ATTACK_KOBOLD_BOW_ELECTRICITY,
    6,
    3,
    '/',
    ATTR_YELLOW,
    30,
    0,
    0,
    0,
    3,
    50,
    AI_RANGECOWARD,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    's',
    ATTR_RED,
    "fire slug",
    "",
    false,
    ATTACK_FIRESPLASH,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    20,
    0,
    0,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_ICE,
    ELEMENT_FIRE,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    's',
    ATTR_WHITE,
    "ice slug",
    "",
    false,
    ATTACK_ICESPLASH,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    20,
    0,
    0,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_ELECTRICITY,
    ELEMENT_ICE,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    's',
    ATTR_ORANGE,
    "acid slug",
    "",
    false,
    ATTACK_ACIDSPLASH,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    20,
    0,
    0,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    EFFECT_ACIDCORPSE,
    -1,
    ELEMENT_POISON,
    ELEMENT_ACID,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    's',
    ATTR_GREEN,
    "poison slug",
    "",
    false,
    ATTACK_POISONSPLASH,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    20,
    0,
    0,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    EFFECT_POISONCORPSE,
    -1,
    ELEMENT_FIRE,
    ELEMENT_POISON,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    's',
    ATTR_PURPLE,
    "zap slug",
    "",
    false,
    ATTACK_ELECTRICSPLASH,
    false,
    ATTACK_NONE,
    0,
    4,
    '*',
    ATTR_NORMAL,
    20,
    0,
    0,
    0,
    1,
    100,
    AI_CHARGE,
    100,
    EFFECT_HASTECORPSE,
    -1,
    ELEMENT_ACID,
    ELEMENT_ELECTRICITY,
    true,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },
  {
    '&',
    ATTR_RED,
    "Beezlbub",
    "",
    false,
    ATTACK_BOSS_CLAWS,
    true,
    ATTACK_BOSS_LIGHTNING,
    5,
    4,
    '%',
    ATTR_YELLOW,
    100,
    0,
    0,
    0,
    10,
    0,
    AI_PATHTO,
    100,
    EFFECT_NONE,
    -1,
    ELEMENT_NONE,
    ELEMENT_NONE,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    false,
    8,
    false,
    0,
  },

};
// Definitions for ARMOURSLOT
const ARMOURSLOT_DEF
glb_armourslotdefs[NUM_ARMOURSLOTS] =
{
  {
    "body",
    50,
  },

};
// Definitions for ITEMCLASS
const ITEMCLASS_DEF
glb_itemclassdefs[NUM_ITEMCLASSS] =
{
  {
    "miscellaneous",
    '~',
    100,
  },
  {
    "weapon",
    '(',
    200,
  },
  {
    "range weapon",
    '~',
    100,
  },
  {
    "armour",
    '[',
    100,
  },
  {
    "potion",
    '!',
    50,
  },
  {
    "spellbook",
    '+',
    100,
  },
  {
    "ring",
    '=',
    100,
  },
  {
    "food",
    '%',
    100,
  },
  {
    "furniture",
    'O',
    100,
  },

};
// Definitions for ITEM
const ITEM_DEF
glb_itemdefs[NUM_ITEMS] =
{
  {
    "Programming Error",
    -1,
    0,
    0,
    false,
    false,
    '!',
    ATTR_WHITE,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "portal stone",
    -1,
    0,
    1,
    false,
    false,
    '*',
    ATTR_ORANGEPORTAL,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "wish stone",
    -1,
    0,
    1,
    false,
    false,
    '*',
    ATTR_WISH,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "sword",
    -1,
    100,
    1,
    false,
    false,
    ')',
    ATTR_CYAN,
    false,
    true,
    false,
    1,
    ITEMCLASS_WEAPON,
    WEAPONCLASS_EDGE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_EDGE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "spear",
    -1,
    100,
    1,
    false,
    false,
    ')',
    ATTR_CYAN,
    false,
    true,
    false,
    1,
    ITEMCLASS_WEAPON,
    WEAPONCLASS_PIERCE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_POINT,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "hammer",
    -1,
    100,
    1,
    false,
    false,
    ')',
    ATTR_CYAN,
    false,
    true,
    false,
    1,
    ITEMCLASS_WEAPON,
    WEAPONCLASS_BLUNT,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_BLUNT,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "bow",
    -1,
    100,
    1,
    false,
    false,
    ')',
    ATTR_BROWN,
    false,
    true,
    false,
    1,
    ITEMCLASS_WEAPON,
    WEAPONCLASS_RANGE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_BROKEN,
    0,
    ARMOURSLOT_NONE,
    10,
    ATTACK_BOW,
    1,
    "shoot",
    '/',
    ATTR_BROWN,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "chair",
    -1,
    100,
    1,
    false,
    false,
    'h',
    ATTR_BROWN,
    false,
    true,
    true,
    2,
    ITEMCLASS_FURNITURE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    true,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "table",
    -1,
    100,
    1,
    false,
    false,
    'O',
    ATTR_BROWN,
    false,
    true,
    true,
    4,
    ITEMCLASS_FURNITURE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    true,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "shelf",
    -1,
    100,
    1,
    false,
    false,
    '?',
    ATTR_BROWN,
    false,
    true,
    true,
    2,
    ITEMCLASS_FURNITURE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    true,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "bed",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_BROWN,
    false,
    true,
    true,
    2,
    ITEMCLASS_FURNITURE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    true,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "statue",
    -1,
    100,
    1,
    false,
    false,
    '@',
    ATTR_BROWN,
    false,
    true,
    true,
    3,
    ITEMCLASS_FURNITURE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    true,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "heart of Baezl'bub",
    -1,
    0,
    0,
    false,
    false,
    '*',
    ATTR_RED,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "corpse",
    -1,
    0,
    0,
    false,
    false,
    '%',
    ATTR_DKRED,
    false,
    false,
    false,
    1,
    ITEMCLASS_FOOD,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "coin",
    -1,
    0,
    0,
    false,
    false,
    '$',
    ATTR_GOLD,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Running",
    -1,
    0,
    0,
    false,
    true,
    '!',
    ATTR_GREEN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Hasted",
    10,
    0,
    0,
    false,
    true,
    '!',
    ATTR_GREEN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <be> sped up!",
    "%S <slow> down!",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Blinded",
    10,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    true,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <be> blinded!",
    "%S can see!",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Enraged",
    -1,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    true,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <be> enraged!",
    "%S <calm> down.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Poisoned",
    10,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <be> poisoned!",
    "%S <be> cured.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Regenerate",
    10,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <heal> at a rapid rate!",
    "%S <stop> healing quickly.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Resist",
    10,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <resist> %E!",
    "%S no longer <resist> %E.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Vulnerable",
    10,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <be> vulnerable to %E!",
    "%S <be> no longer vulnerable to %E.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Sick",
    -1,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    true,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <fall> sick.",
    "%S <get> well.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Slow",
    4,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    true,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%r muscles slow.",
    "%S <regain> normal movement.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "Invulnerability",
    50,
    0,
    0,
    false,
    true,
    '&',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_NONE,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    "%S <become> invulnerable.",
    "%S <feel> vulnerable.",
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "ruby ring",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_RED,
    false,
    false,
    false,
    1,
    ITEMCLASS_RING,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "sapphire ring",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_BLUE,
    false,
    false,
    false,
    1,
    ITEMCLASS_RING,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "gold ring",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_GOLD,
    false,
    false,
    false,
    1,
    ITEMCLASS_RING,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "amethyst ring",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_PURPLE,
    false,
    false,
    false,
    1,
    ITEMCLASS_RING,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "diamond ring",
    -1,
    100,
    1,
    false,
    false,
    '=',
    ATTR_WHITE,
    false,
    false,
    false,
    1,
    ITEMCLASS_RING,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "red book of trivialities",
    -1,
    100,
    1,
    false,
    false,
    '+',
    ATTR_RED,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "green tome of minor points",
    -1,
    100,
    2,
    false,
    false,
    '+',
    ATTR_GREEN,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "orange novel of novice notes",
    -1,
    100,
    3,
    false,
    false,
    '+',
    ATTR_ORANGE,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "yellow grimoire useful writings",
    -1,
    100,
    4,
    false,
    false,
    '+',
    ATTR_YELLOW,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "white text of standard instruction",
    -1,
    100,
    5,
    false,
    false,
    '+',
    ATTR_WHITE,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "glowing scroll of high-level information",
    -1,
    100,
    6,
    false,
    false,
    '+',
    ATTR_FIRE,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "poisonous pages of powerful knowledge",
    -1,
    100,
    7,
    false,
    false,
    '+',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "banal writings of extreme import",
    -1,
    100,
    8,
    false,
    false,
    '+',
    ATTR_GREY,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "penultimate poetry of intense knowledge",
    -1,
    100,
    9,
    false,
    false,
    '+',
    ATTR_PURPLE,
    false,
    false,
    false,
    1,
    ITEMCLASS_SPELLBOOK,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    false,
  },
  {
    "red potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_RED,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "yellow potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_YELLOW,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "green potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_GREEN,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "blue potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_BLUE,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "purple potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_PURPLE,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "white potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_WHITE,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "glowing potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_BLUEPORTAL,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },
  {
    "cyan potion",
    -1,
    100,
    1,
    false,
    false,
    '!',
    ATTR_CYAN,
    false,
    false,
    false,
    1,
    ITEMCLASS_POTION,
    WEAPONCLASS_NONE,
    SPELL_NONE,
    0,
    0,
    false,
    false,
    1,
    ATTACK_NONE,
    0,
    ARMOURSLOT_NONE,
    0,
    ATTACK_NONE,
    1,
    "shoot",
    '*',
    ATTR_NORMAL,
    ITEM_NONE,
    false,
    false,
    true,
  },

};
// Definitions for SPELL
const SPELL_DEF
glb_spelldefs[NUM_SPELLS] =
{
  {
    "unnamed",
    "zap",
    "~~~",
    "Does nothing.",
    '*',
    ATTR_FIRE,
    0,
    false,
    0,
    true,
    false,
    false,
    1,
    10,
    false,
    EFFECT_NONE,
    ITEM_NONE,
  },
  {
    "Fire Bolt",
    "burn",
    "~~~",
    "Sends a scorching ray of fire at a foe.",
    '*',
    ATTR_FIRE,
    0,
    false,
    10,
    true,
    false,
    false,
    1,
    10,
    false,
    EFFECT_SPELL_FIREBOLT,
    ITEM_NONE,
  },
  {
    "Forge Fire",
    "burn",
    "~~~",
    "Produces a raging inferno around the caster.",
    '*',
    ATTR_FIRE,
    0,
    true,
    0,
    false,
    false,
    false,
    3,
    0,
    false,
    EFFECT_SPELL_FORGEFIRE,
    ITEM_NONE,
  },
  {
    "Blizzard",
    "freeze",
    "~~~",
    "Summons a freezing blizzard.",
    '*',
    ATTR_WHITE,
    0,
    false,
    5,
    false,
    false,
    false,
    3,
    0,
    false,
    EFFECT_SPELL_BLIZZARD,
    ITEM_NONE,
  },
  {
    "Iceball",
    "freeze",
    "~~~",
    "Sends forth an exploding ball of ice.",
    '*',
    ATTR_WHITE,
    0,
    true,
    0,
    true,
    false,
    false,
    2,
    10,
    false,
    EFFECT_SPELL_ICEBALL,
    ITEM_NONE,
  },
  {
    "Shotgun",
    "shoot",
    "~~~",
    "Fires a double-barreled shotgun at the foe.",
    '*',
    ATTR_NORMAL,
    0,
    false,
    10,
    true,
    true,
    false,
    1,
    5,
    false,
    EFFECT_SPELL_SHOTGUN,
    ITEM_NONE,
  },
  {
    "Boulder Throw",
    "smash",
    "~~~",
    "Throws a massive boulder at foe.",
    '0',
    ATTR_GREY,
    0,
    true,
    0,
    true,
    false,
    false,
    1,
    5,
    false,
    EFFECT_SPELL_BOULDER,
    ITEM_NONE,
  },
  {
    "Heal",
    "heal",
    "~~~",
    "Heals the wounds of the party.",
    '*',
    ATTR_GREEN,
    0,
    true,
    0,
    false,
    false,
    true,
    2,
    10,
    false,
    EFFECT_SPELL_HEAL,
    ITEM_NONE,
  },
  {
    "Cure",
    "cure",
    "~~~",
    "Cures the wounds of the party.",
    '*',
    ATTR_GREEN,
    0,
    false,
    10,
    false,
    false,
    true,
    2,
    10,
    false,
    EFFECT_SPELL_CURE,
    ITEM_NONE,
  },
  {
    "Ice Bolt",
    "freeze",
    "~~~",
    "Sends a frigid bolt of ice.",
    '/',
    ATTR_WHITE,
    0,
    false,
    10,
    true,
    true,
    true,
    1,
    10,
    false,
    EFFECT_SPELL_ICEBOLT,
    ITEM_NONE,
  },
  {
    "Ice Breath",
    "freeze",
    "~~~",
    "Exchale a cloud of super-cooled air.",
    '*',
    ATTR_WHITE,
    0,
    true,
    0,
    true,
    false,
    false,
    2,
    0,
    true,
    EFFECT_SPELL_ICEBREATH,
    ITEM_NONE,
  },
  {
    "Acid Splash",
    "dissolve",
    "~~~",
    "Sprays a splash of acid.",
    '*',
    ATTR_ORANGE,
    0,
    false,
    20,
    true,
    false,
    true,
    2,
    2,
    true,
    EFFECT_SPELL_ACIDSPLASH,
    ITEM_NONE,
  },
  {
    "Acid Explosion",
    "dissolve",
    "~~~",
    "A burst of acid sprays in all directions.",
    '*',
    ATTR_ORANGE,
    0,
    true,
    0,
    false,
    false,
    false,
    2,
    0,
    false,
    EFFECT_SPELL_ACIDEXPLODE,
    ITEM_NONE,
  },
  {
    "Lightning",
    "zap",
    "~~~",
    "Sends a bolt of lightning through one's foes.",
    '*',
    ATTR_YELLOW,
    0,
    false,
    20,
    true,
    true,
    false,
    1,
    15,
    false,
    EFFECT_SPELL_LIGHTNINGBOLT,
    ITEM_NONE,
  },
  {
    "Shock",
    "zap",
    "~~~",
    "A burst of high voltage energy zaps those too close.",
    '*',
    ATTR_YELLOW,
    0,
    true,
    0,
    false,
    false,
    false,
    2,
    10,
    false,
    EFFECT_SPELL_SHOCK,
    ITEM_NONE,
  },
  {
    "Poison Touch",
    "poison",
    "~~~",
    "Touches a foe with poison.",
    '*',
    ATTR_GREEN,
    0,
    false,
    3,
    true,
    false,
    false,
    1,
    1,
    true,
    EFFECT_SPELL_POISONTOUCH,
    ITEM_NONE,
  },
  {
    "Poison Cloud",
    "poison",
    "~~~",
    "Creates a cloud of noxious poison.",
    '*',
    ATTR_GREEN,
    0,
    true,
    0,
    true,
    false,
    true,
    2,
    5,
    false,
    EFFECT_SPELL_POISONCLOUD,
    ITEM_NONE,
  },
  {
    "Fireball",
    "burn",
    "~~~",
    "Sends a fireball to explode on your foes.",
    '*',
    ATTR_RED,
    0,
    false,
    20,
    true,
    false,
    true,
    2,
    10,
    false,
    EFFECT_SPELL_FIREBALL,
    ITEM_NONE,
  },
  {
    "Soul Fire",
    "heal",
    "~~~",
    "Spreads regenerating flames that heal.",
    '*',
    ATTR_RED,
    0,
    true,
    0,
    false,
    false,
    true,
    2,
    0,
    false,
    EFFECT_SPELL_FIREREGEN,
    ITEM_NONE,
  },
  {
    "Spark",
    "zap",
    "~~~",
    "A brief spark to discombulate nearby foes.",
    '*',
    ATTR_YELLOW,
    0,
    false,
    3,
    false,
    false,
    false,
    2,
    0,
    false,
    EFFECT_SPELL_SPARK,
    ITEM_NONE,
  },
  {
    "Ball Lightning",
    "zap",
    "~~~",
    "Chain of exploding balls of lightning.",
    '*',
    ATTR_YELLOW,
    0,
    true,
    0,
    true,
    true,
    true,
    2,
    10,
    false,
    EFFECT_SPELL_BALLIGHTNING,
    ITEM_NONE,
  },
  {
    "Speed",
    "haste",
    "~~~",
    "Speeds up one's metabolism to out-pace your foes.",
    '*',
    ATTR_ORANGE,
    0,
    false,
    25,
    false,
    false,
    true,
    1,
    0,
    false,
    EFFECT_SPELL_ACIDSPEED,
    ITEM_NONE,
  },
  {
    "Acidic Heal",
    "heal",
    "~~~",
    "Closes wounds with biologically potent acids.",
    '*',
    ATTR_ORANGE,
    0,
    true,
    0,
    false,
    false,
    true,
    1,
    0,
    false,
    EFFECT_SPELL_ACIDHEAL,
    ITEM_NONE,
  },

};
// Definitions for RING
const RING_DEF
glb_ringdefs[NUM_RINGS] =
{
  {
    "plain ring",
    ELEMENT_NONE,
    0,
    0,
  },
  {
    "ring of acid resist",
    ELEMENT_ACID,
    3,
    0,
  },
  {
    "ring of ice resist",
    ELEMENT_ICE,
    3,
    0,
  },
  {
    "ring of fire resist",
    ELEMENT_FIRE,
    3,
    0,
  },
  {
    "ring of poison resist",
    ELEMENT_POISON,
    3,
    0,
  },
  {
    "ring of electric resist",
    ELEMENT_ELECTRICITY,
    3,
    0,
  },

};
// Definitions for POTION
const POTION_DEF
glb_potiondefs[NUM_POTIONS] =
{
  {
    "water",
    EFFECT_NONE,
  },
  {
    "potion of speed",
    EFFECT_POTION_SPEED,
  },
  {
    "healing potion",
    EFFECT_POTION_HEAL,
  },
  {
    "greater healing potion",
    EFFECT_POTION_GREATERHEAL,
  },
  {
    "vial of acid vulnerability",
    EFFECT_POTION_ACIDVULN,
  },
  {
    "oil of acid resistance",
    EFFECT_POTION_ACIDRESIST,
  },
  {
    "bottle of acid",
    EFFECT_POTION_ACID,
  },
  {
    "poison potion",
    EFFECT_POTION_POISON,
  },
  {
    "cure potion",
    EFFECT_POTION_CURE,
  },

};
// Definitions for MATERIAL
const MATERIAL_DEF
glb_materialdefs[NUM_MATERIALS] =
{
  {
    "plogiston",
    "ether",
    false,
    0,
    ATTR_WHITE,
    false,
    false,
  },
  {
    "wood",
    "wooden",
    false,
    1,
    ATTR_BROWN,
    true,
    false,
  },
  {
    "stone",
    "stone",
    false,
    2,
    ATTR_DKGREY,
    false,
    false,
  },
  {
    "iron",
    "iron",
    true,
    3,
    ATTR_GREY,
    false,
    true,
  },
  {
    "silver",
    "silver",
    true,
    4,
    ATTR_WHITE,
    false,
    false,
  },
  {
    "steel",
    "steel",
    true,
    5,
    ATTR_CYAN,
    false,
    true,
  },
  {
    "gold",
    "gold",
    true,
    6,
    ATTR_GOLD,
    false,
    false,
  },
  {
    "aluminum",
    "aluminum",
    true,
    7,
    ATTR_LTGREY,
    false,
    false,
  },
  {
    "titanium",
    "titanium",
    true,
    8,
    ATTR_LIGHTBLUE,
    false,
    false,
  },

};
// Definitions for KEY
const KEY_DEF
glb_keydefs[NUM_KEYS] =
{
  {
    'k',
  },
  {
    'u',
  },
  {
    'y',
  },
  {
    'j',
  },
  {
    'n',
  },
  {
    'b',
  },
  {
    'w',
  },
  {
    'l',
  },
  {
    'h',
  },
  {
    'i',
  },
  {
    'I',
  },
  {
    'P',
  },
  {
    'O',
  },
  {
    'W',
  },
  {
    'A',
  },
  {
    'Q',
  },
  {
    'R',
  },
  {
    'g',
  },
  {
    ',',
  },
  {
    'x',
  },
  {
    'S',
  },
  {
    'r',
  },
  {
    'q',
  },
  {
    'e',
  },
  {
    'c',
  },
  {
    '<',
  },
  {
    '>',
  },

};
