def.c
./EmlenMud/def.c · 25.1 KB
From the archive emlen2.5.tar.gz
Download the archive « Back to the archive contents
#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include "emlen.h"
char *const color_name[] =
{
"OOC",
"CLANTALK",
"YELL",
"SAY",
"TELL",
"UNUSED",
"IMMTALK",
"GODTALK",
"NONE",
"NONE",
"NONE",
"NONE",
"NONE",
"NONE",
"NONE"
};
const struct str_apply_type str_app[31] =
{
{-4},
{-4},
{-2},
{-1},
{-1},
{-1},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{1},
{1},
{1},
{2},
{2},
{2},
{2},
{3},
{3},
{3},
{4},
{4},
{4},
{4},
{5},
{5}
};
char *const where_name[] =
{
"<worn on finger> ",
"<worn on finger> ",
"<worn around neck> ",
"<worn around neck> ",
"<worn on body> ",
"<worn on head> ",
"<worn on legs> ",
"<worn on feet> ",
"<worn on hands> ",
"<worn on arms> ",
"<strapped to arm> ",
"<worn about body> ",
"<worn about waist> ",
"<worn on wrist> ",
"<worn on wrist> ",
"<floating nearby> ",
"<thrust thru belt> ",
"<thrust thru belt> ",
"<thrust thru belt> ",
"<thrust thru belt> ",
"<thrust thru belt> ",
"<primary hand> ",
"<secondary hand> ",
"<worn on shoulder> ",
"<worn on shoulder> ",
"<worn on face> ",
"<worn in ear> ",
"<worn in ear> ",
"<worn on ankle> ",
"<worn on ankle> "
};
char *const dist_name[8] =
{
"pretty close by",
"fairly far off",
"a long ways off",
"fairly far off",
"fairly far off",
"fairly far off",
"fairly far off",
"fairly far off"
};
char *const mob_type[MAX_MOB_TYPE] =
{
"human",
"elf",
"dwarf",
"gnome",
"giant",
"dragon",
"canine",
"rodent",
"insect",
"undead",
"golem",
"demon",
"troll",
"bird",
"fish",
"statue",
"feline",
"plant",
"general_animal",
"faerie",
"reptile",
"ghost",
"other",
"werebeast",
"nightbeast",
"orc",
"darkelf"
};
char *const percent_ded[] =
{
"is at the brink of death",
"is majorly wounded",
"is majorly wounded",
"is wounded",
"is wounded",
"is wounded",
"has several wounds",
"is minorly wounded",
"has a few scratches",
"has a few bruises",
"is in excellent shape",
"is in amazing shape",
"is in incredible shape",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy",
"is incredibly healthy"
};
char *const percent_hit[] =
{
"awful",
"bad",
"bad",
"hurt",
"hurt",
"hurt",
"hurt",
"good",
"good",
"good",
"fine",
"fine",
"fine",
"fine",
"fine",
"fine",
"fine",
"fine"
};
char *const percent_tired[] =
{
"exhausted",
"fainty",
"weak",
"beat",
"winded",
"fatigued",
"tired",
"energetic",
"energetic",
"energetic",
"energetic",
"energetic",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh",
"fresh"
};
char *const language_table[12] =
{
"common",
"elvish",
"dark elvish",
"dwarvish",
"gnomish",
"grunting",
"kender",
"shadaoslavian",
"dragon",
"buckawn",
"skulk",
"beastman"
};
const struct material_data materials[] = {
{"cloth", 9, 8, 1, 10, 0, 0, 5,
"Like all other goods made of cloth, it offers only limited protection to slashing attacks, and no protection against clubbing, piercing, or whipping attacks.",
1,FALSE,FALSE,0,150},
{"leather", 13, 12, 2, 10, 5, 0, 15,
"Like all other leather goods, it offers some protection from slashing, tiny protection towards stabbing, and no protection towards pounding.",
8,FALSE,FALSE,0,300},
{"hard leather", 15, 15, 2, 10, 10, 10, 50,
"Like other hard leather goods, it offers equal protection against slashing, piercing, and pounding.",
15,FALSE,TRUE,0,600},
{"thin chain", 18, 15, 3, 10, 5, 5, 80,
"Like other thin chain items, it provides protection against slashing, but only half protection against pounding or piercing, due to the light nature of the chain.",
24,FALSE,FALSE,0,1500},
{"chain", 24, 20, 3, 10, 10, 5, 40,
"Like all other goods made of chain, it offers protection against slashing and piercing, but only half protection against clubbing.",
26,FALSE,FALSE,0,2300},
{"thin metal", 28, 25, 4, 10, 8, 10, 95,
"Like other thin metal goods, it offers protection against clubbing and slashing, but only 8/10 protection against piercing.",
28,FALSE,TRUE,0,2700},
{"thick metal", 36, 35, 4, 10, 10, 12, 200,
"Like other thick metal goods, it offers protection against slashing and piercing, and extra (12/10) protection against clubbing.",
30,FALSE,TRUE,0,3300},
{"steel", 32, 30, 4, 10, 10, 10, 220,
"Like other steel products, it offers equal protection against slashing, piercing and clubbing.",
32,FALSE,TRUE,0,3200},
{"blue steel", 30, 40, 5, 10, 8, 10, 250,
"Like other blue steel items, it offers protection against slashing and clubbing, but only 8/10 protection against piercing.",
40,FALSE,TRUE,0,4500},
{"solid iron", 44, 50, 5, 15, 10, 10, 230,
"Like other solid iron products, it offers almost protection against piercing and clubbing, and almost double protection against slashing.",
35,FALSE,TRUE,0,4900},
{"crystal", 25, 10, 6, 10, 8, 5, 330,
"Like other crystal goods, it offers protection against slashing, 8/10 protection against piercing, and 5/10 protection against clubbing.",
48,FALSE,TRUE,0,7900},
{"titanium", 32, 50, 6, 10, 12, 12, 490,
"Like other titanium products, it offers protection against slashing, and extra (12/10) protection against both piercing and clubbing.",
55,FALSE,TRUE,0,9500},
{"double plated", 31, 45, 5, 12, 12, 8, 440,
"Like other double-plated goods, it offers extra (12/10) protection against slashing and piercing, but only (8/10) protection against pounding.",
50,FALSE,TRUE,0,7100},
{"spiked metal", 32, 25, 4, 10, 5, 5, 400,
"Like other spiked-metal products, it provides protection against slashing, but due to the spike construction, it only gives half protection against pounding and piercing.",
60,FALSE,TRUE,0,9000},
{"mithril", 34, 40, 7, 10, 10, 10, 800,
"Like other mithril items, it provides excellent protection against slashing, piercing, clubbing and whipping.",
75,FALSE,TRUE,0,15000},
{"obsidian", 38, 2, 9, 10, 10, 10, 670,
"Like other obsidian items, it provides extreme protection, but can be very easily broken or shattered.",
75,FALSE,TRUE,0,6800},
/*{"dark mithril", 35, 40, 7, 10, 10, 10, 900,
"Like other mithril items, it provides excellent protection against slashing, piercing, clubbing and whipping.",
60,FALSE,TRUE,ITEM_EVIL+ITEM_ANTI_GOOD+ITEM_ANTI_NEUTRAL,17000},
{"blue mithril", 35, 40, 7, 10, 10, 10, 900,
"Like other mithril items, it provides excellent protection against slashing, piercing, clubbing and whipping.",
60,FALSE,TRUE,ITEM_GOOD+ITEM_ANTI_EVIL,17000},*/
{"END",0,0,0,0,0,0,0,"END",TRUE,TRUE,0}
};
const struct flag_data act_1[] =
{
{TRUE,"sentinel"," sentinel",ACT_SENTINEL,"The mob will not wander or hunt.\n\r"},
{TRUE,"scavenger"," scavenger",ACT_SCAVENGER,"The mob picks up stuff lying on the ground.\n\r"},
{TRUE,"aggressive"," aggressive",ACT_AGGRESSIVE,"The mob attacks all players it can see.\n\r"},
{TRUE,"stay_area"," stay_area",ACT_STAY_AREA,"The mob will not wander from the area it repop'd in.\n\r"},
{TRUE,"stay_sector"," stay_sector",ACT_STAY_SECTOR,"The mob will not wander from the sector type it repop'd in.\n\r"},
{TRUE,"wimpy"," wimpy",ACT_WIMPY,"The mob will try to flee if it gets really low on hit points.\n\r"},
{TRUE,"pet"," pet",ACT_PET,"The mob can be bought as a pet if in a pet storage room.\n\r"},
{TRUE,"untouchable"," untouchable",ACT_UNTOUCHABLE,"The mob cannot be hurt by any physical means.. magic only.\n\r"},
{TRUE,"practitioner"," practitioner",ACT_PRACTICE,"Mob teaches things. Teach <skill#> to set what is taught.\n\r"},
{FALSE,"scramble"," scramble",ACT_SCRAMBLE,"None.\n\r"},
{TRUE,"mountable"," mountable",ACT_MOUNTABLE,"This mob can be ridden/mounted.\n\r"},
{TRUE,"angry"," angry",ACT_ANGRY,"Mob attacks players, but not right away.\n\r"},
{TRUE,"teller"," teller",ACT_BANK_TELLER,"Mob is a bank teller.\n\r"},
{TRUE,"rescue_one"," rescue_one",ACT_RESCUEONE,"Rescues mobs with PRTCT in name field.\n\r"},
{TRUE,"rescue_two"," rescue_two",ACT_RESCUETWO,"Rescues mobs with CODEONE in name field.\n\r"},
{FALSE,"killgladiator"," killgladiator",ACT_KILLGLADIATOR,"Kills mobs named 'gladiator'.\n\r"},
{TRUE,"assistone"," assistone",ACT_ASSISTONE,"Assists mobs with AONE in name field.\n\r"},
{TRUE,"assisttwo"," assisttwo",ACT_ASSISTTWO,"Assists mobs with ATWO in name field.\n\r"},
{TRUE,"assistall"," assistall",ACT_ASSISTALL,"Assists all other fighting mobs in the room.\n\r"},
{TRUE,"sleepaggro"," sleepaggro",ACT_SLEEPAGGRO,"Aggressive to sleeping players.\n\r"},
{TRUE,"attitude"," attitude",ACT_ATTITUDE,"Attacks whoever looks at it.\n\r"},
{TRUE,"r_weapons"," r_weapons",REPAIRS_ONE,"Repairs weapons.\n\r"},
{TRUE,"r_armors"," r_armors",REPAIRS_TWO,"Repairs armors.\n\r"},
{TRUE,"rests"," rests",ACT_REST,"Rests when nobody is around and injured.\n\r"},
{TRUE,"ranger"," ranger",ACT_RANGER,"Kills mobs with BEAST in name field.\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data act_3[] = {
{TRUE,"3ride"," 3ride",ACT3_RIDE,"Mob mounts/rides the previously reset mob.\n\r"},
{TRUE,"3follower"," 3follower",ACT3_FOLLOW,"Mob follows the previously reset mob.\n\r"},
{TRUE,"3guard_item"," 3guard_item",ACT3_GUARD_ITEM,"Mob guards item specified by guarding #.\n\r"},
{TRUE,"3mute"," 3mute",ACT3_MUTE,"Mob cannot yell.\n\r"},
{TRUE,"3sleeper"," 3sleeper",ACT3_SLEEP,"Mob follows a regular day/night sleep pattern.\n\r"},
{TRUE,"3guard_door"," 3guard_door",ACT3_GUARD_DOOR,"Mob guards the door specified by guarding <dir>.\n\r"},
{TRUE,"3guard_door_evil"," 3guard_door_evil",ACT3_GUARD_DOOR_EVIL,"Mob guards door FROM evil players.\n\r"},
{TRUE,"3guard_door_good"," 3guard_door_good",ACT3_GUARD_DOOR_GOOD,"Mob guards door FROM good players.\n\r"},
{TRUE,"3kill_good"," 3k_good_m",ACT3_KILL_GOOD,"Kills mobs with GOOD in name field.\n\r"},
{TRUE,"3kill_evil"," 3k_evil_m",ACT3_KILL_EVIL,"Kills mobs with EVIL in name field.\n\r"},
{TRUE,"3guard_mob"," 3guard_mob",ACT3_GUARD_MOB,"Guards mob vnum specified by guard #.\n\r"},
{TRUE,"3stayroad"," 3stayroad",ACT3_STAYROAD,"Mob stays ON road/city sectors.\n\r"},
{TRUE,"3tinkerg"," 3tinkerg",ACT3_TINKER,"Tinker guildmaster.\n\r"},
{TRUE,"3warriorg"," 3warriorg",ACT3_WARRIOR,"Warrior guildmaster.\n\r"},
{TRUE,"3thiefg"," 3thiefg",ACT3_THIEFG,"Thief guildmaster.\n\r"},
{TRUE,"3healerg"," 3healerg",ACT3_HEALER,"Healer guildmaster.\n\r"},
{TRUE,"3rangerg"," 3rangerg",ACT3_RANGER,"Ranger guildmaster.\n\r"},
{TRUE,"3wizardg"," 3wizardg",ACT3_WIZARD,"Wizard guildmaster.\n\r"},
{TRUE,"3assassing"," 3assassing",ACT3_ASSASSIN,"Assassin guildmaster.\n\r"},
{TRUE,"3regenerate"," 3regenerate",ACT3_REGENERATE,"Regenerates hit points at an increased rate.\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data act_4[] = {
{TRUE,"4fasthunt"," 4fasthunt",ACT4_FASTHUNT,"Mob hunts players FAST.\n\r"},
{TRUE,"4stay"," 4stayoffroad",ACT4_STAYOFFROAD,"Mob stays out of city/road sectors.\n\r"},
{TRUE,"4soloyell"," 4soloyell",ACT4_SOLOYELL,"Mob will yell for help if yeller # set and alone.\n\r"},
{TRUE,"4switch"," 4switch",ACT4_MOBSWITCH,"Switches players it is currently fighting during combat.\n\r"},
{TRUE,"4killallone"," 4killallone",ACT4_KILLALLONE,"Kills mobs/players that aren't set KILLALLONE as well.\n\r"},
{TRUE,"4killalltwo"," 4killalltwo",ACT4_KILLALLTWO,"Kills mobs/players that aren't set KILLALLTWO as well.\n\r"},
{TRUE,"4killmgood"," 4killmgood",ACT4_KILLMGOOD,"Kills mobs/players that are GOOD.\n\r"},
{TRUE,"4killmevil"," 4killmevil",ACT4_KILLMEVIL,"Kills mobs/players that are EVIL.\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data affect_flags_2[] =
{
{TRUE, "prot_fire", " prot_fire", AFF_PROT_FIRE, "This affect flag makes the mob more resistant to fire.\n\r"},
{TRUE, "prot_gas", " prot_gas", AFF_PROT_GAS, "This affect flag makes the mob resistant to gas and gastraps.\n\r"},
{TRUE, "mindshield", " mindshield", AFF_MINDSHIELD, "This protects you from some affects of bad magic.\n\r"},
{TRUE, "speed", " speed", AFF_SPEED, "This can give you an extra attack during combat occasionally.\n\r"},
{TRUE, "insanity", " insanity", AFF_INSANITY, "This spell makes the person insane...\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data affect_flagss[] =
{
{TRUE, "blind", " blind", AFF_BLIND, "This affect flag toggles if the mob is affected by blindness.\n\r"},
{TRUE, "invisible", " invisible", AFF_INVISIBLE, "This affect flag toggles if the mob is invisible or not.\n\r"},
{FALSE, "detect-good", " detect-good", AFF_DETECT_GOOD, ""},
{FALSE, "detect-evil", " detect-evil", AFF_DETECT_EVIL, ""},
{TRUE, "detect-invis", " detect-invis", AFF_DETECT_INVIS, "This affect flag toggles if the mob can see invisible things/people.\n\r"},
{FALSE, "detect-magic", " detect-magic", AFF_DETECT_MAGIC, ""},
{TRUE, "detect-hidden", " detect-hidden", AFF_DETECT_HIDDEN, "This affect flag toggles if the mob can detect hide/sneak or not.\n\r"},
{TRUE, "sanctuary", " sanctuary", AFF_SANCTUARY, "This affect flag toggles whether or not the mob is sancted.\n\r"},
{FALSE, "faerie-fire", " faerie-fire", AFF_FAERIE_FIRE, ""},
{TRUE, "infrared", " infrared", AFF_INFRARED, "This flag toggles whether the mob can see in the dark or not.\n\r"},
{FALSE, "curse", " curse", AFF_CURSE, ""},
{FALSE, "apoison", " apoison", AFF_POISON, ""},
{FALSE, "plague", " plague", AFF_PLAGUE, "Toggles if the mob has the plague or not.\n\r"},
{TRUE, "protect", " protect", AFF_PROTECT, "Toggles if the mob is protected by 'total protection' spell or not.\n\r"},
{TRUE, "sleep", " sleep", AFF_SLEEP, "Toggles if the mob will sleep when he/she/it first loads in a room.\n\r"},
{TRUE, "sneak", " sneak", AFF_SNEAK, "Toggles if the mob will sneak from room to room.\n\r"},
{TRUE, "hide", " hide", AFF_HIDE, "Toggles if the mob will hide when possible.\n\r"},
{FALSE, "charm", " charm", AFF_CHARM, ""},
{TRUE, "flying", " flying", AFF_FLYING, "This affect flag toggles if the mob is flying or not.\n\r"},
{TRUE, "pass-door", " pass-door", AFF_PASS_DOOR, "This flag toggles whether or not the mob can float through doors.\n\r"},
{TRUE, "nocharm", " nocharm", AFF_NOCHARM, "This flag toggles whether or not the mob can potentially be charmed.\n\r"},
{TRUE, "protect-evil", " protect-evil", AFF_PROT_EVIL, "This toggles if the mob is affected by the 'protection from evil' spell.\n\r"},
{TRUE, "protect-good", " protect-good", AFF_PROT_GOOD, "This toggles if the mob is affected by the 'protection from good' spell.\n\r"},
{FALSE, "awareness", " awareness", AFF_AWARENESS, ""},
{TRUE, "water-breath", " water-breath", AFF_BREATH_WATER, "This toggles whether or not the mob can breath underwater.\n\r"},
{TRUE, "safety", " safety", AFF_SAFETY, "This toggles the spell safety (helps avoid aggro mobs).\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data extra_flagss[] =
{
{TRUE, "glow", " glow", ITEM_GLOW, "This flag makes the item glow.\n\r"},
{TRUE, "hum", " hum", ITEM_HUM, "This flag makes the item hum.\n\r"},
{TRUE, "good", " good", ITEM_GOOD, "This flag makes the item glow blue if you are affected by 'detect good'.\n\r"},
{TRUE, "evil", " evil", ITEM_EVIL, "This flag makes the item glow red if you are affected by 'detect evil'.\n\r"},
{TRUE, "item_invis", " item_invis", ITEM_INVIS, "This flag defaults the item to be invisible when it's created.\n\r"},
{TRUE, "magic", " magic", ITEM_MAGIC, "This flag makes the item seen as magic to those who have 'detect magic'.\n\r"},
{TRUE, "nodrop", " nodrop", ITEM_NODROP, "The item cannot be dropped... Use *very* sparingly.\n\r"},
{TRUE, "anti-good", " anti-good", ITEM_ANTI_GOOD, "Good aligned people cannot use the object if this flag is set.\n\r"},
{TRUE, "anti-evil", " anti-evil", ITEM_ANTI_EVIL, "Evil aligned people cannot use the object if this flag is set.\n\r"},
{TRUE, "anti-neutral", " anti-neutral", ITEM_ANTI_NEUTRAL, "Neutral aligned people cannot use the object if this flag is set.\n\r"},
{TRUE, "noremove", " noremove", ITEM_NOREMOVE, "You can never remove this object until you die... Use sparingly!\n\r"},
{FALSE, "inventory", " inventory", ITEM_INVENTORY, ""},
{TRUE, "nosave", " nosave", ITEM_NOSAVE, "Object does not save when player quits. NEVER use with wearable objects!\n\r"},
{TRUE, "unseen", " unseen", ITEM_UNSEEN, "Object cannot be seen. Cannot be searched for if take flag isn't set.\n\r"},
{TRUE, "piercing", " piercing", ITEM_PIERCE, "Object gives a bonus to those with piercing weapons skill.\n\r"},
{TRUE, "slashing", " slashing", ITEM_SLASHING, "Object gives a bonus to those with slashing weapons skill.\n\r"},
{TRUE, "heavy_slash", " heavy_slash", ITEM_HEAVY_SLASH, "Object gives a bonus to stronger people with slashing weapons skill.\n\r"},
{TRUE, "light_slash", " light_slash", ITEM_LIGHT_SLASH, "Object gives a massive bonus to slashing since it's light.\n\r"},
{TRUE, "whip", " whip", ITEM_WHIP, "Object gives a bonus to those with whipping weapons skill.\n\r"},
{TRUE, "concussion", " concussion", ITEM_CONCUSSION, "Object gives a bonus to those with concussion weapons skill.\n\r"},
{TRUE, "save", " save", ITEM_SAVE, "Object saves on the character and does not go into his/her corpse when he/she dies.\n\r"},
{TRUE, "nostore", " nostore", ITEM_NOSTORE, "Object cannot be stored in a clan bank or personal bank.\n\r"},
{TRUE, "laser", " laser", ITEM_LASER, "Object is a laser/aturion type weapon.\n\r"},
{TRUE, "nopkill", " nopkill", ITEM_NOPKILL, "Object is for non-pkillers only.\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
const struct flag_data room_flagss[] =
{
{TRUE, "dark", " dark", ROOM_DARK, "Room is dark. If it's inside, use 'indoors' toggle too.\n\r"},
{TRUE, "no_mobs", " no_mobs", ROOM_NO_MOB, "Mobs in adjacent rooms will not enter this room when wandering.\n\r"},
{TRUE, "indoors", " indoors", ROOM_INDOORS, "The room is indoors in general. [Indoors].\n\r"},
{TRUE, "pet_shop", " pet_shop", ROOM_PET_SHOP, "This room is a pet shop. This vnum+1 is pet storage.\n\r"},
{TRUE, "nohear", " nohear", ROOM_NOHEAR, "No sound can be heard here due to environment.\n\r"},
{TRUE, "noisy", " noisy", ROOM_NOISY, "Sound doesn't travel well through this room.\n\r"},
{TRUE, "no_summon", " no_summon", ROOM_NOSUMMON, "You cannot summon to or from this room.\n\r"},
{TRUE, "untrackable", " untrackable", ROOM_UNTRACKABLE, "You cannot be tracked while in this room.\n\r"},
{TRUE, "moving", " moving", ROOM_MOVING, "Room 'pushes' you. See help transport.\n\r"},
{TRUE, "nomagic", " nomagic", ROOM_NOMAGIC, "All spells are absorbed by the ground in this room.\n\r"},
{TRUE, "silence", " silence", ROOM_SILENCE, "Nothing can be said, gossip'd telled, etc.. in this room.\n\r"},
{TRUE, "extraheal", " extraheal", ROOM_EXTRAHEAL, "People in room heal faster. Use *sparingly*!!\n\r"},
{TRUE, "fallsfast", " fallsfast", ROOM_FALLSFAST, "Non-flying people can enter this room even if it's an air sector.\n\r"},
{TRUE, "extramana", " extramana", ROOM_EXTRAMANA, "People in room gain mana faster. Use VERY sparingly!!\n\r"},
{TRUE, "firetrap", " firetrap", ROOM_FIRETRAP, "Room is a firetrap; flames envelop people in the room.\n\r"},
{TRUE, "poisontrap", " poisontrap", ROOM_POISONTRAP, "Poisoned arrows shoot out hitting people in the room.\n\r"},
{TRUE, "arrowtrap", " arrowtrap", ROOM_ARROWTRAP, "Arrows shoot out and hit people in the room.\n\r"},
{TRUE, "rocktrap", " rocktrap", ROOM_ROCKTRAP, "Falling rocks drop from the ceiling, smashing people.\n\r"},
{TRUE, "spiketrap", " spiketrap", ROOM_SPIKETRAP, "People fall on spikes when in this room.\n\r"},
{TRUE, "avalanche", " avalanche", ROOM_AVALANCHE, "Avalanche goes off once when people first enter.\n\r"},
{TRUE, "manadrain", " manadrain", ROOM_MANADRAIN, "Drains mana from anyone in the room.\n\r"},
{TRUE, "gysertrap", " gysertrap", ROOM_GYSERTRAP, "Scalding hot water gushes onto people in the room.\n\r"},
{TRUE, "gastrap1", " gastrap1", ROOM_GASTRAPONE, "One-time noxious gasses in the air make people cough. Not working.\n\r"},
{TRUE, "gastrap2", " gastrap2", ROOM_GASTRAPTWO, "More serious version of gastrap1.\n\r"},
{TRUE, "is_vehicle", " is_vehicle", ROOM_ISVEHICLE, "This room is a vehicle.\n\r"},
{TRUE, "clanstore", " clanstore", ROOM_CLANSTORE, "Clan storage location.. Must be within clan start vnum + 20.\n\r"},
{TRUE, "acidspray", " acidspray", ROOM_ACIDSPRAY, "Acid randomly hits people standing in the room.\n\r"},
{FALSE, "end_of_list", " nothing", 0, ""}
};
/* UNUSED... add much later, perhaps
const struct class_data class_info [CLASS_COUNT] =
{
};
*/
/* S I W D C S I W D C Room Sk Sp, HM, HMX,Abils NATAR RHIT RMOV */
struct race_data race_info[RACE_COUNT];
/*
const struct race_data race_info [RACE_COUNT] =
{
{ "Human", { 0, 0, 0, 0, 0 }, {23,24,23,22,23}, 100, 50, 50, 53, 81, 0 ,100, 100, 100, 0, 0},
{ "Elf", { 0, 0, 0, 0, 0 }, {22,25,24,24,22}, 100, 50, 50, 58, 88, 0 ,100, 95, 105, 0, 0},
{ "Dwarf", { 0, 0, 0, 0, 0 }, {24,22,22,21,24}, 100, 50, 50, 41, 65, 0 ,97, 105, 95, 0, 0},
{ "Gnome", { 0, 0, 0, 0, 0 }, {22,24,25,22,22}, 100, 50, 50, 38, 58, 0 ,100, 100, 100, 0, 1},
{ "Giant", { 0, 0, 0, 0, 0 }, {25,20,20,22,25}, 100, 50, 50, 86, 144, 0 ,100, 100, 100, 0, 0},
{ "Kender", { 0, 0, 0, 0, 0 }, {23,23,23,22,24}, 100, 50, 50, 42, 62, 0 ,100, 95, 110, 0, 0},
{ "Troll", { 0, 0, 0, 0, 0 }, {25,19,19,21,25}, 100, 50, 50, 74, 149, 0 ,95, 105, 95, 1, 0},
{ "Aturion", { 0, 0, 0, 0, 0 }, {23,23,23,25,24}, 99, 50, 50, 60, 75, 0 ,100, 105, 105, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
{ "Blank", {-1, 0, 1, 1,-1 }, { 0, 0, 0, 0, 0}, 100, 11, 35, 55, 80, 0 ,100, 100, 100, 0, 0},
};
*/
const struct color_data color_table[] =
{
{"\x1b[30m", "$R$0", "black", 0},
{"\x1b[34m", "$R$1", "blue", 1},
{"\x1b[32m", "$R$2", "green", 2},
{"\x1b[36m", "$R$3", "cyan", 3},
{"\x1b[31m", "$R$4", "red", 4},
{"\x1b[35m", "$R$5", "purple", 5},
{"\x1b[33m", "$R$6", "brown", 6},
{"\x1b[37m", "$R$7", "grey", 7},
{"\x1b[30;1m", "$B$0", "dark_grey", 8},
{"\x1b[34;1m", "$B$1", "light_blue", 9},
{"\x1b[32;1m", "$B$2", "light_green", 10},
{"\x1b[36;1m", "$B$3", "light_cyan", 11},
{"\x1b[31;1m", "$B$4", "light_red", 12},
{"\x1b[35;1m", "$B$5", "magenta", 13},
{"\x1b[33;1m", "$B$6", "yellow", 14},
{"\x1b[37;1m", "$B$7", "white", 15},
{"\x1b[1m", "$B", "bold", 16},
{"\x1b[5m", "$F", "flashing", 17},
{"\x1b[7m", "$I", "inverse", 18},
{"\x1b[0m", "$R", "normal", 19}
};
const struct attack_type attack_table[] =
{
{"hit", TYPE_HIT}, /* 0 */
{"slice", TYPE_SLASH}, /* 1 */
{"stab", TYPE_PIERCE},
{"slash", TYPE_SLASH},
{"whip", TYPE_WHIP},
{"claw", TYPE_SLASH}, /* 5 */
{"blast", TYPE_EXPLODE},
{"pound", TYPE_POUND},
{"crush", TYPE_POUND},
{"gore", TYPE_PIERCE},
{"bite", TYPE_PIERCE}, /* 10 */
{"pierce", TYPE_PIERCE},
{"cleave", TYPE_SLASH},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT},
{"wail", TYPE_HIT}
};
const struct liq_type liq_table[LIQ_MAX + 4] =
{
{"water", "clear",
{0, 1, 10}}, /* 0 */
{"beer", "amber",
{1, 2, 5}},
{"wine", "rose",
{2, 2, 5}},
{"ale", "brown",
{2, 2, 5}},
{"brandy", "dark",
{5, 2, 5}},
{"whisky", "golden",
{6, 1, 4}}, /* 5 */
{"everclear", "golden",
{10, 0, 0}},
{"rum", "brown",
{3, 3, 3}},
{"salt water", "clear",
{0, 1, -2}},
{"milk", "white",
{0, 3, 6}},
{"unused", "none",
{-1, 1, 6}}, /* 10 */
{"tea", "tan",
{0, 1, 6}},
{"blood", "red",
{0, 2, -1}},
{"unblood", "green",
{0, 2, -2}},
{"citrus", "yellow",
{0, 1, 8}},
{"citrus", "yellow",
{0, 1, 8}},
{"citrus", "yellow",
{0, 1, 8}},
{"citrus", "yellow",
{0, 1, 8}},
{"citrus", "yellow",
{0, 1, 8}},
{"citrus", "yellow",
{0, 1, 8}}
};