version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_pets_c = | | * static char *rcsid_pets_c = |
* "$Id: pets.c,v 1.42 2006/05/05 08:52:02 ryo_saeba Exp $"; | | * "$Id: pets.c,v 1.43 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* direction the monster should be placed in. | | * direction the monster should be placed in. |
* is_golem is to note that this is a golem spell. | | * is_golem is to note that this is a golem spell. |
*/ | | */ |
object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem ) { | | static object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem) { |
archetype *atmp; | | archetype *atmp; |
object *tmp=NULL, *prev=NULL, *head=NULL; | | object *tmp=NULL, *prev=NULL, *head=NULL; |
| | |
| | |
* This returns NULL if no match was found. | | * This returns NULL if no match was found. |
*/ | | */ |
| | |
object *choose_cult_monster(object *pl, object *god, int summon_level) { | | static object *choose_cult_monster(object *pl, object *god, int summon_level) { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
const char *race; | | const char *race; |
int racenr, mon_nr,i; | | int racenr, mon_nr,i; |
| | |
| | |
/* recursively look through the owner property of objects until the real owner | | /* recursively look through the owner property of objects until the real owner |
is found */ | | is found */ |
object *get_real_owner(object *ob) { | | static object *get_real_owner(object *ob) { |
object *realowner = ob; | | object *realowner = ob; |
| | |
if (realowner == NULL) return NULL; | | if (realowner == NULL) return NULL; |