… | |
… | |
23 | |
23 | |
24 | /* the contents of this file were create solely by peterm@soda.berkeley.edu |
24 | /* the contents of this file were create solely by peterm@soda.berkeley.edu |
25 | all of the above disclaimers apply. */ |
25 | all of the above disclaimers apply. */ |
26 | |
26 | |
27 | #include <global.h> |
27 | #include <global.h> |
28 | #ifndef __CEXTRACT__ |
|
|
29 | # include <sproto.h> |
28 | #include <sproto.h> |
30 | #endif |
|
|
31 | #include <spells.h> |
29 | #include <spells.h> |
32 | #include <errno.h> |
30 | #include <errno.h> |
33 | #ifdef sequent |
|
|
34 | |
31 | |
35 | /* stoopid sequent includes don't do this like they should */ |
|
|
36 | extern char *sys_errlist[]; |
|
|
37 | extern int sys_nerr; |
|
|
38 | #endif |
|
|
39 | extern char **classname; |
32 | extern char **classname; |
40 | extern object *objects; |
33 | extern object *objects; |
41 | |
|
|
42 | |
|
|
43 | |
34 | |
44 | /* name of the person to resurrect and which spell was used |
35 | /* name of the person to resurrect and which spell was used |
45 | * to resurrect |
36 | * to resurrect |
46 | */ |
37 | */ |
47 | static int |
38 | static int |
… | |
… | |
55 | char buf[MAX_BUF]; |
46 | char buf[MAX_BUF]; |
56 | char buf2[MAX_BUF]; |
47 | char buf2[MAX_BUF]; |
57 | const char *race = NULL; |
48 | const char *race = NULL; |
58 | sint64 exp; |
49 | sint64 exp; |
59 | int Con; |
50 | int Con; |
60 | |
|
|
61 | |
51 | |
62 | /* reincarnation, which changes the race */ |
52 | /* reincarnation, which changes the race */ |
63 | if (spell->race) |
53 | if (spell->race) |
64 | { |
54 | { |
65 | treasurelist *tl = find_treasurelist (spell->race); |
55 | treasurelist *tl = find_treasurelist (spell->race); |