Fandom

Wikihack

Source:NetHack 3.3.0/objects.c

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

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

The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)objects.c	3.3	1999/11/15	*/
2.    /* Copyright (c) Mike Threepoint, 1989.				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef OBJECTS_PASS_2_
6.    /* first pass */
7.    struct monst { struct monst *dummy; };	/* lint: struct obj's union */
8.    #include "config.h"
9.    #include "obj.h"
10.   #include "objclass.h"
11.   #include "prop.h"
12.   #include "skills.h"
13.   
14.   #else	/* !OBJECTS_PASS_2_ */
15.   /* second pass */
16.   # ifdef TEXTCOLOR
17.   #include "color.h"
18.   #  define COLOR_FIELD(X) X,
19.   # else
20.   #  define COLOR_FIELD(X) /*empty*/
21.   # endif
22.   #endif	/* !OBJECTS_PASS_2_ */
23.   
24.   
25.   /* objects have symbols: ) [ = " ( % ! ? + / $ * ` 0 _ . */
26.   
27.   /*
28.    *	Note:  OBJ() and BITS() macros are used to avoid exceeding argument
29.    *	limits imposed by some compilers.  The ctnr field of BITS currently
30.    *	does not map into struct objclass, and is ignored in the expansion.
31.    *	The 0 in the expansion corresponds to oc_pre_discovered, which is
32.    *	set at run-time during role-specific character initialization.
33.    */
34.   
35.   #ifndef OBJECTS_PASS_2_
36.   /* first pass -- object descriptive text */
37.   # define OBJ(name,desc) name,desc
38.   # define OBJECT(obj,bits,prp,sym,prob,dly,wt,cost,sdam,ldam,oc1,oc2,nut,color) \
39.   	{obj}
40.   
41.   NEARDATA struct objdescr obj_descr[] = {
42.   #else
43.   /* second pass -- object definitions */
44.   
45.   # define BITS(nmkn,mrg,uskn,ctnr,mgc,chrg,uniq,nwsh,big,tuf,dir,sub,mtrl) \
46.   	nmkn,mrg,uskn,0,mgc,chrg,uniq,nwsh,big,tuf,dir,mtrl,sub /* SCO ODT 1.1 cpp fodder */
47.   # define OBJECT(obj,bits,prp,sym,prob,dly,wt,cost,sdam,ldam,oc1,oc2,nut,color) \
48.   	{0, 0, (char *)0, bits, prp, sym, dly, COLOR_FIELD(color) \
49.   	 prob, wt, cost, sdam, ldam, oc1, oc2, nut}
50.   # ifndef lint
51.   #  define HARDGEM(n) (n >= 8)
52.   # else
53.   #  define HARDGEM(n) (0)
54.   # endif
55.   
56.   NEARDATA struct objclass objects[] = {
57.   #endif
58.   /* dummy object[0] -- description [2nd arg] *must* be NULL */
59.   	OBJECT(OBJ("strange object",(char *)0), BITS(1,0,0,0,0,0,0,0,0,0,0,P_NONE,0),
60.   			0, ILLOBJ_CLASS, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
61.   
62.   /* weapons ... */
63.   #define WEAPON(name,app,kn,mg,bi,prob,wt,cost,sdam,ldam,hitbon,typ,sub,metal,color) \
64.   	OBJECT( \
65.   		OBJ(name,app), BITS(kn,mg,1,0,0,1,0,0,bi,0,typ,sub,metal), 0, \
66.   		WEAPON_CLASS, prob, 0, \
67.   		wt, cost, sdam, ldam, hitbon, 0, wt, color )
68.   #define PROJECTILE(name,app,kn,prob,wt,cost,sdam,ldam,hitbon,metal,sub,color) \
69.   	OBJECT( \
70.   		OBJ(name,app), \
71.   		BITS(kn,1,1,0,0,1,0,0,0,0,PIERCE,sub,metal), 0, \
72.   		WEAPON_CLASS, prob, 0, \
73.   		wt, cost, sdam, ldam, hitbon, 0, wt, color )
74.   #define BOW(name,app,kn,prob,wt,cost,hitbon,metal,sub,color) \
75.   	OBJECT( \
76.   		OBJ(name,app), BITS(kn,0,1,0,0,1,0,0,0,0,0,sub,metal), 0, \
77.   		WEAPON_CLASS, prob, 0, \
78.   		wt, cost, 2, 2, hitbon, 0, wt, color )
79.   
80.   /* Note: for weapons that don't do an even die of damage (ex. 2-7 or 3-18)
81.    * the extra damage is added on in weapon.c, not here! */
82.   
83.   #define P PIERCE
84.   #define S SLASH
85.   #define B WHACK
86.   
87.   /* missiles */
88.   PROJECTILE("arrow", (char *)0,
89.   		1, 55, 1, 2, 6, 6, 0, IRON, -P_BOW, HI_METAL),
90.   PROJECTILE("elven arrow", "runed arrow",
91.   		0, 20, 1, 2, 7, 6, 0, WOOD, -P_BOW, HI_WOOD),
92.   PROJECTILE("orcish arrow", "crude arrow",
93.   		0, 20, 1, 2, 5, 6, 0, IRON, -P_BOW, CLR_BLACK),
94.   PROJECTILE("silver arrow", (char *)0,
95.   		1, 12, 1, 2, 6, 6, 0, SILVER, -P_BOW, HI_SILVER),
96.   PROJECTILE("ya", "bamboo arrow",
97.   		0, 15, 1, 4, 7, 7, 1, METAL, -P_BOW, HI_METAL),
98.   PROJECTILE("crossbow bolt", (char *)0,
99.   		1, 55, 1, 2, 4, 6, 0, IRON, -P_CROSSBOW, HI_METAL),
100.  
101.  WEAPON("dart", (char *)0,
102.  	1, 1, 0, 60,  1,  2,  3,  2, 0, P,   -P_DART, IRON, HI_METAL),
103.  WEAPON("shuriken", "throwing star",
104.  	0, 1, 0, 35,  1,  5,  8,  6, 2, P,   -P_SHURIKEN, IRON, HI_METAL),
105.  WEAPON("boomerang", (char *)0,
106.  	1, 1, 0, 15,  5, 20,  9,  9, 0, 0,   -P_BOOMERANG, WOOD, HI_WOOD),
107.  
108.  /* spears */
109.  WEAPON("spear", (char *)0,
110.  	1, 1, 0, 50, 30,  3,  6,  8, 0, P,   P_SPEAR, IRON, HI_METAL),
111.  WEAPON("elven spear", "runed spear",
112.  	0, 1, 0, 10, 30,  3,  7,  8, 0, P,   P_SPEAR, WOOD, HI_WOOD),
113.  WEAPON("orcish spear", "crude spear",
114.  	0, 1, 0, 13, 30,  3,  5,  8, 0, P,   P_SPEAR, IRON, CLR_BLACK),
115.  WEAPON("dwarvish spear", "stout spear",
116.  	0, 1, 0, 12, 35,  3,  8,  8, 0, P,   P_SPEAR, IRON, HI_METAL),
117.  WEAPON("silver spear", (char *)0,
118.  	1, 1, 0,  2, 36, 40,  6,  8, 0, P,   P_SPEAR, SILVER, HI_SILVER),
119.  WEAPON("javelin", "throwing spear",
120.  	0, 1, 0, 10, 20,  3,  6,  6, 0, P,   P_SPEAR, IRON, HI_METAL),
121.  
122.  WEAPON("trident", (char *)0,
123.  	1, 0, 0,  8, 25,  5,  6,  4, 0, P,   P_TRIDENT, IRON, HI_METAL),
124.  						/* +1 small, +2d4 large */
125.  
126.  /* blades */
127.  WEAPON("dagger", (char *)0,
128.  	1, 1, 0, 30, 10,  4,  4,  3, 2, P,   P_DAGGER, IRON, HI_METAL),
129.  WEAPON("elven dagger", "runed dagger",
130.  	0, 1, 0, 10, 10,  4,  5,  3, 2, P,   P_DAGGER, WOOD, HI_WOOD),
131.  WEAPON("orcish dagger", "crude dagger",
132.  	0, 1, 0, 12, 10,  4,  3,  3, 2, P,   P_DAGGER, IRON, CLR_BLACK),
133.  WEAPON("silver dagger", (char *)0,
134.  	1, 1, 0,  3, 12, 40,  4,  3, 2, P,   P_DAGGER, SILVER, HI_SILVER),
135.  WEAPON("athame", (char *)0,
136.  	1, 1, 0,  0, 10,  4,  4,  3, 2, S,   P_DAGGER, IRON, HI_METAL),
137.  WEAPON("scalpel", (char *)0,
138.  	1, 1, 0,  0,  5,  4,  3,  3, 2, S,   P_KNIFE, IRON, HI_METAL),
139.  WEAPON("knife", (char *)0,
140.  	1, 1, 0, 20,  5,  4,  3,  2, 0, P|S, P_KNIFE, IRON, HI_METAL),
141.  WEAPON("stiletto", (char *)0,
142.  	1, 1, 0,  5,  5,  4,  3,  2, 0, P|S, P_KNIFE, IRON, HI_METAL),
143.  WEAPON("worm tooth", (char *)0,
144.  	1, 0, 0,  0, 20,  2,  2,  2, 0, 0,   P_KNIFE, 0, CLR_WHITE),
145.  WEAPON("crysknife", (char *)0,
146.  	1, 0, 0,  0, 20,100, 10, 10, 3, P,   P_KNIFE, MINERAL, CLR_WHITE),
147.  
148.  WEAPON("axe", (char *)0,
149.  	1, 0, 0, 40, 60,  8,  6,  4, 0, S,   P_AXE, IRON, HI_METAL),
150.  WEAPON("battle-axe", "double-headed axe",
151.  	0, 0, 1, 10,120, 40,  8,  6, 0, S,   P_AXE, IRON, HI_METAL),
152.  						/* "double-bitted" ? */
153.  
154.  /* swords */
155.  WEAPON("short sword", (char *)0,
156.  	1, 0, 0,  8, 30, 10,  6,  8, 0, P,   P_SHORT_SWORD, IRON, HI_METAL),
157.  WEAPON("elven short sword", "runed short sword",
158.  	0, 0, 0,  2, 30, 10,  8,  8, 0, P,   P_SHORT_SWORD, WOOD, HI_WOOD),
159.  WEAPON("orcish short sword", "crude short sword",
160.  	0, 0, 0,  3, 30, 10,  5,  8, 0, P,   P_SHORT_SWORD, IRON, CLR_BLACK),
161.  WEAPON("dwarvish short sword", "broad short sword",
162.  	0, 0, 0,  2, 30, 10,  7,  8, 0, P,   P_SHORT_SWORD, IRON, HI_METAL),
163.  WEAPON("scimitar", "curved sword",
164.  	0, 0, 0, 15, 40, 15,  8,  8, 0, S,   P_SCIMITAR, IRON, HI_METAL),
165.  WEAPON("silver saber", (char *)0,
166.  	1, 0, 0,  6, 40, 75,  8,  8, 0, S,   P_SABER, SILVER, HI_SILVER),
167.  WEAPON("broadsword", (char *)0,
168.  	1, 0, 0,  8, 70, 10,  4,  6, 0, S,   P_BROAD_SWORD, IRON, HI_METAL),
169.  						/* +d4 small, +1 large */
170.  WEAPON("elven broadsword", "runed broadsword",
171.  	0, 0, 0,  4, 70, 10,  6,  6, 0, S,   P_BROAD_SWORD, WOOD, HI_WOOD),
172.  						/* +d4 small, +1 large */
173.  WEAPON("long sword", (char *)0,
174.  	1, 0, 0, 50, 40, 15,  8, 12, 0, S,   P_LONG_SWORD, IRON, HI_METAL),
175.  WEAPON("two-handed sword", (char *)0,
176.  	1, 0, 1, 22,150, 50, 12,  6, 0, S,   P_TWO_HANDED_SWORD, IRON, HI_METAL),
177.  						/* +2d6 large */
178.  WEAPON("katana", "samurai sword",
179.  	0, 0, 0,  4, 40, 80, 10, 12, 1, S,   P_LONG_SWORD, IRON, HI_METAL),
180.  /* special swords set up for artifacts */
181.  WEAPON("tsurugi", "long samurai sword",
182.  	0, 0, 1,  0, 60,500, 16,  8, 2, S,   P_TWO_HANDED_SWORD, METAL, HI_METAL),
183.  						/* +2d6 large */
184.  WEAPON("runesword", "runed broadsword",
185.  	0, 0, 0,  0, 40,300,  4,  6, 0, S,   P_BROAD_SWORD, IRON, CLR_BLACK),
186.  						/* +d4 small, +1 large */
187.  						/* +5d2 +d8 from level drain */
188.  
189.  /* polearms */
190.  /* spear-type */
191.  WEAPON("partisan", "vulgar polearm",
192.  	0, 0, 1,  5, 80, 10,  6,  6, 0, P,   P_POLEARMS, IRON, HI_METAL),
193.  						/* +1 large */
194.  WEAPON("ranseur", "hilted polearm",
195.  	0, 0, 1,  5, 50,  6,  4,  4, 0, P,   P_POLEARMS, IRON, HI_METAL),
196.  						/* +d4 both */
197.  WEAPON("spetum", "forked polearm",
198.  	0, 0, 1,  5, 50,  5,  6,  6, 0, P,   P_POLEARMS, IRON, HI_METAL),
199.  						/* +1 small, +d6 large */
200.  WEAPON("glaive", "single-edged polearm",
201.  	0, 0, 1,  8, 75,  6,  6, 10, 0, S,   P_POLEARMS, IRON, HI_METAL),
202.  WEAPON("lance", (char *)0,
203.  	1, 0, 0,  4,180, 10,  6,  8, 0, P,   P_LANCE, IRON, HI_METAL),
204.  /* axe-type */
205.  WEAPON("halberd", "angled poleaxe",
206.  	0, 0, 1,  8,150, 10, 10,  6, 0, P|S, P_POLEARMS, IRON, HI_METAL),
207.  						/* +1d6 large */
208.  WEAPON("bardiche", "long poleaxe",
209.  	0, 0, 1,  4,120,  7,  4,  4, 0, S,   P_POLEARMS, IRON, HI_METAL),
210.  						/* +1d4 small, +2d4 large */
211.  WEAPON("voulge", "pole cleaver",
212.  	0, 0, 1,  4,125,  5,  4,  4, 0, S,   P_POLEARMS, IRON, HI_METAL),
213.  						/* +d4 both */
214.  WEAPON("dwarvish mattock", "broad pick",
215.  	0, 0, 1, 13,120, 50, 12,  8,-1, B,   P_PICK_AXE, IRON, HI_METAL),
216.  
217.  /* curved/hooked */
218.  WEAPON("fauchard", "pole sickle",
219.  	0, 0, 1,  6, 60,  5,  6,  8, 0, P|S, P_POLEARMS, IRON, HI_METAL),
220.  WEAPON("guisarme", "pruning hook",
221.  	0, 0, 1,  6, 80,  5,  4,  8, 0, S,   P_POLEARMS, IRON, HI_METAL),
222.  						/* +1d4 small */
223.  WEAPON("bill-guisarme", "hooked polearm",
224.  	0, 0, 1,  4,120,  7,  4, 10, 0, P|S, P_POLEARMS, IRON, HI_METAL),
225.  						/* +1d4 small */
226.  /* other */
227.  WEAPON("lucern hammer", "pronged polearm",
228.  	0, 0, 1,  5,150,  7,  4,  6, 0, B|P, P_POLEARMS, IRON, HI_METAL),
229.  						/* +1d4 small */
230.  WEAPON("bec de corbin", "beaked polearm",
231.  	0, 0, 1,  4,100,  8,  8,  6, 0, B|P, P_POLEARMS, IRON, HI_METAL),
232.  
233.  /* bludgeons */
234.  WEAPON("mace", (char *)0,
235.  	1, 0, 0, 40, 30,  5,  6,  6, 0, B,   P_MACE, IRON, HI_METAL),
236.  						/* +1 small */
237.  WEAPON("morning star", (char *)0,
238.  	1, 0, 0, 12,120, 10,  4,  6, 0, B,   P_MORNING_STAR, IRON, HI_METAL),
239.  						/* +d4 small, +1 large */
240.  WEAPON("war hammer", (char *)0,
241.  	1, 0, 0, 15, 50,  5,  4,  4, 0, B,   P_HAMMER, IRON, HI_METAL),
242.  						/* +1 small */
243.  WEAPON("club", (char *)0,
244.  	1, 0, 0, 12, 30,  3,  6,  3, 0, B,   P_CLUB, WOOD, HI_WOOD),
245.  #ifdef KOPS
246.  WEAPON("rubber hose", (char *)0,
247.  	1, 0, 0,  0, 20,  3,  4,  3, 0, B,   P_WHIP, PLASTIC, CLR_BROWN),
248.  #endif
249.  WEAPON("quarterstaff", "staff",
250.  	0, 0, 1, 11, 40,  5,  6,  6, 0, B,   P_QUARTERSTAFF, WOOD, HI_WOOD),
251.  /* two-piece */
252.  WEAPON("aklys", "thonged club",
253.  	0, 0, 0,  8, 15,  4,  6,  3, 0, B,   P_CLUB, IRON, HI_METAL),
254.  WEAPON("flail", (char *)0,
255.  	1, 0, 0, 40, 15,  4,  6,  4, 0, B,   P_FLAIL, IRON, HI_METAL),
256.  						/* +1 small, +1d4 large */
257.  /* misc */
258.  WEAPON("bullwhip", (char *)0,
259.  	1, 0, 0,  2, 20,  4,  2,  1, 0, 0,   P_WHIP, LEATHER, CLR_BROWN),
260.  
261.  /* bows */
262.  BOW("bow", (char *)0,		1, 24, 30, 60, 0, WOOD, P_BOW, HI_WOOD),
263.  BOW("elven bow", "runed bow",	0, 12, 30, 60, 0, WOOD, P_BOW, HI_WOOD),
264.  BOW("orcish bow", "crude bow",	0, 12, 30, 60, 0, WOOD, P_BOW, CLR_BLACK),
265.  BOW("yumi", "long bow",		0,  0, 30, 60, 0, WOOD, P_BOW, HI_WOOD),
266.  BOW("sling", (char *)0,		1, 40,  3, 20, 0, WOOD, P_SLING, HI_WOOD),
267.  BOW("crossbow", (char *)0,	1, 45, 50, 40, 0, WOOD, P_CROSSBOW, HI_WOOD),
268.  
269.  #undef P
270.  #undef S
271.  #undef B
272.  
273.  #undef WEAPON
274.  #undef PROJECTILE
275.  #undef BOW
276.  
277.  /* armor ... */
278.  /* IRON denotes ferrous metals, including steel.
279.   * Only IRON weapons and armor can rust.
280.   * Only COPPER (including brass) corrodes.
281.   * Some creatures are vulnerable to SILVER.
282.   */
283.  #define ARMOR(name,desc,kn,mgc,blk,power,prob,delay,wt,cost,ac,can,sub,metal,c) \
284.  	OBJECT( \
285.  		OBJ(name,desc), BITS(kn,0,1,0,mgc,1,0,0,blk,0,0,sub,metal), power, \
286.  		ARMOR_CLASS, prob, delay, wt, cost, \
287.  		0, 0, 10 - ac, can, wt, c )
288.  #define HELM(name,desc,kn,mgc,power,prob,delay,wt,cost,ac,can,metal,c) \
289.  	ARMOR(name,desc,kn,mgc,0,power,prob,delay,wt,cost,ac,can,ARM_HELM,metal,c)
290.  #define CLOAK(name,desc,kn,mgc,power,prob,delay,wt,cost,ac,can,metal,c) \
291.  	ARMOR(name,desc,kn,mgc,0,power,prob,delay,wt,cost,ac,can,ARM_CLOAK,metal,c)
292.  #define SHIELD(name,desc,kn,mgc,blk,power,prob,delay,wt,cost,ac,can,metal,c) \
293.  	ARMOR(name,desc,kn,mgc,blk,power,prob,delay,wt,cost,ac,can,ARM_SHIELD,metal,c)
294.  #define GLOVES(name,desc,kn,mgc,power,prob,delay,wt,cost,ac,can,metal,c) \
295.  	ARMOR(name,desc,kn,mgc,0,power,prob,delay,wt,cost,ac,can,ARM_GLOVES,metal,c)
296.  #define BOOTS(name,desc,kn,mgc,power,prob,delay,wt,cost,ac,can,metal,c) \
297.  	ARMOR(name,desc,kn,mgc,0,power,prob,delay,wt,cost,ac,can,ARM_BOOTS,metal,c)
298.  
299.  /* helmets */
300.  HELM("elven leather helm", "leather hat",
301.  		0, 0,  0,	6, 1,  3,   8, 9, 0, LEATHER, HI_LEATHER),
302.  HELM("orcish helm", "iron skull cap",
303.  		0, 0,  0,	6, 1, 30,  10, 9, 0, IRON, CLR_BLACK),
304.  HELM("dwarvish iron helm", "hard hat",
305.  		0, 0,  0,	6, 1, 40,  20, 8, 0, IRON, HI_METAL),
306.  HELM("fedora", (char *)0,
307.  		1, 0,  0,	0, 0,  3,   1,10, 0, CLOTH, CLR_BROWN),
308.  HELM("cornuthaum", "conical hat",
309.  		0, 1,  CLAIRVOYANT,
310.  				3, 1,  4,  80,10, 2, CLOTH, CLR_BLUE),
311.  HELM("dunce cap", "conical hat",
312.  		0, 1,  0,	3, 1,  4,   1,10, 0, CLOTH, CLR_BLUE),
313.  HELM("dented pot", (char *)0,
314.  		1, 0,  0,	2, 0, 10,   8, 9, 0, IRON, CLR_BLACK),
315.  HELM("helmet", "plumed helmet",
316.  		0, 0,  0,      10, 1, 30,  10, 9, 0, IRON, HI_METAL),
317.  HELM("helm of brilliance", "etched helmet",
318.  		0, 1,  0,	6, 1, 50,  50, 9, 0, IRON, CLR_GREEN),
319.  HELM("helm of opposite alignment", "crested helmet",
320.  		0, 1,  0,	6, 1, 50,  50, 9, 0, IRON, HI_METAL),
321.  HELM("helm of telepathy", "visored helmet",
322.  		0, 1,  TELEPAT, 2, 1, 50,  50, 9, 0, IRON, HI_METAL),
323.  
324.  /* suits of armor */
325.  /*
326.   * There is code in polyself.c that assumes (1) and (2).
327.   * There is code in objnam.c, mon.c, read.c that assumes (2).
328.   *
329.   *	(1) The dragon scale mails and the dragon scales are together.
330.   *	(2) That the order of the dragon scale mail and dragon scales is the
331.   *	    the same defined in monst.c.
332.   */
333.  #define DRGN_ARMR(name,power,cost,ac,color) \
334.  	ARMOR(name,(char *)0,1,0,1,power,0,5,40,cost,ac,0,ARM_SUIT,DRAGON_HIDE,color)
335.  DRGN_ARMR("gray dragon scale mail",   ANTIMAGIC,  1200, 1, CLR_GRAY),
336.  DRGN_ARMR("silver dragon scale mail", REFLECTING, 1200, 1, SILVER),
337.  #if 0	/* DEFERRED */
338.  DRGN_ARMR("shimmering dragon scale mail", DISPLACED, 1200, 1, CLR_CYAN),
339.  #endif
340.  DRGN_ARMR("red dragon scale mail",    FIRE_RES,    900, 1, CLR_RED),
341.  DRGN_ARMR("white dragon scale mail",  COLD_RES,    900, 1, CLR_WHITE),
342.  DRGN_ARMR("orange dragon scale mail", SLEEP_RES,   900, 1, CLR_ORANGE),
343.  DRGN_ARMR("black dragon scale mail",  DISINT_RES, 1200, 1, CLR_BLACK),
344.  DRGN_ARMR("blue dragon scale mail",   SHOCK_RES,   900, 1, CLR_BLUE),
345.  DRGN_ARMR("green dragon scale mail",  POISON_RES,  900, 1, CLR_GREEN),
346.  DRGN_ARMR("yellow dragon scale mail", 0,           900, 1, CLR_YELLOW),
347.  
348.  /* For now, only dragons leave these. */
349.  DRGN_ARMR("gray dragon scales",   ANTIMAGIC,  700, 7, CLR_GRAY),
350.  DRGN_ARMR("silver dragon scales", REFLECTING, 700, 7, SILVER),
351.  #if 0	/* DEFERRED */
352.  DRGN_ARMR("shimmering dragon scales", DISPLACED,  700, 7, CLR_CYAN),
353.  #endif
354.  DRGN_ARMR("red dragon scales",    FIRE_RES,   500, 7, CLR_RED),
355.  DRGN_ARMR("white dragon scales",  COLD_RES,   500, 7, CLR_WHITE),
356.  DRGN_ARMR("orange dragon scales", SLEEP_RES,  500, 7, CLR_ORANGE),
357.  DRGN_ARMR("black dragon scales",  DISINT_RES, 700, 7, CLR_BLACK),
358.  DRGN_ARMR("blue dragon scales",   SHOCK_RES,  500, 7, CLR_BLUE),
359.  DRGN_ARMR("green dragon scales",  POISON_RES, 500, 7, CLR_GREEN),
360.  DRGN_ARMR("yellow dragon scales", 0,          500, 7, CLR_YELLOW),
361.  #undef DRGN_ARMR
362.  
363.  ARMOR("plate mail", (char *)0,
364.  	1, 0, 1, 0,	44, 5, 450, 600,  3, 2, ARM_SUIT, IRON, HI_METAL),
365.  ARMOR("crystal plate mail", (char *)0,
366.  	1, 0, 1, 0,	10, 5, 450, 820,  3, 2, ARM_SUIT, GLASS, CLR_WHITE),
367.  #ifdef TOURIST
368.  ARMOR("bronze plate mail", (char *)0,
369.  	1, 0, 1, 0,	25, 5, 450, 400,  4, 0, ARM_SUIT, COPPER, HI_COPPER),
370.  #else
371.  ARMOR("bronze plate mail", (char *)0,
372.  	1, 0, 1, 0,	35, 5, 450, 400,  4, 0, ARM_SUIT, COPPER, HI_COPPER),
373.  #endif
374.  ARMOR("splint mail", (char *)0,
375.  	1, 0, 1, 0,	62, 5, 400,  80,  4, 1, ARM_SUIT, IRON, HI_METAL),
376.  ARMOR("banded mail", (char *)0,
377.  	1, 0, 1, 0,	72, 5, 350,  90,  4, 0, ARM_SUIT, IRON, HI_METAL),
378.  ARMOR("dwarvish mithril-coat", (char *)0,
379.  	1, 0, 0, 0,	10, 1, 150, 240,  4, 3, ARM_SUIT, MITHRIL, HI_METAL),
380.  ARMOR("elven mithril-coat", (char *)0,
381.  	1, 0, 0, 0,	15, 1, 150, 240,  5, 3, ARM_SUIT, MITHRIL, HI_METAL),
382.  ARMOR("chain mail", (char *)0,
383.  	1, 0, 0, 0,	72, 5, 300,  75,  5, 1, ARM_SUIT, IRON, HI_METAL),
384.  ARMOR("orcish chain mail", "crude chain mail",
385.  	0, 0, 0, 0,	20, 5, 300,  75,  6, 1, ARM_SUIT, IRON, CLR_BLACK),
386.  ARMOR("scale mail", (char *)0,
387.  	1, 0, 0, 0,	72, 5, 250,  45,  6, 0, ARM_SUIT, IRON, HI_METAL),
388.  ARMOR("studded leather armor", (char *)0,
389.  	1, 0, 0, 0,	72, 3, 200,  15,  7, 1, ARM_SUIT, LEATHER, HI_LEATHER),
390.  ARMOR("ring mail", (char *)0,
391.  	1, 0, 0, 0,	72, 5, 250, 100,  7, 0, ARM_SUIT, IRON, HI_METAL),
392.  ARMOR("orcish ring mail", "crude ring mail",
393.  	0, 0, 0, 0,	20, 5, 250,  80,  8, 1, ARM_SUIT, IRON, CLR_BLACK),
394.  ARMOR("leather armor", (char *)0,
395.  	1, 0, 0, 0,	82, 3, 150,   5,  8, 0, ARM_SUIT, LEATHER, HI_LEATHER),
396.  ARMOR("leather jacket", (char *)0,
397.  	1, 0, 0, 0,	12, 0,	30,  10,  9, 0, ARM_SUIT, LEATHER, CLR_BLACK),
398.  
399.  #ifdef TOURIST
400.  /* shirts */
401.  ARMOR("Hawaiian shirt", (char *)0,
402.  	1, 0, 0, 0,	 8, 0,	 5,   3, 10, 0, ARM_SHIRT, CLOTH, CLR_MAGENTA),
403.  ARMOR("T-shirt", (char *)0,
404.  	1, 0, 0, 0,	 2, 0,	 5,   2, 10, 0, ARM_SHIRT, CLOTH, CLR_WHITE),
405.  #endif
406.  
407.  /* cloaks */
408.  /*  'cope' is not a spelling mistake... leave it be */
409.  CLOAK("mummy wrapping", (char *)0,
410.  		1, 0,	0,	    0, 0,  3,  2, 10, 1, CLOTH, CLR_GRAY),
411.  CLOAK("elven cloak", "faded pall",
412.  		0, 1,	STEALTH,   10, 0, 10, 60,  9, 3, CLOTH, CLR_BLACK),
413.  CLOAK("orcish cloak", "coarse mantelet",
414.  		0, 0,	0,	   10, 0, 10, 40, 10, 2, CLOTH, CLR_BLACK),
415.  CLOAK("dwarvish cloak", "hooded cloak",
416.  		0, 0,	0,	   10, 0, 10, 50, 10, 2, CLOTH, HI_CLOTH),
417.  CLOAK("oilskin cloak", "slippery cloak",
418.  		0, 0,	0,	   10, 0, 10, 50,  9, 3, CLOTH, HI_CLOTH),
419.  CLOAK("robe", (char *)0,
420.  		1, 1,	0,	    0, 0, 15, 50,  8, 3, CLOTH, CLR_RED),
421.  CLOAK("alchemy smock", "apron",
422.  		0, 1,	POISON_RES, 9, 0, 10, 50,  9, 1, CLOTH, CLR_WHITE),
423.  /* With shuffled appearances... */
424.  CLOAK("cloak of protection", "tattered cape",
425.  		0, 1,	PROTECTION,10, 0, 10, 50,  7, 3, CLOTH, HI_CLOTH),
426.  CLOAK("cloak of invisibility", "opera cloak",
427.  		0, 1,	INVIS,	   11, 0, 10, 60,  9, 2, CLOTH, CLR_BRIGHT_MAGENTA),
428.  CLOAK("cloak of magic resistance", "ornamental cope",
429.  		0, 1,	ANTIMAGIC,  2, 0, 10, 60,  9, 3, CLOTH, CLR_WHITE),
430.  CLOAK("cloak of displacement", "piece of cloth",
431.  		0, 1,	DISPLACED, 11, 0, 10, 50,  9, 2, CLOTH, HI_CLOTH),
432.  
433.  /* shields */
434.  SHIELD("small shield", (char *)0,
435.  		1, 0, 0, 0,	     6, 0, 30,	3,  9, 0, WOOD, HI_WOOD),
436.  SHIELD("elven shield", "blue and green shield",
437.  		0, 0, 0, 0,	     2, 0, 50,	7,  8, 0, IRON, CLR_GREEN),
438.  SHIELD("Uruk-hai shield", "white-handed shield",
439.  		0, 0, 0, 0,	     2, 0, 50,	7,  9, 0, IRON, HI_METAL),
440.  SHIELD("orcish shield", "red-eyed shield",
441.  		0, 0, 0, 0,	     2, 0, 50,	7,  9, 0, IRON, CLR_RED),
442.  SHIELD("large shield", (char *)0,
443.  		1, 0, 1, 0,	     7, 0,100, 10,  8, 0, IRON, HI_METAL),
444.  SHIELD("dwarvish roundshield", "large round shield",
445.  		0, 0, 0, 0,	     4, 0,100, 10,  8, 0, IRON, HI_METAL),
446.  SHIELD("shield of reflection", "polished silver shield",
447.  		0, 1, 0, REFLECTING, 3, 0, 50, 50,  8, 0, SILVER, HI_SILVER),
448.  
449.  /* gloves */
450.  /* these have their color but not material shuffled, so the IRON must stay
451.   * CLR_BROWN (== HI_LEATHER)
452.   */
453.  GLOVES("leather gloves", "old gloves",
454.  		0, 0,  0,	  16, 1, 10,  8,  9, 0, LEATHER, HI_LEATHER),
455.  GLOVES("gauntlets of fumbling", "padded gloves",
456.  		0, 1,  FUMBLING,   8, 1, 10, 50,  9, 0, LEATHER, HI_LEATHER),
457.  GLOVES("gauntlets of power", "riding gloves",
458.  		0, 1,  0,	   8, 1, 30, 50,  9, 0, IRON, CLR_BROWN),
459.  GLOVES("gauntlets of dexterity", "fencing gloves",
460.  		0, 1,  0,	   8, 1, 10, 50,  9, 0, LEATHER, HI_LEATHER),
461.  
462.  /* boots */
463.  BOOTS("low boots", "walking shoes",
464.  		0, 0,  0,	  25, 2, 10,  8,  9, 0, LEATHER, HI_LEATHER),
465.  BOOTS("iron shoes", "hard shoes",
466.  		0, 0,  0,	   7, 2, 50, 16,  8, 0, IRON, HI_METAL),
467.  BOOTS("high boots", "jackboots",
468.  		0, 0,  0,	  15, 2, 20, 12,  8, 0, LEATHER, HI_LEATHER),
469.  BOOTS("speed boots", "combat boots",
470.  		0, 1,  FAST,	  12, 2, 20, 50,  9, 0, LEATHER, HI_LEATHER),
471.  /* With shuffled appearances... */
472.  BOOTS("water walking boots", "jungle boots",
473.  		0, 1,  WWALKING,  12, 2, 20, 50,  9, 0, LEATHER, HI_LEATHER),
474.  BOOTS("jumping boots", "hiking boots",
475.  		0, 1,  JUMPING,   12, 2, 20, 50,  9, 0, LEATHER, HI_LEATHER),
476.  BOOTS("elven boots", "mud boots",
477.  		0, 1,  STEALTH,   12, 2, 15,  8,  9, 0, LEATHER, HI_LEATHER),
478.  BOOTS("kicking boots", "buckled boots",
479.  		0, 1,  0,         12, 2, 15,  8,  9, 0, IRON, HI_METAL),
480.  BOOTS("fumble boots", "riding boots",
481.  		0, 1,  FUMBLING,  12, 2, 20, 30,  9, 0, LEATHER, HI_LEATHER),
482.  BOOTS("levitation boots", "snow boots",
483.  		0, 1,  LEVITATION,12, 2, 15, 30,  9, 0, LEATHER, HI_LEATHER),
484.  #undef HELM
485.  #undef CLOAK
486.  #undef SHIELD
487.  #undef GLOVES
488.  #undef BOOTS
489.  #undef ARMOR
490.  
491.  /* rings ... */
492.  #define RING(name,power,stone,cost,mgc,spec,mohs,metal,color) OBJECT( \
493.  		OBJ(name,stone), \
494.  		BITS(0,0,spec,0,mgc,spec,0,0,0,HARDGEM(mohs),0,P_NONE,metal), \
495.  		power, RING_CLASS, 0, 0, 3, cost, 0, 0, 0, 0, 15, color )
496.  RING("adornment", ADORNED, "wooden",        100, 1, 1, 2, WOOD, HI_WOOD),
497.  RING("gain strength", 0, "granite",         150, 1, 1, 7, MINERAL, HI_MINERAL),
498.  RING("gain constitution", 0, "opal",        150, 1, 1, 7, MINERAL,  HI_MINERAL),
499.  RING("increase accuracy", 0, "clay",        150, 1, 1, 4, MINERAL, CLR_RED),
500.  RING("increase damage", 0, "coral",         150, 1, 1, 4, MINERAL, CLR_ORANGE),
501.  RING("protection", PROTECTION, "black onyx",100, 1, 1, 7, MINERAL, CLR_BLACK),
502.  RING("regeneration", REGENERATION, "moonstone",
503.  					    200, 1, 0, 6, MINERAL, HI_MINERAL),
504.  RING("searching", SEARCHING, "tiger eye",   200, 1, 0, 6, GEMSTONE, CLR_BROWN),
505.  RING("stealth", STEALTH, "jade",            100, 1, 0, 6, GEMSTONE, CLR_GREEN),
506.  RING("sustain ability", FIXED_ABIL, "bronze",
507.  					    100, 1, 0, 4, COPPER, HI_COPPER),
508.  RING("levitation", LEVITATION, "agate",     200, 1, 0, 7, GEMSTONE, CLR_RED),
509.  RING("hunger", HUNGER, "topaz",             100, 1, 0, 8, GEMSTONE, CLR_CYAN),
510.  RING("aggravate monster", AGGRAVATE_MONSTER, "sapphire",
511.  					    150, 1, 0, 9, GEMSTONE, CLR_BLUE),
512.  RING("conflict", CONFLICT, "ruby",          300, 1, 0, 9, GEMSTONE, CLR_RED),
513.  RING("warning", WARNING, "diamond",         100, 1, 0,10, GEMSTONE, CLR_WHITE),
514.  RING("poison resistance", POISON_RES, "pearl",
515.  					    150, 1, 0, 4, IRON, CLR_WHITE),
516.  RING("fire resistance", FIRE_RES, "iron",   200, 1, 0, 5, IRON, HI_METAL),
517.  RING("cold resistance", COLD_RES, "brass",  150, 1, 0, 4, COPPER, HI_COPPER),
518.  RING("shock resistance", SHOCK_RES, "copper",
519.  					    150, 1, 0, 3, COPPER, HI_COPPER),
520.  RING("free action",     FREE_ACTION, "twisted",
521.  					    200, 1, 0, 6, IRON, HI_METAL),
522.  RING("slow digestion",  SLOW_DIGESTION, "steel",
523.  					    200, 1, 0, 8, IRON, HI_METAL),
524.  RING("teleportation", TELEPORT, "silver",   200, 1, 0, 3, SILVER, HI_SILVER),
525.  RING("teleport control", TELEPORT_CONTROL, "gold",
526.  					    300, 1, 0, 3, GOLD, HI_GOLD),
527.  RING("polymorph", POLYMORPH, "ivory",       300, 1, 0, 4, BONE, CLR_WHITE),
528.  RING("polymorph control", POLYMORPH_CONTROL, "emerald",
529.  					    300, 1, 0, 8, GEMSTONE, CLR_BRIGHT_GREEN),
530.  RING("invisibility", INVIS, "wire",         150, 1, 0, 5, IRON, HI_METAL),
531.  RING("see invisible", SEE_INVIS, "engagement",
532.  					    150, 1, 0, 5, IRON, HI_METAL),
533.  RING("protection from shape changers", PROT_FROM_SHAPE_CHANGERS, "shiny",
534.  					    100, 1, 0, 5, IRON, CLR_BRIGHT_CYAN),
535.  #undef RING
536.  
537.  /* amulets ... - THE Amulet comes last because it is special */
538.  #define AMULET(name,desc,power,prob) OBJECT( \
539.  		OBJ(name,desc), BITS(0,0,0,0,1,0,0,0,0,0,0,P_NONE,IRON), power, \
540.  		AMULET_CLASS, prob, 0, 20, 150, 0, 0, 0, 0, 20, HI_METAL )
541.  
542.  AMULET("amulet of ESP",           "circular",   TELEPAT,    175),
543.  AMULET("amulet of life saving",   "spherical",  LIFESAVED,   75),
544.  AMULET("amulet of strangulation", "oval",       STRANGLED,  135),
545.  AMULET("amulet of restful sleep", "triangular", SLEEPING,   135),
546.  AMULET("amulet versus poison",    "pyramidal",  POISON_RES, 165),
547.  AMULET("amulet of change",        "square",     0,          130),
548.  						/* POLYMORPH */
549.  AMULET("amulet of unchanging",    "concave",    UNCHANGING,	 45),
550.  AMULET("amulet of reflection",    "hexagonal",  REFLECTING,  75),
551.  AMULET("amulet of magical breathing", "octagonal",      MAGICAL_BREATHING, 65),
552.  OBJECT(OBJ("cheap plastic imitation of the Amulet of Yendor",
553.  	"Amulet of Yendor"), BITS(0,0,1,0,0,0,0,0,0,0,0,0,PLASTIC), 0,
554.  	AMULET_CLASS, 0, 0, 20,    0, 0, 0, 0, 0,  1, HI_METAL),
555.  OBJECT(OBJ("Amulet of Yendor",	/* note: description == name */
556.  	"Amulet of Yendor"), BITS(0,0,1,0,1,0,1,1,0,0,0,0,MITHRIL), 0,
557.  	AMULET_CLASS, 0, 0, 20, 3500, 0, 0, 0, 0, 20, HI_METAL),
558.  #undef AMULET
559.  
560.  /* tools ... */
561.  /* tools with weapon characteristics come last */
562.  #define TOOL(name,desc,kn,mrg,mgc,chg,prob,wt,cost,mat,color) \
563.  	OBJECT( OBJ(name,desc), \
564.  		BITS(kn,mrg,chg,0,mgc,chg,0,0,0,0,0,P_NONE,mat), \
565.  		0, TOOL_CLASS, prob, 0, \
566.  		wt, cost, 0, 0, 0, 0, wt, color )
567.  #define CONTAINER(name,desc,kn,mgc,chg,prob,wt,cost,mat,color) \
568.  	OBJECT( OBJ(name,desc), \
569.  		BITS(kn,0,chg,1,mgc,chg,0,0,0,0,0,P_NONE,mat), \
570.  		0, TOOL_CLASS, prob, 0, \
571.  		wt, cost, 0, 0, 0, 0, wt, color )
572.  #define WEPTOOL(name,desc,kn,mgc,bi,prob,wt,cost,sdam,ldam,hitbon,sub,mat,clr) \
573.  	OBJECT( OBJ(name,desc), \
574.  		BITS(kn,0,1,0,mgc,1,0,0,bi,0,hitbon,sub,mat), \
575.  		0, TOOL_CLASS, prob, 0, \
576.  		wt, cost, sdam, ldam, hitbon, 0, wt, clr )
577.  /* containers */
578.  CONTAINER("large box", (char *)0,       1, 0, 0,  40,350,   8, WOOD, HI_WOOD),
579.  CONTAINER("chest", (char *)0,           1, 0, 0,  35,600,  16, WOOD, HI_WOOD),
580.  CONTAINER("ice box", (char *)0,         1, 0, 0,   5,900,  42, PLASTIC, CLR_WHITE),
581.  CONTAINER("sack", "bag",                0, 0, 0,  35, 15,   2, CLOTH, HI_CLOTH),
582.  CONTAINER("oilskin sack", "bag",        0, 0, 0,   5, 15, 100, CLOTH, HI_CLOTH),
583.  CONTAINER("bag of holding", "bag",      0, 1, 0,  20, 15, 100, CLOTH, HI_CLOTH),
584.  CONTAINER("bag of tricks", "bag",       0, 1, 1,  20, 15, 100, CLOTH, HI_CLOTH),
585.  #undef CONTAINER
586.  
587.  /* lock opening tools */
588.  TOOL("skeleton key", "key",     0, 0, 0, 0,  80,  3,  10, IRON, HI_METAL),
589.  #ifdef TOURIST
590.  TOOL("lock pick", (char *)0,    1, 0, 0, 0,  60,  4,  20, IRON, HI_METAL),
591.  TOOL("credit card", (char *)0,  1, 0, 0, 0,  15,  1,  10, PLASTIC, CLR_WHITE),
592.  #else
593.  TOOL("lock pick", (char *)0,    1, 0, 0, 0,  75,  4,  20, IRON, HI_METAL),
594.  #endif
595.  /* light sources */
596.  TOOL("tallow candle", "candle", 0, 1, 0, 0,  20,  2,  10, WAX, CLR_WHITE),
597.  TOOL("wax candle", "candle",    0, 1, 0, 0,   5,  2,  20, WAX, CLR_WHITE),
598.  TOOL("brass lantern", (char *)0,1, 0, 0, 0,  30, 30,  12, COPPER, CLR_YELLOW),
599.  TOOL("oil lamp", "lamp",        0, 0, 0, 0,  45, 20,  10, COPPER, CLR_YELLOW),
600.  TOOL("magic lamp", "lamp",      0, 0, 1, 0,  15, 20,  50, COPPER, CLR_YELLOW),
601.  /* other tools */
602.  #ifdef TOURIST
603.  TOOL("expensive camera", (char *)0,
604.  				1, 0, 0, 1,  15, 12, 200, PLASTIC, CLR_BLACK),
605.  TOOL("mirror", "looking glass", 0, 0, 0, 0,  45, 13,  10, GLASS, HI_SILVER),
606.  #else
607.  TOOL("mirror", "looking glass", 0, 0, 0, 0,  60, 13,  10, GLASS, HI_SILVER),
608.  #endif
609.  TOOL("crystal ball", "glass orb",
610.  				0, 0, 1, 1,  15,150,  60, GLASS, HI_GLASS),
611.  TOOL("lenses", (char *)0,	1, 0, 0, 0,   5,  3,  80, GLASS, HI_GLASS),
612.  TOOL("blindfold", (char *)0,    1, 0, 0, 0,  50,  2,  20, CLOTH, CLR_BLACK),
613.  TOOL("towel", (char *)0,        1, 0, 0, 0,  50,  2,  50, CLOTH, CLR_MAGENTA),
614.  #ifdef STEED
615.  TOOL("saddle", (char *)0,       1, 0, 0, 0,   5,200, 150, LEATHER, HI_LEATHER),
616.  TOOL("leash", (char *)0,        1, 0, 0, 0,  65, 12,  20, LEATHER, HI_LEATHER),
617.  #else
618.  TOOL("leash", (char *)0,        1, 0, 0, 0,  70, 12,  20, LEATHER, HI_LEATHER),
619.  #endif
620.  TOOL("stethoscope", (char *)0,  1, 0, 0, 0,  25,  4,  75, IRON, HI_METAL),
621.  TOOL("tinning kit", (char *)0,  1, 0, 0, 1,  15,100,  30, IRON, HI_METAL),
622.  TOOL("tin opener", (char *)0,   1, 0, 0, 0,  35,  4,  30, IRON, HI_METAL),
623.  TOOL("can of grease", (char *)0,1, 0, 0, 1,  15, 15,  20, IRON, HI_METAL),
624.  TOOL("figurine", (char *)0,     1, 0, 1, 0,  25, 50,  80, MINERAL, HI_MINERAL),
625.  TOOL("magic marker", (char *)0, 1, 0, 1, 1,  15,  2,  50, PLASTIC, CLR_RED),
626.  /* traps */
627.  TOOL("land mine",(char *)0,     1, 0, 0, 0,   0,300, 180, IRON, CLR_RED),
628.  TOOL("beartrap", (char *)0,     1, 0, 0, 0,   0,200,  60, IRON, HI_METAL),
629.  /* instruments */
630.  TOOL("tin whistle", "whistle",  0, 0, 0, 0, 100,  3,  10, METAL, HI_METAL),
631.  TOOL("magic whistle", "whistle",0, 0, 1, 0,  30,  3,  10, METAL, HI_METAL),
632.  /* "If tin whistles are made out of tin, what do they make foghorns out of?" */
633.  TOOL("wooden flute", "flute",   0, 0, 0, 0,   4,  5,  12, WOOD, HI_WOOD),
634.  TOOL("magic flute", "flute",    0, 0, 1, 1,   2,  5,  36, WOOD, HI_WOOD),
635.  TOOL("tooled horn", "horn",     0, 0, 0, 0,   5, 18,  15, BONE, CLR_WHITE),
636.  TOOL("frost horn", "horn",      0, 0, 1, 1,   2, 18,  50, BONE, CLR_WHITE),
637.  TOOL("fire horn", "horn",       0, 0, 1, 1,   2, 18,  50, BONE, CLR_WHITE),
638.  TOOL("horn of plenty", "horn",  0, 0, 1, 1,   2, 18,  50, BONE, CLR_WHITE),
639.  TOOL("wooden harp", "harp",     0, 0, 1, 0,   4, 30,  50, WOOD, HI_WOOD),
640.  TOOL("magic harp", "harp",      0, 0, 1, 1,   2, 30,  50, WOOD, HI_WOOD),
641.  TOOL("bell", (char *)0,         1, 0, 0, 0,   2, 30,  50, COPPER, HI_COPPER),
642.  TOOL("bugle", (char *)0,        1, 0, 0, 0,   4, 10,  15, COPPER, HI_COPPER),
643.  TOOL("leather drum", "drum",    0, 0, 0, 0,   4, 25,  25, LEATHER, HI_LEATHER),
644.  TOOL("drum of earthquake", "drum",
645.  				0, 0, 1, 1,   2, 25,  25, LEATHER, HI_LEATHER),
646.  /* tools useful as weapons */
647.  WEPTOOL("pick-axe", (char *)0,
648.  	1, 0, 0, 20, 100,  50,	6,  3, WHACK,  P_PICK_AXE, IRON, HI_METAL),
649.  WEPTOOL("grappling hook", "iron hook",
650.  	0, 0, 0,  5,  30,  50,  2,  6, WHACK,  P_FLAIL, IRON, HI_METAL),
651.  WEPTOOL("unicorn horn", (char *)0,
652.  	1, 1, 1,  0,  20, 100, 12, 12, PIERCE, P_UNICORN_HORN, BONE, CLR_WHITE),
653.  
654.  /* two special unique artifact "tools" */
655.  OBJECT(OBJ("Candelabrum of Invocation", "candelabrum"),
656.  		BITS(0,0,1,0,1,0,1,1,0,0,0,P_NONE,GOLD), 0,
657.  		TOOL_CLASS, 0, 0,10, 3000, 0, 0, 0, 0, 200, HI_GOLD),
658.  OBJECT(OBJ("Bell of Opening", "silver bell"),
659.  		BITS(0,0,1,0,1,1,1,1,0,0,0,P_NONE,SILVER), 0,
660.  		TOOL_CLASS, 0, 0,10, 1000, 0, 0, 0, 0, 50, HI_SILVER),
661.  #undef TOOL
662.  #undef WEPTOOL
663.  
664.  /* Comestibles ... */
665.  #define FOOD(name,prob,delay,wt,unk,tin,nutrition,color) OBJECT( \
666.  		OBJ(name,(char *)0), BITS(1,1,unk,0,0,0,0,0,0,0,0,P_NONE,tin), 0, \
667.  		FOOD_CLASS, prob, delay, \
668.  		wt, nutrition/20 + 5, 0, 0, 0, 0, nutrition, color )
669.  /* all types of food (except tins & corpses) must have a delay of at least 1. */
670.  /* delay on corpses is computed and is weight dependant */
671.  /* dog eats foods 0-4 but prefers tripe rations above all others */
672.  /* fortune cookies can be read */
673.  /* carrots improve your vision */
674.  /* +0 tins contain monster meat */
675.  /* +1 tins (of spinach) make you stronger (like Popeye) */
676.  /* food CORPSE is a cadaver of some type */
677.  /* meatballs/sticks/rings are only created from objects via stone to flesh */
678.  
679.  /* meat */
680.  FOOD("tripe ration",       140, 2, 10, 0, FLESH, 200, CLR_BROWN),
681.  FOOD("corpse",               0, 1,  0, 0, FLESH,   0, CLR_BROWN),
682.  FOOD("egg",                 85, 1,  1, 1, FLESH,  80, CLR_WHITE),
683.  FOOD("meatball",             0, 1,  1, 0, FLESH,   5, CLR_BROWN),
684.  FOOD("meat stick",           0, 1,  1, 0, FLESH,   5, CLR_BROWN),
685.  FOOD("huge chunk of meat",   0,20,400, 0, FLESH,2000, CLR_BROWN),
686.  /* special case because it's not mergable */
687.  OBJECT(OBJ("meat ring", (char *)0),
688.      BITS(1,0,0,0,0,0,0,0,0,0,0,0,FLESH),
689.      0, FOOD_CLASS, 0, 1, 5, 1, 0, 0, 0, 0, 5, CLR_BROWN),
690.  
691.  /* fruits & veggies */
692.  FOOD("kelp frond",           0, 1,  1, 0, VEGGY,  30, CLR_GREEN),
693.  FOOD("eucalyptus leaf",      3, 1,  1, 0, VEGGY,  30, CLR_GREEN),
694.  FOOD("apple",               15, 1,  2, 0, VEGGY,  50, CLR_RED),
695.  FOOD("orange",              10, 1,  2, 0, VEGGY,  80, CLR_ORANGE),
696.  FOOD("pear",                10, 1,  2, 0, VEGGY,  50, CLR_BRIGHT_GREEN),
697.  FOOD("melon",               10, 1,  5, 0, VEGGY, 100, CLR_BRIGHT_GREEN),
698.  FOOD("banana",              10, 1,  2, 0, VEGGY,  80, CLR_YELLOW),
699.  FOOD("carrot",              15, 1,  2, 0, VEGGY,  50, CLR_ORANGE),
700.  FOOD("sprig of wolfsbane",   7, 1,  1, 0, VEGGY,  40, CLR_GREEN),
701.  FOOD("clove of garlic",      7, 1,  1, 0, VEGGY,  40, CLR_WHITE),
702.  FOOD("slime mold",          75, 1,  5, 0, VEGGY, 250, HI_ORGANIC),
703.  
704.  /* people food */
705.  FOOD("lump of royal jelly",  0, 1,  2, 0, VEGGY, 200, CLR_YELLOW),
706.  FOOD("cream pie",           25, 1, 10, 0, VEGGY, 100, CLR_WHITE),
707.  FOOD("candy bar",           13, 1,  2, 0, VEGGY, 100, CLR_BROWN),
708.  FOOD("fortune cookie",      55, 1,  1, 0, VEGGY,  40, CLR_YELLOW),
709.  FOOD("pancake",             25, 2,  2, 0, VEGGY, 200, CLR_YELLOW),
710.  FOOD("lembas wafer",        20, 2,  5, 0, VEGGY, 800, CLR_WHITE),
711.  FOOD("cram ration",         20, 3, 15, 0, VEGGY, 600, HI_ORGANIC),
712.  FOOD("food ration",        380, 5, 20, 0, VEGGY, 800, HI_ORGANIC),
713.  FOOD("K-ration",             0, 1, 10, 0, VEGGY, 400, HI_ORGANIC),
714.  FOOD("C-ration",             0, 1, 10, 0, VEGGY, 300, HI_ORGANIC),
715.  FOOD("tin",                 75, 0, 10, 1, METAL,   0, HI_METAL),
716.  #undef FOOD
717.  
718.  /* potions ... */
719.  #define POTION(name,desc,mgc,power,prob,cost,color) OBJECT( \
720.  		OBJ(name,desc), BITS(0,1,0,0,mgc,0,0,0,0,0,0,P_NONE,GLASS), power, \
721.  		POTION_CLASS, prob, 0, 20, cost, 0, 0, 0, 0, 10, color )
722.  POTION("gain ability", "ruby",          1, 0,          42, 300, CLR_RED),
723.  POTION("restore ability", "pink",       1, 0,          40, 100, CLR_BRIGHT_MAGENTA),
724.  POTION("confusion", "orange",           1, CONFUSION,  42, 100, CLR_ORANGE),
725.  POTION("blindness", "yellow",           1, BLINDED,    40, 150, CLR_YELLOW),
726.  POTION("paralysis", "emerald",          1, 0,          42, 300, CLR_BRIGHT_GREEN),
727.  POTION("speed", "dark green",           1, FAST,       42, 200, CLR_GREEN),
728.  POTION("levitation", "cyan",            1, LEVITATION, 42, 200, CLR_CYAN),
729.  POTION("hallucination", "sky blue",     1, HALLUC,     40, 100, CLR_CYAN),
730.  POTION("invisibility", "brilliant blue",1, INVIS,      40, 150, CLR_BRIGHT_BLUE),
731.  POTION("see invisible", "magenta",      1, SEE_INVIS,  42,  50, CLR_MAGENTA),
732.  POTION("healing", "purple-red",         1, 0,          57, 100, CLR_MAGENTA),
733.  POTION("extra healing", "puce",         1, 0,          47, 100, CLR_RED),
734.  POTION("gain level", "milky",           1, 0,          20, 300, CLR_WHITE),
735.  POTION("enlightenment", "swirly",       1, 0,          20, 200, CLR_BROWN),
736.  POTION("monster detection", "bubbly",   1, 0,          40, 150, CLR_WHITE),
737.  POTION("object detection", "smoky",     1, 0,          42, 150, CLR_GRAY),
738.  POTION("gain energy", "cloudy",         1, 0,          42, 150, CLR_WHITE),
739.  POTION("sleeping",  "effervescent",     1, 0,          42, 100, CLR_GRAY),
740.  POTION("full healing",  "black",        1, 0,          10, 200, CLR_BLACK),
741.  POTION("polymorph", "golden",           1, 0,          10, 200, CLR_YELLOW),
742.  POTION("booze", "brown",                0, 0,          42,  50, CLR_BROWN),
743.  POTION("sickness", "fizzy",             0, 0,          42,  50, CLR_CYAN),
744.  POTION("fruit juice", "dark",           0, 0,          42,  50, CLR_BLACK),
745.  POTION("acid", "white",                 0, 0,          10, 250, CLR_WHITE),
746.  POTION("oil", "murky",                  0, 0,          30, 250, CLR_BROWN),
747.  POTION("water", "clear",                0, 0,          92, 100, CLR_CYAN),
748.  #undef POTION
749.  
750.  /* scrolls ... */
751.  #define SCROLL(name,text,mgc,prob,cost) OBJECT( \
752.  		OBJ(name,text), BITS(0,1,0,0,mgc,0,0,0,0,0,0,P_NONE,PAPER), 0, \
753.  		SCROLL_CLASS, prob, 0, 5, cost, 0, 0, 0, 0, 6, HI_PAPER )
754.  	SCROLL("enchant armor",         "ZELGO MER",            1,  63,  80),
755.  	SCROLL("destroy armor",         "JUYED AWK YACC",       1,  45, 100),
756.  	SCROLL("confuse monster",       "NR 9",                 1,  53, 100),
757.  	SCROLL("scare monster",         "XIXAXA XOXAXA XUXAXA", 1,  35, 100),
758.  	SCROLL("remove curse",          "PRATYAVAYAH",          1,  65,  80),
759.  	SCROLL("enchant weapon",        "DAIYEN FOOELS",        1,  80,  60),
760.  	SCROLL("create monster",        "LEP GEX VEN ZEA",      1,  45, 200),
761.  	SCROLL("taming",                "PRIRUTSENIE",          1,  15, 200),
762.  	SCROLL("genocide",              "ELBIB YLOH",           1,  15, 300),
763.  	SCROLL("light",                 "VERR YED HORRE",       1,  90,  50),
764.  	SCROLL("teleportation",         "VENZAR BORGAVVE",      1,  55, 100),
765.  	SCROLL("gold detection",        "THARR",                1,  33, 100),
766.  	SCROLL("food detection",        "YUM YUM",              1,  25, 100),
767.  	SCROLL("identify",              "KERNOD WEL",           1, 180,  20),
768.  	SCROLL("magic mapping",         "ELAM EBOW",            1,  45, 100),
769.  	SCROLL("amnesia",               "DUAM XNAHT",           1,  35, 200),
770.  	SCROLL("fire",                  "ANDOVA BEGARIN",       1,  30, 100),
771.  	SCROLL("earth",                 "KIRJE",                1,  18, 200),
772.  	SCROLL("punishment",            "VE FORBRYDERNE",       1,  15, 300),
773.  	SCROLL("charging",              "HACKEM MUCHE",         1,  15, 300),
774.  	SCROLL("stinking cloud",	"VELOX NEB",            1,  15, 300),
775.  	SCROLL((char *)0,		"FOOBIE BLETCH",        1,   0, 100),
776.  	SCROLL((char *)0,		"TEMOV",                1,   0, 100),
777.  	SCROLL((char *)0,		"GARVEN DEH",           1,   0, 100),
778.  	SCROLL((char *)0,		"READ ME",              1,   0, 100),
779.  	/* these must come last because they have special descriptions */
780.  #ifdef MAIL
781.  	SCROLL("mail",                  "stamped",          0,   0,   0),
782.  #endif
783.  	SCROLL("blank paper",           "unlabeled",        0,  28,  60),
784.  #undef SCROLL
785.  
786.  /* spellbooks ... */
787.  #define SPELL(name,desc,sub,prob,delay,level,mgc,dir,color) OBJECT( \
788.  		OBJ(name,desc), BITS(0,0,0,0,mgc,0,0,0,0,0,dir,sub,PAPER), 0, \
789.  		SPBOOK_CLASS, prob, delay, \
790.  		50, level*100, 0, 0, 0, level, 20, color )
791.  SPELL("dig",             "parchment",   P_MATTER_SPELL, 20,  6, 5, 1, RAY,       HI_PAPER),
792.  SPELL("magic missile",   "vellum",      P_ATTACK_SPELL, 45,  2, 2, 1, RAY,       HI_PAPER),
793.  SPELL("fireball",        "ragged",      P_ATTACK_SPELL, 20,  4, 4, 1, RAY,       HI_PAPER),
794.  SPELL("cone of cold",    "dog eared",   P_ATTACK_SPELL, 10,  7, 4, 1, RAY,       HI_PAPER),
795.  SPELL("sleep",           "mottled",     P_ENCHANTMENT_SPELL, 50,  1, 1, 1, RAY,       HI_PAPER),
796.  SPELL("finger of death", "stained",     P_ATTACK_SPELL,  5, 10, 7, 1, RAY,       HI_PAPER),
797.  SPELL("light",           "cloth",       P_DIVINATION_SPELL, 45,  1, 1, 1, NODIR,     HI_CLOTH),
798.  SPELL("detect monsters", "leather",     P_DIVINATION_SPELL, 43,  1, 1, 1, NODIR,     HI_LEATHER),
799.  SPELL("healing",         "white",       P_HEALING_SPELL, 40,  2, 1, 1, IMMEDIATE, CLR_WHITE),
800.  SPELL("knock",           "pink",        P_MATTER_SPELL, 35,  1, 1, 1, IMMEDIATE, CLR_BRIGHT_MAGENTA),
801.  SPELL("force bolt",      "red",         P_ATTACK_SPELL, 35,  2, 1, 1, IMMEDIATE, CLR_RED),
802.  SPELL("confuse monster", "orange",      P_ENCHANTMENT_SPELL, 30,  2, 2, 1, IMMEDIATE, CLR_ORANGE),
803.  SPELL("cure blindness",  "yellow",      P_HEALING_SPELL, 25,  2, 2, 1, IMMEDIATE, CLR_YELLOW),
804.  SPELL("drain life",      "velvet",      P_ATTACK_SPELL, 10,  2, 2, 1, IMMEDIATE, CLR_MAGENTA),
805.  SPELL("slow monster",    "light green", P_ENCHANTMENT_SPELL, 30,  2, 2, 1, IMMEDIATE, CLR_BRIGHT_GREEN),
806.  SPELL("wizard lock",     "dark green",  P_MATTER_SPELL, 30,  3, 2, 1, IMMEDIATE, CLR_GREEN),
807.  SPELL("create monster",  "turquoise",   P_CLERIC_SPELL, 35,  3, 2, 1, NODIR,     CLR_BRIGHT_CYAN),
808.  SPELL("detect food",     "cyan",        P_DIVINATION_SPELL, 30,  3, 2, 1, NODIR,     CLR_CYAN),
809.  SPELL("cause fear",      "light blue",  P_ENCHANTMENT_SPELL, 25,  3, 3, 1, NODIR,     CLR_BRIGHT_BLUE),
810.  SPELL("clairvoyance",    "dark blue",   P_DIVINATION_SPELL, 15,  3, 3, 1, NODIR,     CLR_BLUE),
811.  SPELL("cure sickness",   "indigo",      P_HEALING_SPELL, 32,  3, 3, 1, NODIR,     CLR_BLUE),
812.  SPELL("charm monster",   "magenta",     P_ENCHANTMENT_SPELL, 20,  3, 3, 1, IMMEDIATE, CLR_MAGENTA),
813.  SPELL("haste self",      "purple",      P_ESCAPE_SPELL, 33,  4, 3, 1, NODIR,     CLR_MAGENTA),
814.  SPELL("detect unseen",   "violet",      P_DIVINATION_SPELL, 20,  4, 3, 1, NODIR,     CLR_MAGENTA),
815.  SPELL("levitation",      "tan",         P_ESCAPE_SPELL, 20,  4, 4, 1, NODIR,     CLR_BROWN),
816.  SPELL("extra healing",   "plaid",       P_HEALING_SPELL, 27,  5, 3, 1, IMMEDIATE, CLR_GREEN),
817.  SPELL("restore ability", "light brown", P_HEALING_SPELL, 25,  5, 4, 1, NODIR,     CLR_BROWN),
818.  SPELL("invisibility",    "dark brown",  P_ESCAPE_SPELL, 25,  5, 4, 1, NODIR,     CLR_BROWN),
819.  SPELL("detect treasure", "gray",        P_DIVINATION_SPELL, 20,  5, 4, 1, NODIR,     CLR_GRAY),
820.  SPELL("remove curse",    "wrinkled",    P_CLERIC_SPELL, 25,  5, 3, 1, NODIR,     HI_PAPER),
821.  SPELL("magic mapping",   "dusty",       P_DIVINATION_SPELL, 18,  7, 5, 1, NODIR,     HI_PAPER),
822.  SPELL("identify",        "bronze",      P_DIVINATION_SPELL, 20,  6, 3, 1, NODIR,     HI_COPPER),
823.  SPELL("turn undead",     "copper",      P_CLERIC_SPELL, 16,  8, 6, 1, IMMEDIATE, HI_COPPER),
824.  SPELL("polymorph",       "silver",      P_MATTER_SPELL, 10,  8, 6, 1, IMMEDIATE, HI_SILVER),
825.  SPELL("teleport away",   "gold",        P_ESCAPE_SPELL, 15,  6, 6, 1, IMMEDIATE, HI_GOLD),
826.  SPELL("create familiar", "glittering",  P_CLERIC_SPELL, 10,  7, 6, 1, NODIR,     CLR_WHITE),
827.  SPELL("cancellation",    "shining",     P_MATTER_SPELL, 15,  8, 7, 1, IMMEDIATE, CLR_WHITE),
828.  SPELL("protection",	     "dull",        P_CLERIC_SPELL, 18,  3, 1, 1, NODIR,     HI_PAPER),
829.  SPELL("jumping",	     "thin",        P_ESCAPE_SPELL, 20,  3, 1, 1, IMMEDIATE, HI_PAPER),
830.  SPELL("stone to flesh",	 "thick",       P_HEALING_SPELL, 15,  1, 3, 1, IMMEDIATE, HI_PAPER),
831.  #if 0	/* DEFERRED */
832.  SPELL("flame sphere",    "canvas",      P_MATTER_SPELL, 20,  2, 1, 1, NODIR, CLR_BROWN),
833.  SPELL("freeze sphere",   "hardcover",   P_MATTER_SPELL, 20,  2, 1, 1, NODIR, CLR_BROWN),
834.  #endif
835.  /* blank spellbook must come last because it retains its description */
836.  SPELL("blank paper",     "plain",       P_NONE, 18,  0, 0, 0, 0,         HI_PAPER),
837.  /* a special, one of a kind, spellbook */
838.  OBJECT(OBJ("Book of the Dead", "papyrus"), BITS(0,0,1,0,1,0,1,1,0,0,0,P_NONE,PAPER), 0,
839.  	SPBOOK_CLASS, 0, 0,20, 3500, 0, 0, 0, 7, 20, HI_PAPER),
840.  #undef SPELL
841.  
842.  /* wands ... */
843.  #define WAND(name,typ,prob,cost,mgc,dir,metal,color) OBJECT( \
844.  		OBJ(name,typ), BITS(0,0,1,0,mgc,1,0,0,0,0,dir,P_NONE,metal), 0, \
845.  		WAND_CLASS, prob, 0, 7, cost, 0, 0, 0, 0, 30, color )
846.  WAND("light",          "glass",    95, 100, 1, NODIR,     GLASS,    HI_GLASS),
847.  WAND("secret door detection", "balsa",
848.  				   50, 150, 1, NODIR,	  WOOD,     HI_WOOD),
849.  WAND("enlightenment",  "crystal",  15, 150, 1, NODIR,     GLASS,    HI_GLASS),
850.  WAND("create monster", "maple",    45, 200, 1, NODIR,     WOOD,     HI_WOOD),
851.  WAND("wishing",        "pine",      5, 500, 1, NODIR,     WOOD,     HI_WOOD),
852.  WAND("nothing",        "oak",      25, 100, 0, IMMEDIATE, WOOD,     HI_WOOD),
853.  WAND("striking",       "ebony",    75, 150, 1, IMMEDIATE, WOOD,     HI_WOOD),
854.  WAND("make invisible", "marble",   45, 150, 1, IMMEDIATE, MINERAL,  HI_MINERAL),
855.  WAND("slow monster",   "tin",      50, 150, 1, IMMEDIATE, METAL,    HI_METAL),
856.  WAND("speed monster",  "brass",    50, 150, 1, IMMEDIATE, COPPER,   HI_COPPER),
857.  WAND("undead turning", "copper",   50, 150, 1, IMMEDIATE, COPPER,   HI_COPPER),
858.  WAND("polymorph",      "silver",   45, 200, 1, IMMEDIATE, SILVER,   HI_SILVER),
859.  WAND("cancellation",   "platinum", 45, 200, 1, IMMEDIATE, PLATINUM, CLR_WHITE),
860.  WAND("teleportation",  "iridium",  45, 200, 1, IMMEDIATE, METAL,    CLR_BRIGHT_CYAN),
861.  WAND("opening",        "zinc",     25, 150, 1, IMMEDIATE, METAL,    HI_METAL),
862.  WAND("locking",        "aluminum", 25, 150, 1, IMMEDIATE, METAL,    HI_METAL),
863.  WAND("probing",        "uranium",  30, 150, 1, IMMEDIATE, METAL,    HI_METAL),
864.  WAND("digging",        "iron",     55, 150, 1, RAY,       IRON,     HI_METAL),
865.  WAND("magic missile",  "steel",    50, 150, 1, RAY,       IRON,     HI_METAL),
866.  WAND("fire",           "hexagonal",40, 175, 1, RAY,       IRON,     HI_METAL),
867.  WAND("cold",           "short",    40, 175, 1, RAY,       IRON,     HI_METAL),
868.  WAND("sleep",          "runed",    50, 175, 1, RAY,       IRON,     HI_METAL),
869.  WAND("death",          "long",      5, 500, 1, RAY,       IRON,     HI_METAL),
870.  WAND("lightning",      "curved",   40, 175, 1, RAY,       IRON,     HI_METAL),
871.  WAND((char *)0,        "forked",    0, 150, 1, 0,         WOOD,     HI_WOOD),
872.  WAND((char *)0,        "spiked",    0, 150, 1, 0,         IRON,     HI_METAL),
873.  WAND((char *)0,        "jeweled",   0, 150, 1, 0,         IRON,     HI_MINERAL),
874.  #undef WAND
875.  
876.  /* coins ... - so far, gold is all there is */
877.  #define COIN(name,prob,metal) OBJECT( \
878.  		OBJ(name,(char *)0), BITS(0,1,0,0,0,0,0,0,0,0,0,P_NONE,metal), 0, \
879.  		GOLD_CLASS, prob, 0, 1, 0, 0, 0, 0, 0, 0, HI_GOLD )
880.  	COIN("gold piece",      1000, GOLD),
881.  #undef COIN
882.  
883.  /* gems ... - includes stones and rocks but not boulders */
884.  #define GEM(name,desc,prob,wt,gval,nutr,mohs,glass,color) OBJECT( \
885.  	    OBJ(name,desc), \
886.  	    BITS(0,1,0,0,0,0,0,0,0,HARDGEM(mohs),0,-P_SLING,glass), 0, \
887.  	    GEM_CLASS, prob, 0, 1, gval, 3, 3, 0, 0, nutr, color )
888.  #define ROCK(name,desc,kn,prob,wt,gval,sdam,ldam,mgc,nutr,mohs,glass,color) OBJECT( \
889.  	    OBJ(name,desc), \
890.  	    BITS(kn,1,0,0,mgc,0,0,0,0,HARDGEM(mohs),0,-P_SLING,glass), 0, \
891.  	    GEM_CLASS, prob, 0, wt, gval, sdam, ldam, 0, 0, nutr, color )
892.  GEM("dilithium crystal", "white",      2,  1, 4500, 15,  5, GEMSTONE, CLR_WHITE),
893.  GEM("diamond", "white",                3,  1, 4000, 15, 10, GEMSTONE, CLR_WHITE),
894.  GEM("ruby", "red",                     4,  1, 3500, 15,  9, GEMSTONE, CLR_RED),
895.  GEM("jacinth", "orange",               3,  1, 3250, 15,  9, GEMSTONE, CLR_ORANGE),
896.  GEM("sapphire", "blue",                4,  1, 3000, 15,  9, GEMSTONE, CLR_BLUE),
897.  GEM("black opal", "black",             3,  1, 2500, 15,  8, GEMSTONE, CLR_BLACK),
898.  GEM("emerald", "green",                5,  1, 2500, 15,  8, GEMSTONE, CLR_GREEN),
899.  GEM("turquoise", "green",              6,  1, 2000, 15,  6, GEMSTONE, CLR_GREEN),
900.  GEM("citrine", "yellow",               4,  1, 1500, 15,  6, GEMSTONE, CLR_YELLOW),
901.  GEM("aquamarine", "green",             6,  1, 1500, 15,  8, GEMSTONE, CLR_GREEN),
902.  GEM("amber", "yellowish brown",        8,  1, 1000, 15,  2, GEMSTONE, CLR_BROWN),
903.  GEM("topaz", "yellowish brown",       10,  1,  900, 15,  8, GEMSTONE, CLR_BROWN),
904.  GEM("jet", "black",                    6,  1,  850, 15,  7, GEMSTONE, CLR_BLACK),
905.  GEM("opal", "white",                  12,  1,  800, 15,  6, GEMSTONE, CLR_WHITE),
906.  GEM("chrysoberyl", "yellow",           8,  1,  700, 15,  5, GEMSTONE, CLR_YELLOW),
907.  GEM("garnet", "red",                  12,  1,  700, 15,  7, GEMSTONE, CLR_RED),
908.  GEM("amethyst", "violet",             14,  1,  600, 15,  7, GEMSTONE, CLR_MAGENTA),
909.  GEM("jasper", "red",                  15,  1,  500, 15,  7, GEMSTONE, CLR_RED),
910.  GEM("fluorite", "violet",             15,  1,  400, 15,  4, GEMSTONE, CLR_MAGENTA),
911.  GEM("obsidian", "black",               9,  1,  200, 15,  6, GEMSTONE, CLR_BLACK),
912.  GEM("agate", "orange",                12,  1,  200, 15,  6, GEMSTONE, CLR_ORANGE),
913.  GEM("jade", "green",                  10,  1,  300, 15,  6, GEMSTONE, CLR_GREEN),
914.  GEM("worthless piece of white glass", "white",   77, 1, 0, 6, 5, GLASS, CLR_WHITE),
915.  GEM("worthless piece of blue glass", "blue",     77, 1, 0, 6, 5, GLASS, CLR_BLUE),
916.  GEM("worthless piece of red glass", "red",       77, 1, 0, 6, 5, GLASS, CLR_RED),
917.  GEM("worthless piece of yellowish brown glass", "yellowish brown",
918.  						 77, 1, 0, 6, 5, GLASS, CLR_BROWN),
919.  GEM("worthless piece of orange glass", "orange", 76, 1, 0, 6, 5, GLASS, CLR_ORANGE),
920.  GEM("worthless piece of yellow glass", "yellow", 77, 1, 0, 6, 5, GLASS, CLR_YELLOW),
921.  GEM("worthless piece of black glass",  "black",  76, 1, 0, 6, 5, GLASS, CLR_BLACK),
922.  GEM("worthless piece of green glass", "green",   77, 1, 0, 6, 5, GLASS, CLR_GREEN),
923.  GEM("worthless piece of violet glass", "violet", 77, 1, 0, 6, 5, GLASS, CLR_MAGENTA),
924.  
925.  ROCK("luckstone", "gray",	0, 10,  10, 60, 3, 3, 1, 10, 7, MINERAL, CLR_GRAY),
926.  ROCK("loadstone", "gray",	0, 10, 500,  1, 3, 3, 1, 10, 6, MINERAL, CLR_GRAY),
927.  ROCK("flint", "gray",		0, 18,  10,  1, 6, 6, 0, 10, 7, MINERAL, CLR_GRAY),
928.  ROCK("rock", (char *)0,		1,100,  10,  0, 3, 3, 0, 10, 7, MINERAL, CLR_GRAY),
929.  #undef GEM
930.  #undef ROCK
931.  
932.  /* miscellaneous ... */
933.  /* Note: boulders and rocks are not normally created at random; the
934.   * probabilities only come into effect when you try to polymorph them.
935.   * Boulders weigh more than MAX_CARR_CAP; statues use corpsenm to take
936.   * on a specific type and may act as containers (both affect weight).
937.   */
938.  OBJECT(OBJ("boulder",(char *)0), BITS(1,0,0,0,0,0,0,0,1,0,0,P_NONE,MINERAL), 0,
939.  		ROCK_CLASS,   100, 0, 6000,  0, 20, 20, 0, 0, 2000, HI_MINERAL),
940.  OBJECT(OBJ("statue", (char *)0), BITS(1,0,0,1,0,0,0,0,0,0,0,P_NONE,MINERAL), 0,
941.  		ROCK_CLASS,   900, 0, 2500,  0, 20, 20, 0, 0, 2500, CLR_WHITE),
942.  
943.  OBJECT(OBJ("heavy iron ball", (char *)0), BITS(1,0,0,0,0,0,0,0,0,0,WHACK,P_NONE,IRON), 0,
944.  		BALL_CLASS,  1000, 0,  480, 10, 25, 25, 0, 0,  200, HI_METAL),
945.  						/* +d4 when "very heavy" */
946.  OBJECT(OBJ("iron chain", (char *)0), BITS(1,0,0,0,0,0,0,0,0,0,WHACK,P_NONE,IRON), 0,
947.  		CHAIN_CLASS, 1000, 0,  120,  0,  4,  4, 0, 0,  200, HI_METAL),
948.  						/* +1 both l & s */
949.  
950.  OBJECT(OBJ("blinding venom", "splash of venom"),
951.  		BITS(0,1,0,0,0,0,0,1,0,0,0,P_NONE,LIQUID), 0,
952.  		VENOM_CLASS,  500, 0,	 1,  0,  0,  0, 0, 0,	 0, HI_ORGANIC),
953.  OBJECT(OBJ("acid venom", "splash of venom"),
954.  		BITS(0,1,0,0,0,0,0,1,0,0,0,P_NONE,LIQUID), 0,
955.  		VENOM_CLASS,  500, 0,	 1,  0,  6,  6, 0, 0,	 0, HI_ORGANIC),
956.  		/* +d6 small or large */
957.  
958.  /* fencepost, the deadly Array Terminator -- name [1st arg] *must* be NULL */
959.  	OBJECT(OBJ((char *)0,(char *)0), BITS(0,0,0,0,0,0,0,0,0,0,0,P_NONE,0), 0,
960.  		ILLOBJ_CLASS, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
961.  }; /* objects[] */
962.  
963.  #ifndef OBJECTS_PASS_2_
964.  
965.  /* perform recursive compilation for second structure */
966.  #  undef OBJ
967.  #  undef OBJECT
968.  #  define OBJECTS_PASS_2_
969.  #include "objects.c"
970.  
971.  void NDECL(objects_init);
972.  
973.  /* dummy routine used to force linkage */
974.  void
975.  objects_init()
976.  {
977.      return;
978.  }
979.  
980.  #endif	/* !OBJECTS_PASS_2_ */
981.  
982.  /*objects.c*/

Also on Fandom

Random Wiki