forked from gevrik/nethak
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.c
More file actions
367 lines (336 loc) · 6.68 KB
/
Copy pathconst.c
File metadata and controls
367 lines (336 loc) · 6.68 KB
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
#include <sys/types.h>
#include <stdio.h>
#include <time.h>
#include "mud.h"
/* undef these at EOF */
#define AM 95
#define AC 95
#define AT 85
#define AW 85
#define AV 95
#define AD 95
#define AR 90
#define AA 95
/*
* Attribute bonus tables.
*/
const struct str_app_type str_app [26] =
{
{ -5, -4, 0, 0 }, /* 0 */
{ -5, -4, 3, 2 }, /* 1 */
{ -3, -2, 3, 4 },
{ -3, -1, 10, 6 }, /* 3 */
{ -2, -1, 25, 8 },
{ -2, -1, 55, 10 }, /* 5 */
{ -1, 0, 80, 12 },
{ -1, 0, 90, 14 },
{ 0, 0, 100, 16 },
{ 0, 0, 100, 18 },
{ 0, 0, 115, 20 }, /* 10 */
{ 0, 0, 115, 22 },
{ 0, 0, 140, 24 },
{ 0, 0, 140, 26 }, /* 13 */
{ 0, 1, 170, 28 },
{ 1, 1, 170, 30 }, /* 15 */
{ 1, 2, 195, 32 },
{ 2, 3, 220, 34 },
{ 2, 4, 250, 36 }, /* 18 */
{ 3, 5, 400, 38 },
{ 3, 6, 500, 40 }, /* 20 */
{ 4, 7, 600, 42 },
{ 5, 7, 700, 44 },
{ 6, 8, 800, 46 },
{ 8, 10, 900, 48 },
{ 10, 12, 999, 50 } /* 25 */
};
const struct int_app_type int_app [26] =
{
{ 3 }, /* 0 */
{ 5 }, /* 1 */
{ 7 },
{ 8 }, /* 3 */
{ 9 },
{ 10 }, /* 5 */
{ 11 },
{ 12 },
{ 13 },
{ 15 },
{ 17 }, /* 10 */
{ 19 },
{ 22 },
{ 25 },
{ 28 },
{ 31 }, /* 15 */
{ 34 },
{ 37 },
{ 40 }, /* 18 */
{ 44 },
{ 49 }, /* 20 */
{ 55 },
{ 60 },
{ 70 },
{ 85 },
{ 99 } /* 25 */
};
const struct wis_app_type wis_app [26] =
{
{ 0 }, /* 0 */
{ 0 }, /* 1 */
{ 0 },
{ 0 }, /* 3 */
{ 0 },
{ 1 }, /* 5 */
{ 1 },
{ 1 },
{ 1 },
{ 2 },
{ 2 }, /* 10 */
{ 2 },
{ 2 },
{ 2 },
{ 2 },
{ 3 }, /* 15 */
{ 3 },
{ 4 },
{ 5 }, /* 18 */
{ 5 },
{ 5 }, /* 20 */
{ 6 },
{ 6 },
{ 6 },
{ 6 },
{ 7 } /* 25 */
};
//const struct dex_app_type dex_app [26] =
//{
// { 60 }, /* 0 */
// { 50 }, /* 1 */
// { 50 },
// { 40 },
// { 30 },
// { 20 }, /* 5 */
// { 10 },
// { 0 },
// { 0 },
// { 0 },
// { 0 }, /* 10 */
// { 0 },
// { 0 },
// { 0 },
// { 0 },
// { - 10 }, /* 15 */
// { - 15 },
// { - 20 },
// { - 30 },
// { - 40 },
// { - 50 }, /* 20 */
// { - 60 },
// { - 75 },
// { - 90 },
// { -105 },
// { -120 } /* 25 */
//};
const struct dex_app_type dex_app [26] =
{
{ 6 }, /* 0 */
{ 5 }, /* 1 */
{ 5 },
{ 4 },
{ 3 },
{ 2 }, /* 5 */
{ 1 },
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 10 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ - 1 }, /* 15 */
{ - 1 },
{ - 2 },
{ - 3 },
{ - 4 },
{ - 5 }, /* 20 */
{ - 6 },
{ - 7 },
{ - 9 },
{ -10 },
{ -12 } /* 25 */
};
const struct con_app_type con_app [26] =
{
{ -4, 20, 95 }, /* 0 */
{ -3, 25, 95 }, /* 1 */
{ -2, 30, 95 },
{ -2, 35, 95 }, /* 3 */
{ -1, 40, 90 },
{ -1, 45, 85 }, /* 5 */
{ -1, 50, 80 },
{ 0, 55, 75 },
{ 0, 60, 70 },
{ 0, 65, 65 },
{ 0, 70, 60 }, /* 10 */
{ 0, 75, 55 },
{ 0, 80, 50 },
{ 0, 85, 50 },
{ 0, 88, 50 },
{ 1, 90, 45 }, /* 15 */
{ 2, 95, 40 },
{ 2, 97, 35 },
{ 3, 99, 30 }, /* 18 */
{ 3, 99, 25 },
{ 4, 99, 20 }, /* 20 */
{ 4, 99, 20 },
{ 5, 99, 10 },
{ 6, 99, 10 },
{ 7, 99, 5 },
{ 8, 99, 5 } /* 25 */
};
const struct cha_app_type cha_app [26] =
{
{ - 60 }, /* 0 */
{ - 50 }, /* 1 */
{ - 50 },
{ - 40 },
{ - 30 },
{ - 20 }, /* 5 */
{ - 10 },
{ - 5 },
{ - 1 },
{ 0 },
{ 0 }, /* 10 */
{ 0 },
{ 0 },
{ 0 },
{ 1 },
{ 5 }, /* 15 */
{ 10 },
{ 20 },
{ 30 },
{ 40 },
{ 50 }, /* 20 */
{ 60 },
{ 70 },
{ 80 },
{ 90 },
{ 99 } /* 25 */
};
/* Have to fix this up - not exactly sure how it works (Scryn) */
const struct lck_app_type lck_app [26] =
{
{ 60 }, /* 0 */
{ 50 }, /* 1 */
{ 50 },
{ 40 },
{ 30 },
{ 20 }, /* 5 */
{ 10 },
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 10 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ - 10 }, /* 15 */
{ - 15 },
{ - 20 },
{ - 30 },
{ - 40 },
{ - 50 }, /* 20 */
{ - 60 },
{ - 75 },
{ - 90 },
{ -105 },
{ -120 } /* 25 */
};
const struct frc_app_type frc_app [26] =
{
{ 0 }, /* 0 */
{ 0 }, /* 1 */
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 5 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 10 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 15 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 }, /* 20 */
{ 0 },
{ 0 },
{ 0 },
{ 0 },
{ 0 } /* 25 */
};
/*
* Liquid properties.
* Used in #OBJECT section of area file.
*/
const struct liq_type liq_table [LIQ_MAX] =
{
{ "water", "clear", { 0, 1, 10 } }, /* 0 */
{ "beer", "amber", { 3, 2, 5 } },
{ "wine", "rose", { 5, 2, 5 } },
{ "ale", "brown", { 2, 2, 5 } },
{ "dark ale", "dark", { 1, 2, 5 } },
{ "whisky", "golden", { 6, 1, 4 } }, /* 5 */
{ "lemonade", "pink", { 0, 1, 8 } },
{ "firebreather", "boiling", { 10, 0, 0 } },
{ "local specialty", "everclear", { 3, 3, 3 } },
{ "slime mold juice", "green", { 0, 4, -8 } },
{ "milk", "white", { 0, 3, 6 } }, /* 10 */
{ "tea", "tan", { 0, 1, 6 } },
{ "coffee", "black", { 0, 1, 6 } },
{ "blood", "red", { 0, 2, -1 } },
{ "salt water", "clear", { 0, 1, -2 } },
{ "cola", "cherry", { 0, 1, 5 } }, /* 15 */
{ "mead", "honey color", { 4, 2, 5 } }, /* 16 */
{ "grog", "thick brown", { 3, 2, 5 } }, /* 17 */
{ "milkshake", "creamy", { 0, 8, 5 } } /* 18 */
};
char * const attack_table [13] =
{
"attack",
"attack", "attack", "attack", "attack", "attack",
"attack", "attack", "attack", "attack", "attack",
"attack", "attack"
};
/*
char * const attack_table [13] =
{
"hit",
"slice", "stab", "slash", "whip", "claw",
"blast", "pound", "crush", "shot", "bite",
"pierce", "suction"
};
*/
/*
* The skill and spell table.
* Slot numbers must never be changed as they appear in #OBJECTS sections.
*/
#define SLOT(n) n
#define LI LEVEL_IMMORTAL
#undef AM
#undef AC
#undef AT
#undef AW
#undef AV
#undef AD
#undef AR
#undef AA
#undef LI
// no need for Neuro