dbsc/clans/
dbsc/deity/
dbsc/houses/
dbsc/player/a/
dbsc/space/
/****************************************************************************
 * [S]imulated [M]edieval [A]dventure multi[U]ser [G]ame      |   \\._.//   *
 * -----------------------------------------------------------|   (0...0)   *
 * SMAUG 1.4 (C) 1994, 1995, 1996, 1998  by Derek Snider      |    ).:.(    *
 * -----------------------------------------------------------|    {o o}    *
 * SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus,      |   / ' ' \   *
 * Scryn, Rennard, Swordbearer, Gorog, Grishnakh, Nivek,      |~'~.VxvxV.~'~*
 * Tricops and Fireblade                                      |             *
 * ------------------------------------------------------------------------ *
 * Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael        *
 * Chastain, Michael Quan, and Mitchell Tse.                                *
 * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,          *
 * Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.     *
 * ------------------------------------------------------------------------ *
 *			     Mud constants module			    *
 ****************************************************************************/

#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include "mud.h"



/* undef these at EOF */
#define AM 95
#define AC 95
#define AT 85
#define AW 85
#define AV 95
#define AD 95
#define AR 90
#define AA 95

char *	const	npc_race	[MAX_NPC_RACE] =
/*
{
"human", "elf", "dwarf", "halfling", "pixie", "vampire", "half-ogre",
"half-orc", "half-troll", "half-elf", "gith", "drow", "sea-elf",
"lizardman", "gnome", "r5", "r6", "r7", "r8", "troll",
"ant", "ape", "baboon", "bat", "bear", "bee",
"beetle", "boar", "bugbear", "cat", "dog", "dragon", "ferret", "fly",
"gargoyle", "gelatin", "ghoul", "gnoll", "gnome", "goblin", "golem",
"gorgon", "harpy", "hobgoblin", "kobold", "lizardman", "locust",
"lycanthrope", "minotaur", "mold", "mule", "neanderthal", "ooze", "orc",
"rat", "rustmonster", "shadow", "shapeshifter", "shrew", "shrieker",
"skeleton", "slime", "snake", "spider", "stirge", "thoul", "troglodyte",
"undead", "wight", "wolf", "worm", "zombie", "bovine", "canine", "feline",
"porcine", "mammal", "rodent", "avis", "reptile", "amphibian", "fish",
"crustacean", "insect", "spirit", "magical", "horse", "animal", "humanoid",
"monster", "god"
};
*/
{
	"saiyan", "human", "halfbreed", "namek", "android", "icer", "bio-android",
	"kaio",
	"demon", "wizard", "r11", "r12", "r13", "r14",
	"r15", "r16", "r17", "r18", "r19", "r20"
	"ant", "ape", "baboon", "bat", "bear", "bee", "beetle", "boar",
	"bugbear", "cat", "dog", "dragon", "ferret", "fly", "gargoyle",
	"gelatin", "ghoul", "locust","mold", "mule", "neanderthal", "ooze",
	"rat", "shadow", "shapeshifter", "shrew", "skeleton", "slime", "snake",
	"spider", "troglodyte", "undead", "wight", "wolf", "worm", "zombie",
	"bovine", "canine", "feline", "porcine", "mammal", "rodent", "avis",
	"reptile", "amphibian", "fish", "crustacean", "insect", "spirit",
	"magical", "horse", "animal", "humanoid", "monster", "god"
};
char *	const	npc_class	[MAX_NPC_CLASS] =
/*
{
 "mage", "cleric", "thief", "warrior", "vampire", "druid", "ranger",
"augurer", "paladin", "nephandi", "savage", "pirate", "pc12", "pc13",
"pc14", "pc15", "pc16", "pc17", "pc18", "pc19",
"baker", "butcher", "blacksmith", "mayor", "king", "queen"
};
*/
{
	"saiyan", "human", "halfbreed", "namek", "android", "icer", "bio-android",
	"kaio",
	"demon", "wizard", "r11", "r12", "r13", "r14",
	"r15", "r16", "r17", "r18", "r19", "r20"
	"ant", "ape", "baboon", "bat", "bear", "bee", "beetle", "boar",
	"bugbear", "cat", "dog", "dragon", "ferret", "fly", "gargoyle",
	"gelatin", "ghoul", "locust","mold", "mule", "neanderthal", "ooze",
	"rat", "shadow", "shapeshifter", "shrew", "skeleton", "slime", "snake",
	"spider", "troglodyte", "undead", "wight", "wolf", "worm", "zombie",
	"bovine", "canine", "feline", "porcine", "mammal", "rodent", "avis",
	"reptile", "amphibian", "fish", "crustacean", "insect", "spirit",
	"magical", "horse", "animal", "humanoid", "monster", "god"
};

