version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.18 2001/04/02 05:55:36 mwedel Exp $"; | | * "$Id: c_object.c,v 1.19 2001/04/06 05:25:26 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
buf[0]='\0'; | | buf[0]='\0'; |
switch(tmp->type) { | | switch(tmp->type) { |
case SPELLBOOK: | | case SPELLBOOK: |
if(QUERY_FLAG(tmp, FLAG_IDENTIFIED) && tmp->stats.sp > 0 && tmp->stats.sp <= NROFREALSPELLS ) { | | if(QUERY_FLAG(tmp, FLAG_IDENTIFIED) && tmp->stats.sp >= 0 && tmp->stats.sp <= NROFREALSPELLS ) { |
if(!strcmp(tmp->arch->name,"cleric_book")) | | if(!strcmp(tmp->arch->name,"cleric_book")) |
sprintf(buf,"%s is a %d level prayer.", | | sprintf(buf,"%s is a %d level prayer.", |
spells[tmp->stats.sp].name,spells[tmp->stats.sp].level); | | spells[tmp->stats.sp].name,spells[tmp->stats.sp].level); |