Source:NetHack 1.4f/objects.h

Below is the full text to objects.h from the source code of NetHack 1.4f. To link to a particular line, write [[NetHack 1.4f/objects.h#line123 ]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

1.   /*	SCCS Id: @(#)objects.h	1.4	87/08/08 2.   /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3.    /* def.objects.h - version 1.0.3 */ 4.    5.    /* objects have letter " % ) ( 0 _ ` [ ! ? / = * + */  6.    #include "config.h"  7.    #include "objclass.h"  8.    #define	NULL	(char *)0  9.     10.   struct objclass objects[] = {  11.    12.   	{ "strange object", NULL, NULL, 1, 0,  13.   		ILLOBJ_SYM, 0, 0, 0, 0, 0, 0 },  14.   	{ "amulet of Yendor", NULL, NULL, 1, 0,  15.   		AMULET_SYM, 100, 0, 2, 0, 0, 0 },  16.    17.   #define	FOOD(name,prob,delay,weight,nutrition)	{ name, NULL, NULL, 1, 1,\  18.   		FOOD_SYM, prob, delay, weight, 0, 0, nutrition }  19.    20.   /* dog eats foods 0-4 but prefers 1 above 0,2,3,4 */  21.   /* food 4 can be read */  22.   /* food 5 improves your vision */  23.   /* food 6 makes you stronger (like Popeye) */  24.   /* foods CORPSE up to CORPSE+52 are cadavers */  25.    26.   	FOOD("food ration", 	46, 5, 4, 800),  27.   	FOOD("tripe ration",	16, 1, 2, 200),  28.   	FOOD("pancake",		3, 1, 1, 200), 29.  	FOOD("dead lizard",	3, 0, 1, 40), 30.  	FOOD("fortune cookie",	7, 0, 1, 40), 31.  	FOOD("carrot",		2, 0, 1, 50), 32.  	FOOD("slice of pizza",	5, 0, 1, 250), 33.  	FOOD("cream pie",	3, 0, 1, 100), 34.  	FOOD("tin",		7, 0, 1, 0), 35.  	FOOD("orange",		1, 0, 1, 80), 36.  	FOOD("apple",		1, 0, 1, 50), 37.  	FOOD("pear",		1, 0, 1, 50), 38.  	FOOD("melon",		1, 0, 1, 100), 39.  	FOOD("banana",		1, 0, 1, 80), 40.  	FOOD("candy bar",	1, 0, 1, 100), 41.  	FOOD("egg",		1, 0, 1, 80), 42.  	FOOD("clove of garlic",	1, 0, 1, 40), 43.  	FOOD("lump of royal jelly", 0, 0, 1, 200), 44.   45.   	FOOD("dead human",	0, 4, 40, 400), 46.  	FOOD("dead giant ant",	0, 1, 3, 30), 47.  	FOOD("dead giant bat",	0, 1, 3, 30), 48.  	FOOD("dead centaur",	0, 5, 50, 500), 49.  	FOOD("dead dragon",	0, 15, 150, 1500), 50.  	FOOD("dead floating eye",	0, 1, 1, 10), 51.  	FOOD("dead freezing sphere",	0, 1, 1, 10), 52.  	FOOD("dead gnome",	0, 1, 10, 100), 53.  	FOOD("dead hobgoblin",	0, 2, 20, 200), 54.  	FOOD("dead stalker",	0, 4, 40, 400), 55.  	FOOD("dead jackal",	0, 1, 10, 100), 56.  	FOOD("dead kobold",	0, 1, 10, 100), 57.  	FOOD("dead leprechaun",	0, 4, 40, 400), 58.  	FOOD("dead mimic",	0, 4, 40, 400), 59.  	FOOD("dead nymph",	0, 4, 40, 400), 60.  	FOOD("dead orc",	0, 2, 20, 200), 61.  	FOOD("dead purple worm",	0, 7, 70, 700), 62.  	FOOD("dead quantum mechanic", 0, 2, 20, 200), 63.  	FOOD("dead rust monster",	0, 5, 50, 500), 64.  	FOOD("dead snake",	0, 1, 10, 100), 65.  	FOOD("dead troll",	0, 4, 40, 400), 66.  	FOOD("dead umber hulk",	0, 5, 50, 500), 67.  	FOOD("dead vampire",	0, 4, 40, 400), 68.  	FOOD("dead wraith",	0, 1, 1, 10), 69.  	FOOD("dead xorn",	0, 7, 70, 700), 70.  	FOOD("dead yeti",	0, 7, 70, 700), 71.  	FOOD("dead zombie",	0, 1, 3, 30), 72.  	FOOD("dead acid blob",	0, 1, 3, 30), 73.  	FOOD("dead giant beetle",	0, 1, 1, 10), 74.  	FOOD("dead cockatrice",	0, 1, 3, 30), 75.  	FOOD("dead dog",	0, 2, 20, 200), 76.  	FOOD("dead ettin",	0, 1, 3, 30), 77.  	FOOD("dead fog cloud",	0, 1, 1, 10), 78.  	FOOD("dead gelatinous cube",	0, 1, 10, 100), 79.  	FOOD("dead homunculus",	0, 2, 20, 200), 80.  	FOOD("dead imp",	0, 1, 1, 10), 81.  	FOOD("dead jaguar",	0, 3, 30, 300), 82.  	FOOD("dead killer bee",	0, 1, 1, 10), 83.  	FOOD("dead leocrotta",	0, 5, 50, 500), 84.  	FOOD("dead minotaur",	0, 7, 70, 700), 85.  	FOOD("dead nurse",	0, 4, 40, 400), 86.  	FOOD("dead owlbear",	0, 7, 70, 700), 87.  	FOOD("dead piercer",	0, 2, 20, 200), 88.  	FOOD("dead quivering blob",	0, 1, 10, 100), 89.  	FOOD("dead giant rat",	0, 1, 3, 30), 90.  	FOOD("dead giant scorpion",	0, 1, 10, 100), 91.  	FOOD("dead tengu",	0, 3, 30, 300), 92.  	FOOD("dead unicorn",	0, 3, 30, 300), 93.  	FOOD("dead violet fungus",	0, 1, 10, 100), 94.  	FOOD("dead long worm",	0, 5, 50, 500), 95.  /* %% wt of long worm should be proportional to its length */ 96.  	FOOD("dead xan",	0, 3, 30, 300), 97.  	FOOD("dead yellow light",	0, 1, 1, 10), 98.  	FOOD("dead zruty",	0, 6, 60, 600), 99.  	FOOD("dead giant",	0, 7, 70, 700), 100. 	FOOD("dead demon",	0, 8, 80, 800), 101.  102.  /* weapons ... - ROCK come several at a time */ 103. /* weapons ... - (DART-1) are shot using idem+(BOW-ARROW) */ 104. /* weapons AXE, SWORD, KATANA, THSWORD are good for worm-cutting */ 105. /* weapons (PICK-)AXE, DAGGER, CRYSKNIFE are good for tin-opening */ 106. #define WEAPON(name,prob,wt,sdam,ldam)	{ name, NULL, NULL, 1, 0 /*%%*/,\ 107. 		WEAPON_SYM, prob, 0, wt, sdam, ldam, 0 } 108.  109.  /* Note: for weapons that don't do an even die of damage (i.e. 2-7 or 3-18) 110.  * the extra damage is added on in fight.c, not here! */ 111.   112.  	WEAPON("arrow",		6, 0, 6, 6), 113. 	WEAPON("sling bullet",	6, 0, 4, 6), 114. 	WEAPON("crossbow bolt",	6, 0, 4, 6), 115. 	WEAPON("dart",		6, 0, 3, 2), 116. 	WEAPON("shuriken",	3, 0, 8, 6), 117. 	WEAPON("rock",		4, 1, 3, 3), 118. 	WEAPON("boomerang",	1, 3, 9, 9), 119. 	WEAPON("mace",		6, 3, 6, 7), /* +1 small */ 120. 	WEAPON("axe",		5, 3, 6, 4), 121. 	WEAPON("flail",		5, 3, 6, 5), /* +1 small, +1d4 large */ 122. 	WEAPON("long sword",	5, 3, 8, 12), 123. 	WEAPON("two handed sword",	4, 4, 12, 6), /* +2d6 large */ 124. 	WEAPON("dagger",	4, 3, 4, 3), 125. 	WEAPON("worm tooth",	0, 4, 2, 2), 126. 	WEAPON("crysknife",	0, 3, 10, 10), 127. 	WEAPON("aklys",		1, 3, 6, 3), 128. 	WEAPON("bardiche",	1, 3, 4, 4), /* +1d4 small, +2d4 large */ 129. 	WEAPON("bec de corbin",	1, 3, 8, 6), 130. 	WEAPON("bill-guisarme",	1, 3, 4, 10), /* +1d4 small */ 131. 	WEAPON("club",		1, 3, 6, 3), 132. 	WEAPON("fauchard",	1, 3, 6, 8), 133. 	WEAPON("glaive",	1, 3, 6, 10), 134. 	WEAPON("guisarme",	1, 3, 4, 8), /* +1d4 small */ 135. 	WEAPON("halberd",	1, 3, 10, 6), /* +1d6 large */ 136. 	WEAPON("lucern hammer",	1, 3, 4, 6), /* +1d4 small */ 137. 	WEAPON("javelin",	1, 3, 6, 6), 138. 	WEAPON("katana",	1, 3, 12, 12), 139. 	WEAPON("lance",		1, 3, 6, 8), 140. 	WEAPON("morning star",	1, 3, 4, 6), /* +d4 small, +1 large */ 141. 	WEAPON("partisan",	1, 3, 6, 6), /* +1 large */ 142. 	WEAPON("ranseur",	1, 3, 4, 4), /* +d4 both */ 143. 	WEAPON("scimitar",	1, 3, 8, 8), 144. 	WEAPON("spetum",	1, 3, 6, 6), /* +1 small, +d6 large */ 145. 	WEAPON("broad sword",	1, 3, 4, 6), /* +d4 small, +1 large */ 146. 	WEAPON("short sword",	1, 3, 6, 8), 147. 	WEAPON("trident",	1, 3, 6, 4), /* +1 small, +2d4 large */ 148. 	WEAPON("voulge",	1, 3, 4, 4), /* +d4 both */ 149. 	WEAPON("spear",		4, 3, 6, 8), 150. 	WEAPON("bow",		4, 3, 4, 6), 151. 	WEAPON("sling",		4, 3, 6, 6), 152. 	WEAPON("crossbow",	5, 3, 4, 6), 153.  154.  #ifdef WALKIES 155. 	{ "whistle", "whistle", NULL, 0, 0, TOOL_SYM, 70, 0, 2, 0, 0, 0 }, 156. 	{ "leash", NULL, NULL, 1, 0, TOOL_SYM, 20, 0, 20, 0, 0, 0 }, 157. #else 158. 	{ "whistle", "whistle", NULL, 0, 0, TOOL_SYM, 90, 0, 2, 0, 0, 0 }, 159. 	{ "leash", NULL, NULL, 1, 0, TOOL_SYM, 0, 0, 20, 0, 0, 0 }, 160. #endif 161. 	{ "magic whistle", "whistle", NULL, 0, 0, 162. 		TOOL_SYM, 10, 0, 2, 0, 0, 0 }, 163. 	{ "expensive camera", NULL, NULL, 1, 1, 164. 		TOOL_SYM, 0, 0, 3, 0, 0, 0 }, 165. 	{ "ice box", "large box", NULL, 0, 0, 166. 		TOOL_SYM, 0, 0, 40, 0, 0, 0 }, 167. 	{ "pick-axe", NULL, NULL, 1, 1, 168. 		TOOL_SYM, 0, 0, 5, 6, 3, 0 }, 169. 	{ "magic marker", NULL, NULL, 1, 0, 170. 		TOOL_SYM, 0, 0, 1, 0, 0, 0 }, 171. 	{ "stethoscope", NULL, NULL, 1, 0, 172. 		TOOL_SYM, 0, 0, 3, 0, 0, 0 }, 173. 	{ "can opener", NULL, NULL, 1, 1, 174. 		TOOL_SYM, 0, 0, 1, 0, 0, 0 }, 175. 	{ "heavy iron ball", NULL, NULL, 1, 0, 176. 		BALL_SYM, 100, 0, 20, 0, 0, 0 }, 177. 	{ "iron chain", NULL, NULL, 1, 0, 178. 		CHAIN_SYM, 100, 0, 20, 0, 0, 0 }, 179. 	/* Because giants can throw rocks */ 180. #ifdef HARD 181. # ifdef KAA 182. 	{ "enormous rock", NULL, NULL, 1, 0, 183. 		ROCK_SYM, 100, 0, 200 /* > MAX_CARR_CAP */, 0, 20, 20 }, 184. # else 185. 	{ "enormous rock", NULL, NULL, 1, 0, 186. 		ROCK_SYM, 100, 0, 250 /* > MAX_CARR_CAP */, 0, 0, 0 }, 187. # endif 188. #else 189. # ifdef KAA 190. 	{ "enormous rock", NULL, NULL, 1, 0, 191. 		ROCK_SYM, 100, 0, 400 /* > MAX_CARR_CAP */, 0, 20, 20 }, 192. # else 193. 	{ "enormous rock", NULL, NULL, 1, 0, 194. 		ROCK_SYM, 100, 0, 550 /* > MAX_CARR_CAP */, 0, 0, 0 }, 195. # endif 196. #endif 197.  198.  #define ARMOR(name,prob,delay,weight,ac,can)	{ name, NULL, NULL, 1, 0,\ 199. 		ARMOR_SYM, prob, delay, weight, ac, can, 0 } 200. /* Originally, weight was always 8, which is ridiculous. (Plate mail weighs 201.     the same as a pair of gloves?) */ 202. 	ARMOR("helmet",			 3, 1, 2, 9, 0), 203. 	ARMOR("plate mail",		 5, 5, 9, 3, 2), 204. 	ARMOR("splint mail",		 7, 5, 8, 4, 1), 205. 	ARMOR("banded mail",		 9, 5, 8, 4, 0), 206. 	ARMOR("chain mail",		10, 5, 6, 5, 1), 207. 	ARMOR("scale mail",		10, 5, 5, 6, 0), 208. 	ARMOR("ring mail",		12, 5, 3, 7, 0), 209. 	/* the armors below do not rust */ 210. 	ARMOR("studded leather armor",	12, 3, 3, 7, 1), 211. 	ARMOR("elfin chain mail",	 1, 1, 2, 5, 3), 212. 	ARMOR("bronze plate mail",	 6, 5, 9, 4, 0), 213. 	ARMOR("crystal plate mail",	 1, 5, 9, 3, 2), 214. 	ARMOR("leather armor",		15, 3, 2, 8, 0), 215. 	ARMOR("elven cloak",		 5, 0, 2, 9, 3), 216. 	ARMOR("shield",			 3, 0, 2, 9, 0), 217. 	ARMOR("pair of gloves",		 1, 1, 2, 9, 0), 218.  219.  #define POTION(name,color)	{ name, color, NULL, 0, 1,\ 220. 		POTION_SYM, 0, 0, 2, 0, 0, 0 } 221.  222.  	POTION("restore strength",	"orange"), 223. 	POTION("gain energy", "cyan"), 224. 	POTION("booze",		"bubbly"), 225. 	POTION("invisibility",	"glowing"), 226. 	POTION("fruit juice",	"smoky"), 227. 	POTION("healing",	"pink"), 228. 	POTION("paralysis",	"puce"), 229. 	POTION("monster detection",	"purple"), 230. 	POTION("object detection",	"yellow"), 231. 	POTION("sickness",	"white"), 232. 	POTION("confusion",	"swirly"), 233. 	POTION("gain strength",	"purple-red"), 234. 	POTION("speed",		"ruby"), 235. 	POTION("blindness",	"dark green"), 236. 	POTION("gain level",	"emerald"), 237. 	POTION("extra healing",	"sky blue"), 238. 	POTION("levitation",	"brown"), 239. 	POTION("hallucination",	"brilliant blue"), 240. 	POTION("holy water",	"clear"), 241. 	POTION(NULL,	"magenta"), 242. 	POTION(NULL,	"ebony"), 243.  244.  #define SCROLL(name,text,prob) { name, text, NULL, 0, 1,\ 245. 		SCROLL_SYM, prob, 0, 3, 0, 0, 0 } 246. 	SCROLL("mail",	"KIRJE", 0), 247. 	SCROLL("enchant armor", "ZELGO MER", 6), 248. 	SCROLL("destroy armor", "JUYED AWK YACC", 5), 249. 	SCROLL("confuse monster", "NR 9", 5), 250. 	SCROLL("scare monster", "XIXAXA XOXAXA XUXAXA", 4), 251. 	SCROLL("blank paper", "READ ME", 3), 252. 	SCROLL("remove curse", "PRATYAVAYAH", 6), 253. 	SCROLL("enchant weapon", "DAIYEN FOOELS", 6), 254. 	SCROLL("damage weapon", "HACKEM MUCHE", 5), 255. 	SCROLL("create monster", "LEP GEX VEN ZEA", 5), 256. 	SCROLL("taming", "PRIRUTSENIE", 1), 257. 	SCROLL("genocide", "ELBIB YLOH",2), 258. 	SCROLL("light", "VERR YED HORRE", 10), 259. 	SCROLL("teleportation", "VENZAR BORGAVVE", 5), 260. 	SCROLL("gold detection", "THARR", 4), 261. 	SCROLL("food detection", "YUM YUM", 1), 262. 	SCROLL("identify", "KERNOD WEL", 18), 263. 	SCROLL("magic mapping", "ELAM EBOW", 5), 264. 	SCROLL("amnesia", "DUAM XNAHT", 3), 265. 	SCROLL("fire", "ANDOVA BEGARIN", 5), 266. 	SCROLL("punishment", "VE FORBRYDERNE", 1), 267. 	SCROLL(NULL, "VELOX NEB", 0), 268. 	SCROLL(NULL, "FOOBIE BLETCH", 0), 269. 	SCROLL(NULL, "TEMOV", 0), 270. 	SCROLL(NULL, "GARVEN DEH", 0), 271.  272.  #define	WAND(name,metal,prob,flags)	{ name, metal, NULL, 0, 0,\ 273. 		WAND_SYM, prob, 0, 3, flags, 0, 0 } 274.  275.  	WAND("light",	"iridium",		10,	NODIR), 276. 	WAND("secret door detection",	"tin",	5,	NODIR), 277. 	WAND("create monster",	"platinum",	5,	NODIR), 278. 	WAND("wishing",		"glass",	1,	NODIR), 279. #ifdef KAA 280. 	WAND("striking",	"zinc",		7,	IMMEDIATE), 281. 	WAND("nothing",		"uranium",	2,	IMMEDIATE), 282. #else 283. 	WAND("striking",	"zinc",		9,	IMMEDIATE), 284. 	WAND("nothing",		"uranium",	0,	IMMEDIATE), 285. #endif 286. 	WAND("slow monster",	"balsa",	5,	IMMEDIATE), 287. 	WAND("speed monster",	"copper",	5,	IMMEDIATE), 288. 	WAND("undead turning",	"silver",	5,	IMMEDIATE), 289. 	WAND("polymorph",	"brass",	5,	IMMEDIATE), 290. 	WAND("cancellation",	"maple",	5,	IMMEDIATE), 291. 	WAND("teleportation",	"pine",		5,	IMMEDIATE), 292. #ifdef PROBING 293. 	WAND("make invisible",	"marble",	7,	IMMEDIATE), 294. 	WAND("probing",		"oak",		2,	IMMEDIATE), 295. #else 296. 	WAND("make invisible",	"marble",	9,	IMMEDIATE), 297. 	WAND("probing",		"oak",		0,	IMMEDIATE), 298. #endif 299. 	WAND("digging",		"iron",		5,	RAY), 300. 	WAND("magic missile",	"aluminium",	10,	RAY), 301. 	WAND("fire",		"steel",	5,	RAY), 302. 	WAND("sleep",		"curved",	5,	RAY), 303. 	WAND("cold",		"short",	5,	RAY), 304. 	WAND("death",		"long",		1,	RAY), 305. 	WAND(NULL,		"ebony",	0,	0), 306. 	WAND(NULL,		"runed",	0,	0), 307.  308.  #ifdef SPELLS 309. /* books */ 310. #define SPELL(name,desc,prob,delay,flags,level)	{ name, desc, NULL, 0, 0, SPBOOK_SYM, prob, delay, 5, flags, 0, level } 311. 	SPELL("magic missile", "parchment", 4, 3, RAY, 2), 312. 	SPELL("fireball", "shining", 2, 6, RAY, 4), 313. 	SPELL("sleep", "glowing", 6, 1, RAY, 1), 314. 	SPELL("cone of cold", "mottled", 1, 8, RAY, 5), 315. 	SPELL("finger of death", "ragged", 1, 10, RAY, 7), 316.  317.  	SPELL("healing", "yellow", 6, 2, NODIR, 1), 318. 	SPELL("detect monsters", "light green", 5, 1, NODIR, 1), 319. 	SPELL("force bolt", "dark blue", 4, 2, IMMEDIATE, 1), 320. 	SPELL("light", "copper", 5, 1, NODIR, 1), 321. 	SPELL("confuse monster", "white", 5, 2, IMMEDIATE, 2), 322. 	SPELL("cure blindness", "red", 3, 2, IMMEDIATE, 2), 323. 	SPELL("slow monster", "dark brown", 4, 2, IMMEDIATE, 2), 324. 	SPELL("create monster", "light brown", 4, 3, NODIR, 2), 325. 	SPELL("detect food", "pink", 5, 3, NODIR, 2), 326. 	SPELL("haste self", "light blue", 3, 4, NODIR, 3), 327. 	SPELL("cause fear", "black", 4, 3, NODIR, 3), 328. 	SPELL("cure sickness", "rusty", 3, 3, NODIR, 3), 329. 	SPELL("detect unseen", "dark green", 4, 4, NODIR, 3), 330. 	SPELL("extra healing", "magenta", 3, 5, NODIR, 3), 331. 	SPELL("charm monster", "silver", 3, 3, IMMEDIATE, 3), 332. 	SPELL("levitation", "indigo", 3, 4, NODIR, 4), 333. 	SPELL("restore strength", "plaid", 2, 5, NODIR, 4), 334. 	SPELL("invisibility", "orange", 3, 5, NODIR, 4), 335. 	SPELL("detect treasure", "bronze", 3, 5, NODIR, 4), 336. 	SPELL("dig", "cloth", 2, 6, RAY, 5), 337. 	SPELL("remove curse", "grey", 2, 5, NODIR, 5), 338. 	SPELL("magic mapping", "purple", 2, 7, NODIR, 5), 339. 	SPELL("identify", "violet", 1, 8, NODIR, 5), 340. 	SPELL("turn undead", "turquoise", 1, 8, IMMEDIATE, 6), 341. 	SPELL("polymorph", "cyan", 1, 8, IMMEDIATE, 6), 342. 	SPELL("create familiar", "tan", 1, 7, NODIR, 6), 343. 	SPELL("teleport away", "paper", 2, 6, IMMEDIATE, 6), 344. 	SPELL("cancellation", "leather", 1, 8, IMMEDIATE, 7), 345. 	SPELL("genocide", "gold", 1, 10, NODIR, 7), 346. /* randomization */ 347. 	SPELL(NULL, "dog eared", 0, 0, 0, 0), 348. 	SPELL(NULL, "thick", 0, 0, 0, 0), 349. 	SPELL(NULL, "thin", 0, 0, 0, 0), 350. 	SPELL(NULL, "stained", 0, 0, 0, 0), 351. #endif /* SPELLS /**/ 352.  353.  #define	RING(name,stone,spec)	{ name, stone, NULL, 0, 0,\ 354. 		RING_SYM, 0, 0, 1, spec, 0, 0 } 355.  356.  	RING("adornment",	"engagement",	0), 357. 	RING("teleportation",	"wooden",	0), 358. 	RING("regeneration",	"black onyx",	0), 359. 	RING("searching",	"topaz",	0), 360. 	RING("see invisible",	"pearl",	0), 361. 	RING("stealth",		"sapphire",	0), 362. 	RING("levitation",	"moonstone",	0), 363. 	RING("poison resistance", "agate",	0), 364. 	RING("aggravate monster", "tiger eye",	0), 365. 	RING("hunger",		"shining",	0), 366. 	RING("fire resistance",	"gold",		0), 367. 	RING("cold resistance",	"copper",	0), 368. 	RING("protection from shape changers", "diamond", 0), 369. 	RING("conflict",	"jade",		0), 370. 	RING("gain strength",	"ruby",		SPEC), 371. 	RING("increase damage",	"silver",	SPEC), 372. 	RING("protection",	"granite",	SPEC), 373. 	RING("warning",		"wire",		0), 374. 	RING("teleport control", "iron",	0), 375. 	RING(NULL,		"ivory",	0), 376. 	RING(NULL,		"blackened",	0), 377.  378.  /* gems ************************************************************/ 379. #define	GEM(name,color,prob,gval)	{ name, color, NULL, 0, 1,\ 380. 		GEM_SYM, prob, 0, 1, 0, 0, gval } 381. 	GEM("dilithium crystal", "lavender", 1, 4500), 382. 	GEM("diamond", "blue", 1, 4000), 383. 	GEM("ruby", "red", 1, 3500), 384. 	GEM("sapphire", "blue", 1, 3000), 385. 	GEM("emerald", "green", 1, 2500), 386. 	GEM("turquoise", "green", 1, 2000), 387. 	GEM("aquamarine", "blue", 1, 1500), 388. 	GEM("tourmaline", "green", 1, 1000), 389. 	GEM("topaz", "yellow", 1, 900), 390. 	GEM("opal", "yellow", 1, 800), 391. 	GEM("garnet", "dark", 1, 700), 392. 	GEM("amethyst", "violet", 1, 650), 393. 	GEM("agate", "green", 2, 600), 394. 	GEM("onyx", "white", 2, 550), 395. 	GEM("jasper", "yellowish brown", 2, 500), 396. 	GEM("jade", "green", 2, 450), 397. 	GEM("worthless piece of blue glass", "blue", 20, 0), 398. 	GEM("worthless piece of red glass", "red", 20, 0), 399. 	GEM("worthless piece of yellow glass", "yellow", 20, 0), 400. 	GEM("worthless piece of green glass", "green", 20, 0), 401. 	{ NULL, NULL, NULL, 0, 0, ILLOBJ_SYM, 0, 0, 0, 0, 0, 0 } 402. };  403.   404.  char obj_symbols[] = { 405. 	ILLOBJ_SYM, AMULET_SYM, FOOD_SYM, WEAPON_SYM, TOOL_SYM, 406. 	BALL_SYM, CHAIN_SYM, ROCK_SYM, ARMOR_SYM, 407. 	POTION_SYM, SCROLL_SYM, WAND_SYM, 408. #ifdef SPELLS 409. 	SPBOOK_SYM, 410. #endif 411. 	RING_SYM, GEM_SYM, 0 }; 412. int bases[sizeof(obj_symbols)];