version 1.58 | | version 1.59 |
---|
| | |
/* | | /* |
* static char *rcsid_gods_c = | | * static char *rcsid_gods_c = |
* "$Id: gods.c,v 1.58 2006/01/07 18:56:51 akirschbaum Exp $"; | | * "$Id: gods.c,v 1.59 2006/04/06 21:18:35 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
angry=3; | | angry=3; |
new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl, | | new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl, |
"Foul Priest! %s punishes you!",pl_god->name); | | "Foul Priest! %s punishes you!",pl_god->name); |
tmp=get_archetype(LOOSE_MANA); | | tmp=create_archetype(LOOSE_MANA); |
cast_magic_storm(pl,tmp, pl_god->level+20); | | cast_magic_storm(pl,tmp, pl_god->level+20); |
} else | | } else |
new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl, | | new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,pl, |
| | |
new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,op,"Fool! %s detests your kind!", | | new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,op,"Fool! %s detests your kind!", |
new_god->name); | | new_god->name); |
if(random_roll(0, op->level-1, op, PREFER_LOW)-5>0) { | | if(random_roll(0, op->level-1, op, PREFER_LOW)-5>0) { |
object *tmp = get_archetype(LOOSE_MANA); | | object *tmp = create_archetype(LOOSE_MANA); |
cast_magic_storm(op,tmp, new_god->level+10); | | cast_magic_storm(op,tmp, new_god->level+10); |
} | | } |
return; | | return; |
| | |
/* Follower lacks the required grace for the following | | /* Follower lacks the required grace for the following |
* treasure list items. */ | | * treasure list items. */ |
| | |
tmp = get_archetype(HOLY_POSSESSION); | | tmp = create_archetype(HOLY_POSSESSION); |
cast_change_ability(op, op, tmp, 0, 1); | | cast_change_ability(op, op, tmp, 0, 1); |
free_object(tmp); | | free_object(tmp); |
return; | | return; |
| | |
object *tmp; | | object *tmp; |
int success; | | int success; |
| | |
tmp = get_archetype_by_object_name(item->slaying); | | tmp = create_archetype_by_object_name(item->slaying); |
| | |
success = cast_heal (op, op, tmp, 0); | | success = cast_heal (op, op, tmp, 0); |
free_object(tmp); | | free_object(tmp); |
| | |
change_exp(op, -random_roll(0, loss*angry-1, op, PREFER_LOW), | | change_exp(op, -random_roll(0, loss*angry-1, op, PREFER_LOW), |
skop?skop->skill:"none", SK_SUBTRACT_SKILL_EXP); | | skop?skop->skill:"none", SK_SUBTRACT_SKILL_EXP); |
if(random_roll(0, angry, op, PREFER_LOW)) { | | if(random_roll(0, angry, op, PREFER_LOW)) { |
object *tmp = get_archetype(LOOSE_MANA); | | object *tmp = create_archetype(LOOSE_MANA); |
cast_magic_storm(op,tmp,op->level+(angry*3)); | | cast_magic_storm(op,tmp,op->level+(angry*3)); |
} | | } |
new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,op, | | new_draw_info_format(NDI_UNIQUE|NDI_NAVY,0,op, |