char *	const	build_type	[MAX_BUILD] =
{
	"frail", "thin", "lean", "athletic", "muscular",
	"bulky", "overweight", "fat"
};

char *	const	hair_color	[MAX_HAIR] =
{
	"white", "platinum blonde", "strawberry blonde", "blonde",
	"bleached blonde", "grey", "light brown", "brown",
	"dark brown", "black", "jet black", "midnight black",
	"light red", "red", "dark red", "pink",
	"purple", "dark-blue", "blue", "light-blue",
	"blue-green", "light-green", "green", "dark-green",
	"hair-less", "golden blonde"
};

char *	const	hair_style	[MAX_HAIR_STYLE] =
{
    "STYLE_NONE", "STYLE_BALD", "STYLE_CREW", "STYLE_SHORT_BANGS",
    "STYLE_MEDIUM_BANGS", "STYLE_LONG_BANGS", "STYLE_FLOWING",
    "STYLE_UPWARD_SPIKE", "STYLE_LONG_UPWARD_SPIKE", "STYLE_ALL_SPIKE",
    "STYLE_UP_SPIKE_ONE_FACE", "STYLE_ERATIC_SPIKES", "STYLE_SHORT_PONYTAIL",
    "STYLE_MEDIUM_PONYTAIL", "STYLE_LONG_PONYTAIL", "STYLE_SPIKEY_FLATTOP",
    "STYLE_PONYTAIL"
};

char *	const	eye_color	[MAX_EYE] =
{
	"blue", "green", "brown", "grey", "black",
	"hazel", "aqua", "royal blue", "baby blue", "evergreen",
	"jade green", "muddy brown", "sable brown", "midnite black", "purple",
	"blood red", "charcoal grey", "sky blue", "lavender", "amber gold",
	"light green", "completly white", "completly red", "completly black"
};

char *	const	complexion	[MAX_COMPLEXION] =
{
	"brown", "copper", "tan", "light-tan", "pale",
	"light-green", "green", "evergreen", "jade green",
	"baby blue", "muddy brown", "sable brown",
	"midnite black", "purple", "blood red",
	"charcoal grey", "sky blue", "lavender",
	"amber gold", "red", "dark silver",
	"light silver"
};

char *	const	secondary_color	[MAX_SECONDARYCOLOR] =
{
	"grey", "black", "hazel",
	"muddy brown", "sable brown", "midnite black",
	"purple", "blood red", "charcoal grey",
	"sky blue", "lavender", "amber gold",
	"red", "white", "orange", "none"
};

#if 0
const struct at_color_type at_color_table[AT_MAXCOLOR] =
{ { "plain",	AT_GREY			},
  { "action",	AT_GREY			},
  { "say",		AT_LBLUE		},
  { "gossip",	AT_LBLUE		},
  { "yell",		AT_WHITE		},
  { "tell",		AT_WHITE		},
  { "whisper",	AT_WHITE		},
  { "hit",		AT_WHITE		},
  { "hitme",	AT_YELLOW		},
  { "immortal",	AT_YELLOW		},
  { "hurt",		AT_RED			},
  { "falling",	AT_WHITE + AT_BLINK	},
  { "danger",	AT_RED + AT_BLINK	},
  { "magic",	AT_BLUE			},
  { "consider",	AT_GREY			},
  { "report",	AT_GREY			},
  { "poison",	AT_GREEN		},
  { "social",	AT_CYAN			},
  { "dying",	AT_YELLOW		},
  { "dead",		AT_RED			},
  { "skill",	AT_GREEN		},
  { "carnage",	AT_BLOOD		},
  { "damage",	AT_WHITE		},
  { "flee",		AT_YELLOW		},
  { "roomname",	AT_WHITE		},
  { "roomdesc",	AT_YELLOW		},
  { "object",	AT_GREEN		},
  { "person",	AT_PINK			},
  { "list",		AT_BLUE			},
  { "bye",		AT_GREEN		},
  { "zeni",		AT_YELLOW		},
  { "gtell",	AT_BLUE			},
  { "note",		AT_GREEN		},
  { "hungry",	AT_ORANGE		},
  { "thirsty",	AT_BLUE			},
  { "fire",		AT_RED			},
  { "sober",	AT_WHITE		},
  { "wearoff",	AT_YELLOW		},
  { "exits",	AT_WHITE		},
  { "score",	AT_LBLUE		},
  { "reset",	AT_DGREEN		},
  { "log",		AT_PURPLE		},
  { "diemsg",	AT_WHITE		},
  { "wartalk",	AT_RED			},
  { "racetalk",	AT_DGREEN		},
  { "ignore",	AT_GREEN		},
  { "divider",	AT_PLAIN		},
  { "morph",	AT_GREY			},
};
#endif

