-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitm.c
192 lines (188 loc) · 5.31 KB
/
itm.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* =============================================================================
* PROGRAM: ularn
* FILENAME: itm.c
*
* DESCRIPTION:
* This module contains the item number definitions and the names of all items
* in the game.
*
* =============================================================================
* EXPORTED VARIABLES
*
* objnamelist : The character to display on the map for each object
* objtilelist : The gfx tile to display on the map for each object
* objectname : The text name for each object.
*
* =============================================================================
* EXPORTED FUNCTIONS
*
* None
*
* =============================================================================
*/
#include "itm.h"
/*
* Character code for each item
*/
char objnamelist[OCOUNT] = {
' ', ' ',
/* Dungeon features */
'A', 'T', 'T', 'T', 'P', '%', '~', 'F', '&', '^', '=', '%', '~', 'f', 'O',
'D', '#',
/* gold piles */
'*', '*', '*', '*',
/* eye of larn */
'o',
/* armour */
'[', '[', '[', '[', '[', '[', '[', '[', '[', '[',
/* weapons */
'(', '(', '(', '(', '(', '(', '(', '(', '(', '(', '(', '(',
/* rings */
'=', '=', '=', '=', '=', '=', '=', '=',
/* magic items */
')', '?', '!', 'B', 'C', 'o', '"', 'o', '.', '.', '.', '.', '.', '.', '/',
'/', '"',
/* gems */
'<', '<', '<', '<',
/* buildings/entrances */
'M', 'S', '$', '$', 'E', 'V', 'V', 'H', 'T', 'L',
/* traps */
' ', '^', ' ', '^', '^', ' ', ' ',
/* misc */
's', 'c', 'u'};
int objtilelist[OCOUNT] = {175, 191,
/* Dungeon features */
64, 65, 142, 144, 67, 68, 69, 70, 71, 72, 74, 76, 77,
80, 82, 83, 84,
/* Gold piles */
81, 133, 134, 135,
/* The eye of larn */
85,
/* armour */
86, 87, 88, 123, 124, 125, 126, 127, 131, 155,
/* weapons */
89, 90, 91, 92, 93, 94, 120, 121, 122, 128, 153, 154,
/* rings */
95, 96, 97, 98, 99, 100, 101, 102,
/* magic items */
103, 104, 105, 106, 107, 66, 108, 109, 110, 111, 112,
148, 149, 150, 151, 152, 162,
/* gems */
113, 114, 115, 116,
/* buildings/entrances */
73, 75, 79, 78, 117, 118, 119, 132, 140, 145,
/* Traps */
191, 129, 191, 136, 138, 191, 191,
/* Misc */
143, 146, 147};
/*
* Description for each item
*/
char *objectname[OCOUNT] = {
"",
"",
/* Dungeon features */
"a holy altar",
"a handsome, jewel-encrusted throne",
"a handsome, jewel-encrusted throne",
"a massive throne",
"a pit",
"a staircase leading upwards",
"an elevator going up",
"a bubbling fountain",
"a great marble statue",
"a teleport trap",
"a mirror",
"a staircase going down",
"an elevator going down",
"a dead fountain",
"an open door",
"a closed door",
"a wall",
/* Gold piles */
"gold",
"gold",
"gold",
"gold",
/* The eye of larn */
"The Eye of Larn",
/* armour */
"plate mail",
"chain mail",
"leather armor",
"ring mail",
"studded leather armor",
"splint mail",
"plate armor",
"stainless plate armor",
"a shield",
"elven chain",
/* weapons */
"a sword of slashing",
"Bessman's flailing hammer",
"a sunsword",
"a two-handed sword",
"a spear",
"a dagger",
"a battle axe",
"a longsword",
"a flail",
"a lance of death",
"the Vorpal Blade",
"Slayer",
/* rings */
"a ring of extra regeneration",
"a ring of regeneration",
"a ring of protection",
"an energy ring",
"a ring of dexterity",
"a ring of strength",
"a ring of cleverness",
"a ring of increase damage",
/* magic items */
"a belt of striking",
"a magic scroll",
"a magic potion",
"a book",
"a chest",
"an orb of enlightenment",
"an amulet of invisibility",
"an orb of dragon slaying",
"a scarab of negate spirit",
"a cube of undead control",
"a device of theft-prevention",
"a brass lamp",
"The Hand of Fear",
"The Talisman of the Sphere",
"a wand of wonder",
"a staff of power",
"an amulet of life preservation",
/* gems */
"a brilliant diamond",
"a ruby",
"an enchanting emerald",
"a sparkling sapphire",
/* Buildings.entrances */
"the College of Larn",
"the DND store",
"the 8th branch of the Bank of Larn",
"the Bank of Larn",
"the dungeon entrance",
"a volcanic shaft leaning downward",
"the base of a volcanic shaft",
"your home",
"the local trading post",
"the Larn Revenue Service",
/* traps */
"an arrow trap",
"an arrow trap",
"a dart trap",
"a dart trap",
"a trapdoor",
"a trapdoor",
"a teleport trap",
/* misc */
"a sphere of annihilation",
"a fortune cookie",
"a golden urn",
};