version 1.5 | | version 1.6 |
---|
| | |
return; | | return; |
} /* End of WIZ alchemy */ | | } /* End of WIZ alchemy */ |
| | |
#ifdef ALCHEMY_DEBUG | | |
LOG(llevDebug,"base success chance = %f\n",success_chance); | | |
#endif | | |
| | |
/* find the recipe */ | | /* find the recipe */ |
for(rp = fl->items;rp!=NULL && (formula % rp->index)!=0;rp=rp->next); | | for(rp = fl->items;rp!=NULL && (formula % rp->index)!=0;rp=rp->next); |
| | |
| | |
object * attempt_recipe(object *caster, object *cauldron,int ability, recipe *rp, int nbatches) { | | object * attempt_recipe(object *caster, object *cauldron,int ability, recipe *rp, int nbatches) { |
object *item=NULL; | | object *item=NULL; |
/* this should be passed to this fctn, not too effiecent cpu use this way */ | | /* this should be passed to this fctn, not too effiecent cpu use this way */ |
int /*numb=numb_ob_inside(cauldron),unused?*/ batches=abs(nbatches); | | int batches=abs(nbatches); |
| | |
if(rp->keycode) /* code required for this recipe, search the caster */ | | if(rp->keycode) /* code required for this recipe, search the caster */ |
{ object *tmp; | | { object *tmp; |