version 1.38 | | version 1.39 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.38 2003/11/10 05:39:50 mwedel Exp $"; | | * "$Id: gods.c,v 1.39 2004/02/08 17:07:08 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *old_god = NULL; /* old god */ | | object *old_god = NULL; /* old god */ |
treasure *tr; | | treasure *tr; |
object *item, *skop, *next; | | object *item, *skop, *next; |
int i; | | int i,sk_applied; |
| | |
old_god = find_god(determine_god(op)); | | old_god = find_god(determine_god(op)); |
| | |
| | |
skop = give_skill_by_name(op, get_archetype_by_type_subtype(SKILL, SK_PRAYING)->clone.skill); | | skop = give_skill_by_name(op, get_archetype_by_type_subtype(SKILL, SK_PRAYING)->clone.skill); |
} | | } |
| | |
| | sk_applied=QUERY_FLAG(skop,FLAG_APPLIED); /* save skill status */ |
| | |
if(skop->title) { /* get rid of old god */ | | if(skop->title) { /* get rid of old god */ |
new_draw_info_format(NDI_UNIQUE,0,op, | | new_draw_info_format(NDI_UNIQUE,0,op, |
"%s's blessing is withdrawn from you.",skop->title); | | "%s's blessing is withdrawn from you.",skop->title); |
/* The point of this is to really show what abilities the player just lost */ | | /* The point of this is to really show what abilities the player just lost */ |
if (QUERY_FLAG(skop, FLAG_APPLIED)) { | | if (sk_applied) { |
CLEAR_FLAG(skop,FLAG_APPLIED); | | CLEAR_FLAG(skop,FLAG_APPLIED); |
(void) change_abil(op,skop); | | (void) change_abil(op,skop); |
} | | } |
| | |
stop_using_item(op,SHIELD,1); | | stop_using_item(op,SHIELD,1); |
} | | } |
| | |
/* SET_FLAG(skop,FLAG_APPLIED);*/ | | SET_FLAG(skop,FLAG_APPLIED); |
(void) change_abil(op,skop); | | (void) change_abil(op,skop); |
| | |
| | /* return to previous skill status */ |
| | if (!sk_applied) CLEAR_FLAG(skop,FLAG_APPLIED); |
| | |
check_special_prayers (op, new_god); | | check_special_prayers (op, new_god); |
} | | } |
| | |