/*
 * Liquid properties.
 * Used in #OBJECT section of area file.
 */
const	struct	liq_type	liq_table	[LIQ_MAX]	=
{
    { "water",			"clear",	{  0, 1, 10 }	},  /*  0 */
    { "beer",			"amber",	{  3, 2,  5 }	},
    { "wine",			"rose",		{  5, 2,  5 }	},
    { "ale",			"brown",	{  2, 2,  5 }	},
    { "dark ale",		"dark",		{  1, 2,  5 }	},

    { "whisky",			"golden",	{  6, 1,  4 }	},  /*  5 */
    { "lemonade",		"pink",		{  0, 1,  8 }	},
    { "firebreather",		"boiling",	{ 10, 0,  0 }	},
    { "local specialty",	"everclear",	{  3, 3,  3 }	},
    { "slime mold juice",	"green",	{  0, 4, -8 }	},

    { "milk",			"white",	{  0, 3,  6 }	},  /* 10 */
    { "tea",			"tan",		{  0, 1,  6 }	},
    { "coffee",			"black",	{  0, 1,  6 }	},
    { "blood",			"red",		{  0, 2, -1 }	},
    { "salt water",		"clear",	{  0, 1, -2 }	},

    { "cola",			"cherry",	{  0, 1,  5 }	},  /* 15 */
    { "mead",			"honey color",	{  4, 2,  5 }	},  /* 16 */
    { "grog",			"thick brown",	{  3, 2,  5 }	}   /* 17 */
};

char *	const	attack_table	[18] =
{
    "hit",
    "slice",  "stab",    "slash", "whip",  "claw",
    "blast",  "pound",   "crush", "grep",  "bite",
    "pierce", "suction", "bolt",  "arrow", "dart",
    "stone",  "pea"
};

char * s_blade_messages[28] =
{
	"miss", "brush", "barely scratch", "scratch", "nick", "cut", "hit", "tear",
	"rip", "gash", "lacerate", "hack", "maul", "rend", "decimate",
	"_mangle_", "_devastate_", "_cleave_", "_butcher_", "DISEMBOWEL",
	"DISFIGURE", "GUT", "EVISCERATE", "* LIQUIFY *", "* VAPORIZE *",
	 "*** ANNIHILATE ***",	"**** SMITE ****", "**** ATOMIZE ****"
};

char * p_blade_messages[28] =
{
	"misses", "brushes", "barely scratches", "scratches", "nicks", "cuts", "hits",
	"tears", "rips", "gashes", "lacerates", "hacks", "mauls", "rends",
	"decimates", "_mangles_", "_devastates_", "_cleaves_", "_butchers_",
	"DISEMBOWELS", "DISFIGURES", "GUTS", "EVISCERATES", "* LIQUIFIES *",
	"* VAPORIZES *", "*** ANNIHILATES ***",	"**** SMITES ****",
	"**** ATOMIZES ****"
};

char * s_blunt_messages[28] =
{
	"miss", "brush", "barely scuff", "scuff", "pelt", "bruise", "strike", "thrash",
	"batter", "flog", "pummel", "smash", "maul", "bludgeon", "decimate",
	"_shatter_", "_devastate_", "_maim_", "_cripple_", "MUTILATE", "DISFIGURE",
	"MASSACRE", "PULVERIZE", "* LIQUIFY *", "* VAPORIZE *",
	 "*** ANNIHILATE ***",	"**** SMITE ****", "**** ATOMIZE ****"
};

char * p_blunt_messages[28] =
{
	"misses", "brushes", "barely scuffs", "scuffs", "pelts", "bruises", "strikes",
	"thrashes", "batters", "flogs", "pummels", "smashes", "mauls",
	"bludgeons", "decimates", "_shatters_", "_devastates_", "_maims_",
	"_cripples_", "MUTILATES", "DISFIGURES", "MASSACRES", "PULVERIZES",
	"* OBLITERATES *", "*** ANNIHILATES ***"
};

