version 1.13 | | version 1.14 |
---|
| | |
/* | | /* |
* static char *rcsid_alchemy_c = | | * static char *rcsid_alchemy_c = |
* "$Id: alchemy.c,v 1.13 2002/11/11 08:59:09 garbled Exp $"; | | * "$Id: alchemy.c,v 1.14 2002/11/13 00:26:13 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
alchemy_failure_effect(op,cauldron,rp,level-5); | | alchemy_failure_effect(op,cauldron,rp,level-5); |
return; | | return; |
| | |
} | | } else if (level<50) { /* MINOR EXPLOSION/FIREBALL */ |
/* #ifdef SPELL_FAILURE_EFFECTS */ | | |
else if (level<50) { /* MINOR EXPLOSION/FIREBALL */ | | |
object *tmp; | | object *tmp; |
remove_contents(cauldron->inv,NULL); | | remove_contents(cauldron->inv,NULL); |
switch(rndm(0, 2)) { | | switch(rndm(0, 2)) { |
| | |
cauldron->name); | | cauldron->name); |
return; | | return; |
| | |
} | | } else if (level<100) { /* WHAMMY the CAULDRON */ |
/* #endif SPELL_FAILURE_EFFECTS */ | | |
else if (level<100) { /* WHAMMY the CAULDRON */ | | |
if(!QUERY_FLAG(cauldron,FLAG_CURSED)) | | if(!QUERY_FLAG(cauldron,FLAG_CURSED)) |
SET_FLAG(cauldron,FLAG_CURSED); | | SET_FLAG(cauldron,FLAG_CURSED); |
else cauldron->magic--; | | else cauldron->magic--; |
| | |
"Your %s becomes darker.",cauldron->name); | | "Your %s becomes darker.",cauldron->name); |
return; | | return; |
| | |
} | | } else if (level<110) { /* SUMMON EVIL MONSTERS */ |
/* #ifdef SPELL_FAILURE_EFFECTS */ | | |
else if (level<110) { /* SUMMON EVIL MONSTERS */ | | |
object *tmp=get_random_mon(level/5); | | object *tmp=get_random_mon(level/5); |
| | |
remove_contents(cauldron->inv,NULL); | | remove_contents(cauldron->inv,NULL); |
| | |
roll--; | | roll--; |
} | | } |
return; | | return; |
} | | } else if (level==151) { /* CREATE RANDOM ARTIFACT */ |
| | |
/* #endif SPELL_FAILURE_EFFECTS */ | | |
else if (level==151) { /* CREATE RANDOM ARTIFACT */ | | |
object *tmp; | | object *tmp; |
/* this is meant to be better than prior possiblity, | | /* this is meant to be better than prior possiblity, |
* in this one, we allow *any* valid alchemy artifact | | * in this one, we allow *any* valid alchemy artifact |
| | |
} | | } |
} | | } |
return; | | return; |
} | | } else if (level<200) { /* MANA STORM - watch out!! */ |
/* #ifdef SPELL_FAILURE_EFFECTS */ | | |
else if (level<200) { /* MANA STORM - watch out!! */ | | |
new_draw_info(NDI_UNIQUE,0,op,"You unwisely release potent forces!"); | | new_draw_info(NDI_UNIQUE,0,op,"You unwisely release potent forces!"); |
remove_contents (cauldron->inv,NULL); | | remove_contents (cauldron->inv,NULL); |
cast_mana_storm(op,level); | | cast_mana_storm(op,level); |
return; | | return; |
} | | } |
/* #endif SPELL_FAILURE_EFFECTS */ | | |
} | | } |
| | |
| | |