version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.47 2005/08/10 13:38:31 ryo_saeba Exp $"; | | * "$Id: gods.c,v 1.48 2005/08/12 08:18:59 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/** | | /** |
* Returns the id of specified god. | | * Returns the id of specified god. |
*/ | | */ |
int lookup_god_by_name(char *name) { | | int lookup_god_by_name(const char *name) { |
int godnr=-1,nmlen = strlen(name); | | int godnr=-1,nmlen = strlen(name); |
| | |
if(name && strcmp(name,"none")) { | | if(name && strcmp(name,"none")) { |
| | |
/** | | /** |
* Returns pointer to specified god's object through pntr_to_god_obj.. | | * Returns pointer to specified god's object through pntr_to_god_obj.. |
*/ | | */ |
object *find_god(char *name) { | | object *find_god(const char *name) { |
object *god=NULL; | | object *god=NULL; |
| | |
if(name) { | | if(name) { |
| | |
* In the case of an NPC, if they have no god, we give them a random one. -b.t. | | * In the case of an NPC, if they have no god, we give them a random one. -b.t. |
*/ | | */ |
| | |
char *determine_god(object *op) { | | const char *determine_god(object *op) { |
int godnr = -1; | | int godnr = -1; |
| | |
/* spells */ | | /* spells */ |
| | |
* string is the string to print out. | | * string is the string to print out. |
*/ | | */ |
| | |
int worship_forbids_use (object *op, object *exp_obj, uint32 flag, char *string) { | | int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string) { |
| | |
if(QUERY_FLAG(&op->arch->clone,flag)) | | if(QUERY_FLAG(&op->arch->clone,flag)) |
if(QUERY_FLAG(op,flag)!=QUERY_FLAG(exp_obj,flag)) { | | if(QUERY_FLAG(op,flag)!=QUERY_FLAG(exp_obj,flag)) { |