char * s_generic_messages[28] =
{
	"miss", "brush", "tickle", "scratch", "graze", "nick", "jolt", "wound",
	"injure", "hit", "jar", "thrash", "maul", "decimate", "_traumatize_",
	"_devastate_", "_maim_", "_demolish_", "MUTILATE", "MASSACRE",
	"PULVERIZE", "DESTROY", "* OBLITERATE *", "* LIQUIFY *", "* VAPORIZE *",
	 "*** ANNIHILATE ***",	"**** SMITE ****", "**** ATOMIZE ****"
};

char * s_1337_messages[28] =
{
        "LOL U MISED", "tewthbrush lolz", "tyckl3", "owch d00d", "graze...lik a cow!!!11", 
        "nick..el oh el", "mini pwn + sux", "sux2notbeu",
        "01010101 BYNAIRY LOLZ", "d00d u hit on him. F4G!!1", 
	"jar. lolz. jar o wut?", "lawnmower d00d", 
	"maul...4 SHOPPING AT. LOLZ", "decimalate. math sux", "_traumaPWN_",
        "_devastate_ wut state iz that d00d?", "_omgawd the hurt_", 
	"_demolish_ iz dat like lycorish?", "OMG HORE", "PWNT + 2",
        "PULVERIZE", "DERSTOYZ", "* OWNZ0R *", "* HAWT *", "* PWNT!1 *",
         "*** ANIHATE LOLZ ***",  "**** FUKUPd00d ****", "**** OMG PWNZ0RWAK ****"
};

char * p_generic_messages[28] =
{
	"misses", "brushes", "tickles", "scratches", "grazes", "nicks", "jolts", "wounds",
	"injures", "hits", "jars", "thrashes", "mauls", "decimates", "_traumatizes_",
	"_devastates_", "_maims_", "_demolishes_", "MUTILATES", "MASSACRES",
	"PULVERIZES", "DESTROYS", "* OBLITERATES *", "* LIQUIFIES *", "* VAPORIZES *",
	 "*** ANNIHILATES ***",	"**** SMITES ****", "**** ATOMIZES ****"
};

char ** const s_message_table[18] =
{
	s_generic_messages,	/* hit */
	s_blade_messages,	/* slice */
	s_blade_messages,	/* stab */
	s_blade_messages,	/* slash */
	s_blunt_messages,	/* whip */
	s_blade_messages,	/* claw */
	s_generic_messages,	/* blast */
	s_blunt_messages,	/* pound */
	s_blunt_messages,	/* crush */
	s_generic_messages,	/* grep */
	s_blade_messages,	/* bite */
	s_blade_messages,	/* pierce */
	s_blunt_messages,	/* suction */
	s_generic_messages,	/* bolt */
	s_generic_messages,	/* arrow */
	s_generic_messages,	/* dart */
	s_generic_messages,	/* stone */
	s_generic_messages	/* pea */
};

char ** const p_message_table[18] =
{
	p_generic_messages,	/* hit */
	p_blade_messages,	/* slice */
	p_blade_messages,	/* stab */
	p_blade_messages,	/* slash */
	p_blunt_messages,	/* whip */
	p_blade_messages,	/* claw */
	p_generic_messages,	/* blast */
	p_blunt_messages,	/* pound */
	p_blunt_messages,	/* crush */
	p_generic_messages,	/* grep */
	p_blade_messages,	/* bite */
	p_blade_messages,	/* pierce */
	p_blunt_messages,	/* suction */
	p_generic_messages,	/* bolt */
	p_generic_messages,	/* arrow */
	p_generic_messages,	/* dart */
	p_generic_messages,	/* stone */
	p_generic_messages	/* pea */
};

/* Weather constants - FB */
char * const temp_settings[MAX_CLIMATE] =
{
	"cold",
	"cool",
	"normal",
	"warm",
	"hot",
};

char * const precip_settings[MAX_CLIMATE] =
{
	"arid",
	"dry",
	"normal",
	"damp",
	"wet",
};

char * const wind_settings[MAX_CLIMATE] =
{
	"still",
	"calm",
	"normal",
	"breezy",
	"windy",
};

