version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_resurrection_c = | | * static char *rcsid_resurrection_c = |
* "$Id: resurrection.c,v 1.16 2005/09/04 16:58:13 akirschbaum Exp $"; | | * "$Id: resurrection.c,v 1.17 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
extern char **classname; | | extern char **classname; |
extern object *objects; | | extern object *objects; |
| | |
| | static int resurrection_fails(int levelcaster,int leveldead); |
| | |
| | |
/* name of the person to resurrect and which spell was used | | /* name of the person to resurrect and which spell was used |
| | |
} | | } |
| | |
| | |
int resurrection_fails(int levelcaster,int leveldead) | | static int resurrection_fails(int levelcaster,int leveldead) |
{ | | { |
int chance=9; | | int chance=9; |
/* scheme: equal in level, 50% success. | | /* scheme: equal in level, 50% success. |
| | |
| | |
| | |
| | |
void dead_character(const char *name) { | | static void dead_character(const char *name) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
char buf2[MAX_BUF]; | | char buf2[MAX_BUF]; |
| | |
| | |
} | | } |
| | |
| | |
int dead_player_exists(const char *name) { | | static int dead_player_exists(const char *name) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| | |
sprintf(buf,"%s/%s/%s/%s",settings.localdir,settings.playerdir,name, name); | | sprintf(buf,"%s/%s/%s/%s",settings.localdir,settings.playerdir,name, name); |