version 1.41 | | version 1.42 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.41 2001/01/30 05:06:00 peterm Exp $"; | | * "$Id: spell_effect.c,v 1.42 2001/03/07 07:24:30 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
} | | } |
| | |
for(tmp=op->below;tmp;tmp=tmp->below) { | | for(tmp=op->below;tmp;tmp=tmp->below) { |
if(tmp->type==HOLY_ALTAR) { | | |
if(QUERY_FLAG(tmp,FLAG_IS_FLOOR)) break; | | if(QUERY_FLAG(tmp,FLAG_IS_FLOOR)) break; |
| | if(tmp->type==HOLY_ALTAR) { |
| | |
/* We use SK_level here instead of path_level mod because I think | | /* We use SK_level here instead of path_level mod because I think |
* all the gods should give equal chance of re-consecrating altars | | * all the gods should give equal chance of re-consecrating altars |
*/ | | */ |
if(tmp->level > SK_level(op)) { | | if(tmp->level > SK_level(op)) { |
new_draw_info_format(NDI_UNIQUE, 0,op, | | new_draw_info_format(NDI_UNIQUE, 0,op, |
"You are not poweful enough to reconsecrate the altar of %s", tmp->title); | | "You are not poweful enough to reconsecrate the %s", tmp->name); |
| | return 0; |
} else { | | } else { |
/* If we got here, we are consecrating an altar */ | | /* If we got here, we are consecrating an altar */ |
if(tmp->name) free_string(tmp->name); | | if(tmp->name) free_string(tmp->name); |