Source:NetHack 1.3d/objects.h

From NetHackWiki
Revision as of 00:10, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 1.3d/objects.h moved to Source:NetHack 1.3d/objects.h: Robot: moved page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

Screenshots and source code from Hack are used under the CWI license.

1.    /*	SCCS Id: @(#)objects.h	1.3	87/07/14
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.  #ifdef KAA
180.  	/* Because giants can throw rocks */
181.  	{ "enormous rock", NULL, NULL, 1, 0,
182.  		ROCK_SYM, 100, 0, 200 /* > MAX_CARR_CAP */, 0, 20, 20 },
183.  #else
184.  	{ "enormous rock", NULL, NULL, 1, 0,
185.  		ROCK_SYM, 100, 0, 250 /* > MAX_CARR_CAP */, 0, 0, 0 },
186.  #endif
187.  
188.  #define ARMOR(name,prob,delay,weight,ac,can)	{ name, NULL, NULL, 1, 0,\
189.  		ARMOR_SYM, prob, delay, weight, ac, can, 0 }
190.  /* Originally, weight was always 8, which is ridiculous.  (Plate mail weighs
191.     the same as a pair of gloves?) */
192.  	ARMOR("helmet",			 3, 1, 2, 9, 0),
193.  	ARMOR("plate mail",		 5, 5, 9, 3, 2),
194.  	ARMOR("splint mail",		 7, 5, 8, 4, 1),
195.  	ARMOR("banded mail",		 9, 5, 8, 4, 0),
196.  	ARMOR("chain mail",		10, 5, 6, 5, 1),
197.  	ARMOR("scale mail",		10, 5, 5, 6, 0),
198.  	ARMOR("ring mail",		12, 5, 3, 7, 0),
199.  	/* the armors below do not rust */
200.  	ARMOR("studded leather armor",	12, 3, 3, 7, 1),
201.  	ARMOR("elfin chain mail",	 1, 1, 2, 5, 3),
202.  	ARMOR("bronze plate mail",	 6, 5, 9, 4, 0),
203.  	ARMOR("crystal plate mail",	 1, 5, 9, 3, 2),
204.  	ARMOR("leather armor",		15, 3, 2, 8, 0),
205.  	ARMOR("elven cloak",		 5, 0, 2, 9, 3),
206.  	ARMOR("shield",			 3, 0, 2, 9, 0),
207.  	ARMOR("pair of gloves",		 1, 1, 2, 9, 0),
208.  
209.  #define POTION(name,color)	{ name, color, NULL, 0, 1,\
210.  		POTION_SYM, 0, 0, 2, 0, 0, 0 }
211.  
212.  	POTION("restore strength",	"orange"),
213.  	POTION("gain energy", "cyan"),
214.  	POTION("booze",		"bubbly"),
215.  	POTION("invisibility",	"glowing"),
216.  	POTION("fruit juice",	"smoky"),
217.  	POTION("healing",	"pink"),
218.  	POTION("paralysis",	"puce"),
219.  	POTION("monster detection",	"purple"),
220.  	POTION("object detection",	"yellow"),
221.  	POTION("sickness",	"white"),
222.  	POTION("confusion",	"swirly"),
223.  	POTION("gain strength",	"purple-red"),
224.  	POTION("speed",		"ruby"),
225.  	POTION("blindness",	"dark green"),
226.  	POTION("gain level",	"emerald"),
227.  	POTION("extra healing",	"sky blue"),
228.  	POTION("levitation",	"brown"),
229.  	POTION("hallucination",	"brilliant blue"),
230.  	POTION("holy water",	"clear"),
231.  	POTION(NULL,	"magenta"),
232.  	POTION(NULL,	"ebony"),
233.  
234.  #define SCROLL(name,text,prob) { name, text, NULL, 0, 1,\
235.  		SCROLL_SYM, prob, 0, 3, 0, 0, 0 }
236.  	SCROLL("mail",	"KIRJE", 0),
237.  	SCROLL("enchant armor", "ZELGO MER", 6),
238.  	SCROLL("destroy armor", "JUYED AWK YACC", 5),
239.  	SCROLL("confuse monster", "NR 9", 5),
240.  	SCROLL("scare monster", "XIXAXA XOXAXA XUXAXA", 4),
241.  	SCROLL("blank paper", "READ ME", 3),
242.  	SCROLL("remove curse", "PRATYAVAYAH", 6),
243.  	SCROLL("enchant weapon", "DAIYEN FOOELS", 6),
244.  	SCROLL("damage weapon", "HACKEM MUCHE", 5),
245.  	SCROLL("create monster", "LEP GEX VEN ZEA", 5),
246.  	SCROLL("taming", "PRIRUTSENIE", 1),
247.  	SCROLL("genocide", "ELBIB YLOH",2),
248.  	SCROLL("light", "VERR YED HORRE", 10),
249.  	SCROLL("teleportation", "VENZAR BORGAVVE", 5),
250.  	SCROLL("gold detection", "THARR", 4),
251.  	SCROLL("food detection", "YUM YUM", 1),
252.  	SCROLL("identify", "KERNOD WEL", 18),
253.  	SCROLL("magic mapping", "ELAM EBOW", 5),
254.  	SCROLL("amnesia", "DUAM XNAHT", 3),
255.  	SCROLL("fire", "ANDOVA BEGARIN", 5),
256.  	SCROLL("punishment", "VE FORBRYDERNE", 1),
257.  	SCROLL(NULL, "VELOX NEB", 0),
258.  	SCROLL(NULL, "FOOBIE BLETCH", 0),
259.  	SCROLL(NULL, "TEMOV", 0),
260.  	SCROLL(NULL, "GARVEN DEH", 0),
261.  
262.  #define	WAND(name,metal,prob,flags)	{ name, metal, NULL, 0, 0,\
263.  		WAND_SYM, prob, 0, 3, flags, 0, 0 }
264.  
265.  	WAND("light",	"iridium",		10,	NODIR),
266.  	WAND("secret door detection",	"tin",	5,	NODIR),
267.  	WAND("create monster",	"platinum",	5,	NODIR),
268.  	WAND("wishing",		"glass",	1,	NODIR),
269.  #ifdef KAA
270.  	WAND("striking",	"zinc",		7,	IMMEDIATE),
271.  	WAND("nothing",		"uranium",	2,	IMMEDIATE),
272.  #else
273.  	WAND("striking",	"zinc",		9,	IMMEDIATE),
274.  	WAND("nothing",		"uranium",	0,	IMMEDIATE),
275.  #endif 
276.  	WAND("slow monster",	"balsa",	5,	IMMEDIATE),
277.  	WAND("speed monster",	"copper",	5,	IMMEDIATE),
278.  	WAND("undead turning",	"silver",	5,	IMMEDIATE),
279.  	WAND("polymorph",	"brass",	5,	IMMEDIATE),
280.  	WAND("cancellation",	"maple",	5,	IMMEDIATE),
281.  	WAND("teleportation",	"pine",		5,	IMMEDIATE),
282.  #ifdef PROBING
283.  	WAND("make invisible",	"marble",	7,	IMMEDIATE),
284.  	WAND("probing",		"oak",		2,	IMMEDIATE),
285.  #else
286.  	WAND("make invisible",	"marble",	9,	IMMEDIATE),
287.  	WAND("probing",		"oak",		0,	IMMEDIATE),
288.  #endif
289.  	WAND("digging",		"iron",		5,	RAY),
290.  	WAND("magic missile",	"aluminium",	10,	RAY),
291.  	WAND("fire",		"steel",	5,	RAY),
292.  	WAND("sleep",		"curved",	5,	RAY),
293.  	WAND("cold",		"short",	5,	RAY),
294.  	WAND("death",		"long",		1,	RAY),
295.  	WAND(NULL,		"ebony",	0,	0),
296.  	WAND(NULL,		"runed",	0,	0),
297.  
298.  #ifdef SPELLS
299.  /* books */
300.  #define SPELL(name,desc,prob,delay,flags,level)	{ name, desc, NULL, 0, 0, SPBOOK_SYM, prob, delay, 5, flags, 0, level }
301.  	SPELL("magic missile", "parchment", 4, 3, RAY, 2),
302.  	SPELL("fireball", "shining", 2, 6, RAY, 4),
303.  	SPELL("sleep", "glowing", 6, 1, RAY, 1),
304.  	SPELL("cone of cold", "mottled", 1, 8, RAY, 5),
305.  	SPELL("finger of death", "ragged", 1, 10, RAY, 7),
306.  
307.  	SPELL("healing", "yellow", 6, 2, NODIR, 1),
308.  	SPELL("detect monsters", "light green", 5, 1, NODIR, 1),
309.  	SPELL("force bolt", "dark blue", 4, 2, IMMEDIATE, 1),
310.  	SPELL("light", "copper", 5, 1, NODIR, 1),
311.  	SPELL("confuse monster", "white", 5, 2, IMMEDIATE, 2),
312.  	SPELL("cure blindness", "red", 3, 2, IMMEDIATE, 2),
313.  	SPELL("slow monster", "dark brown", 4, 2, IMMEDIATE, 2),
314.  	SPELL("create monster", "light brown", 4, 3, NODIR, 2),
315.  	SPELL("detect food", "pink", 5, 3, NODIR, 2),
316.  	SPELL("haste self", "light blue", 3, 4, NODIR, 3),
317.  	SPELL("cause fear", "black", 4, 3, NODIR, 3),
318.  	SPELL("cure sickness", "rusty", 3, 3, NODIR, 3),
319.  	SPELL("detect unseen", "dark green", 4, 4, NODIR, 3),
320.  	SPELL("extra healing", "magenta", 3, 5, NODIR, 3),
321.  	SPELL("charm monster", "silver", 3, 3, IMMEDIATE, 3),
322.  	SPELL("levitation", "indigo", 3, 4, NODIR, 4),
323.  	SPELL("restore strength", "plaid", 2, 5, NODIR, 4),
324.  	SPELL("invisibility", "orange", 3, 5, NODIR, 4),
325.  	SPELL("detect treasure", "bronze", 3, 5, NODIR, 4),
326.  	SPELL("dig", "cloth", 2, 6, RAY, 5),
327.  	SPELL("remove curse", "grey", 2, 5, NODIR, 5),
328.  	SPELL("magic mapping", "purple", 2, 7, NODIR, 5),
329.  	SPELL("identify", "violet", 1, 8, NODIR, 5),
330.  	SPELL("turn undead", "turquoise", 1, 8, IMMEDIATE, 6),
331.  	SPELL("polymorph", "cyan", 1, 8, IMMEDIATE, 6),
332.  	SPELL("create familiar", "tan", 1, 7, NODIR, 6),
333.  	SPELL("teleport away", "paper", 2, 6, IMMEDIATE, 6),
334.  	SPELL("cancellation", "leather", 1, 8, IMMEDIATE, 7),
335.  	SPELL("genocide", "gold", 1, 10, NODIR, 7),
336.  /* randomization */
337.  	SPELL(NULL, "dog eared", 0, 0, 0, 0),
338.  	SPELL(NULL, "thick", 0, 0, 0, 0),
339.  	SPELL(NULL, "thin", 0, 0, 0, 0),
340.  	SPELL(NULL, "stained", 0, 0, 0, 0),
341.  #endif /* SPELLS /**/
342.  
343.  #define	RING(name,stone,spec)	{ name, stone, NULL, 0, 0,\
344.  		RING_SYM, 0, 0, 1, spec, 0, 0 }
345.  
346.  	RING("adornment",	"engagement",	0),
347.  	RING("teleportation",	"wooden",	0),
348.  	RING("regeneration",	"black onyx",	0),
349.  	RING("searching",	"topaz",	0),
350.  	RING("see invisible",	"pearl",	0),
351.  	RING("stealth",		"sapphire",	0),
352.  	RING("levitation",	"moonstone",	0),
353.  	RING("poison resistance", "agate",	0),
354.  	RING("aggravate monster", "tiger eye",	0),
355.  	RING("hunger",		"shining",	0),
356.  	RING("fire resistance",	"gold",		0),
357.  	RING("cold resistance",	"copper",	0),
358.  	RING("protection from shape changers", "diamond", 0),
359.  	RING("conflict",	"jade",		0),
360.  	RING("gain strength",	"ruby",		SPEC),
361.  	RING("increase damage",	"silver",	SPEC),
362.  	RING("protection",	"granite",	SPEC),
363.  	RING("warning",		"wire",		0),
364.  	RING("teleport control", "iron",	0),
365.  	RING(NULL,		"ivory",	0),
366.  	RING(NULL,		"blackened",	0),
367.  
368.  /* gems ************************************************************/
369.  #define	GEM(name,color,prob,gval)	{ name, color, NULL, 0, 1,\
370.  		GEM_SYM, prob, 0, 1, 0, 0, gval }
371.  	GEM("dilithium crystal", "lavender", 1, 4500),
372.  	GEM("diamond", "blue", 1, 4000),
373.  	GEM("ruby", "red", 1, 3500),
374.  	GEM("sapphire", "blue", 1, 3000),
375.  	GEM("emerald", "green", 1, 2500),
376.  	GEM("turquoise", "green", 1, 2000),
377.  	GEM("aquamarine", "blue", 1, 1500),
378.  	GEM("tourmaline", "green", 1, 1000),
379.  	GEM("topaz", "yellow", 1, 900),
380.  	GEM("opal", "yellow", 1, 800),
381.  	GEM("garnet", "dark", 1, 700),
382.  	GEM("amethyst", "violet", 1, 650),
383.  	GEM("agate", "green", 2, 600),
384.  	GEM("onyx", "white", 2, 550),
385.  	GEM("jasper", "yellowish brown", 2, 500),
386.  	GEM("jade", "green", 2, 450),
387.  	GEM("worthless piece of blue glass", "blue", 20, 0),
388.  	GEM("worthless piece of red glass", "red", 20, 0),
389.  	GEM("worthless piece of yellow glass", "yellow", 20, 0),
390.  	GEM("worthless piece of green glass", "green", 20, 0),
391.  	{ NULL, NULL, NULL, 0, 0, ILLOBJ_SYM, 0, 0, 0, 0, 0, 0 }
392.  };
393.  
394.  char obj_symbols[] = {
395.  	ILLOBJ_SYM, AMULET_SYM, FOOD_SYM, WEAPON_SYM, TOOL_SYM,
396.  	BALL_SYM, CHAIN_SYM, ROCK_SYM, ARMOR_SYM,
397.  	POTION_SYM, SCROLL_SYM, WAND_SYM,
398.  #ifdef SPELLS
399.  	SPBOOK_SYM,
400.  #endif
401.  	RING_SYM, GEM_SYM, 0 };
402.  int bases[sizeof(obj_symbols)];