version 1.30 | | version 1.31 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.30 2000/11/20 00:59:16 peterm Exp $"; | | * "$Id: spell_effect.c,v 1.31 2000/11/24 01:16:01 peterm Exp $"; |
*/ | | */ |
| | |
| | |
| | |
level = MAX(1,SK_level(caster)/2); | | level = MAX(1,SK_level(caster)/2); |
if(RANDOM()%level > tmp->level) { /* successfully induced conflict */ | | if(RANDOM()%level > tmp->level) { /* successfully induced conflict */ |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
SET_FLAG(tmp,FLAG_BERSERK); | | /* SET_FLAG(tmp,FLAG_BERSERK); */ |
if(tmp->name) { | | if(tmp->name) { |
sprintf(buf,"You've clouded %s's mind. He turns on his friends!",tmp->name); | | sprintf(buf,"You've clouded %s's mind. He turns on his friends!",tmp->name); |
new_draw_info(NDI_RED,0,op,buf); | | new_draw_info(NDI_RED,0,op,buf); |