char * const preciptemp_msg[6][6] =
{
	/* precip = 0 */
	{
		"Frigid temperatures settle over the land",
		"It is bitterly cold",
		"The weather is crisp and dry",
		"A comfortable warmth sets in",
		"A dry heat warms the land",
		"Seething heat bakes the land"
	 },
	 /* precip = 1 */
	 {
	 	"A few flurries drift from the high clouds",
	 	"Frozen drops of rain fall from the sky",
	 	"An occasional raindrop falls to the ground",
	 	"Mild drops of rain seep from the clouds",
	 	"It is very warm, and the sky is overcast",
	 	"High humidity intensifies the seering heat"
	 },
	 /* precip = 2 */
	 {
	 	"A brief snow squall dusts the earth",
	 	"A light flurry dusts the ground",
	 	"Light snow drifts down from the heavens",
	 	"A light drizzle mars an otherwise perfect day",
	 	"A few drops of rain fall to the warm ground",
	 	"A light rain falls through the sweltering sky"
	 },
	 /* precip = 3 */
	 {
	 	"Snowfall covers the frigid earth",
	 	"Light snow falls to the ground",
	 	"A brief shower moistens the crisp air",
	 	"A pleasant rain falls from the heavens",
	 	"The warm air is heavy with rain",
	 	"A refreshing shower eases the oppresive heat"
	 },
	 /* precip = 4 */
	 {
	 	"Sleet falls in sheets through the frosty air",
	 	"Snow falls quickly, piling upon the cold earth",
	 	"Rain pelts the ground on this crisp day",
	 	"Rain drums the ground rythmically",
	 	"A warm rain drums the ground loudly",
	 	"Tropical rain showers pelt the seering ground"
	 },
	 /* precip = 5 */
	 {
	 	"A downpour of frozen rain covers the land in ice",
	 	"A blizzard blankets everything in pristine white",
	 	"Torrents of rain fall from a cool sky",
	 	"A drenching downpour obscures the temperate day",
	 	"Warm rain pours from the sky",
	 	"A torrent of rain soaks the heated earth"
	 }
};

char * const windtemp_msg[6][6] =
{
	/* wind = 0 */
	{
		"The frigid air is completely still",
		"A cold temperature hangs over the area",
		"The crisp air is eerily calm",
		"The warm air is still",
		"No wind makes the day uncomfortably warm",
		"The stagnant heat is sweltering"
	},
	/* wind = 1 */
	{
		"A light breeze makes the frigid air seem colder",
		"A stirring of the air intensifies the cold",
		"A touch of wind makes the day cool",
		"It is a temperate day, with a slight breeze",
		"It is very warm, the air stirs slightly",
		"A faint breeze stirs the feverish air"
	},
	/* wind = 2 */
	{
		"A breeze gives the frigid air bite",
		"A breeze swirls the cold air",
		"A lively breeze cools the area",
		"It is a temperate day, with a pleasant breeze",
		"Very warm breezes buffet the area",
		"A breeze ciculates the sweltering air"
	},
	/* wind = 3 */
	{
		"Stiff gusts add cold to the frigid air",
		"The cold air is agitated by gusts of wind",
		"Wind blows in from the north, cooling the area",
		"Gusty winds mix the temperate air",
		"Brief gusts of wind punctuate the warm day",
		"Wind attempts to cut the sweltering heat"
	},
	/* wind = 4 */
	{
		"The frigid air whirls in gusts of wind",
		"A strong, cold wind blows in from the north",
		"Strong wind makes the cool air nip",
		"It is a pleasant day, with gusty winds",
		"Warm, gusty winds move through the area",
		"Blustering winds punctuate the seering heat"
	},
	/* wind = 5 */
	{
		"A frigid gale sets bones shivering",
		"Howling gusts of wind cut the cold air",
		"An angry wind whips the air into a frenzy",
		"Fierce winds tear through the tepid air",
		"Gale-like winds whip up the warm air",
		"Monsoon winds tear the feverish air"
	}
};

char * const precip_msg[3] =
{
	"there is not a cloud in the sky",
	"pristine white clouds are in the sky",
	"thick, grey clouds mask the sun"
};

char * const wind_msg[6] =
{
	"there is not a breath of wind in the air",
	"a slight breeze stirs the air",
	"a breeze wafts through the area",
	"brief gusts of wind punctuate the air",
	"angry gusts of wind blow",
	"howling winds whip the air into a frenzy"
};

/*
 * The skill and spell table.
 * Slot numbers must never be changed as they appear in #OBJECTS sections.
 */
#define SLOT(n)	n
#define LI LEVEL_IMMORTAL

#undef AM 
#undef AC 
#undef AT 
#undef AW 
#undef AV 
#undef AD 
#undef AR
#undef AA

#undef LI