… | |
… | |
315 | break; |
315 | break; |
316 | } |
316 | } |
317 | |
317 | |
318 | if (!tmp) |
318 | if (!tmp) |
319 | { /* failure--no code found */ |
319 | { /* failure--no code found */ |
320 | new_draw_info (NDI_UNIQUE, 0, caster, "You know the ingredients," " but not the technique. Go learn how to do this recipe."); |
320 | new_draw_info (NDI_UNIQUE, 0, caster, "You know the ingredients, but not the technique. Go learn how to do this recipe."); |
321 | return 0; |
321 | return 0; |
322 | } |
322 | } |
323 | } |
323 | } |
324 | |
324 | |
325 | #ifdef EXTREME_ALCHEMY_DEBUG |
325 | #ifdef EXTREME_ALCHEMY_DEBUG |
… | |
… | |
329 | |
329 | |
330 | if ((item = make_item_from_recipe (cauldron, rp)) != NULL) |
330 | if ((item = make_item_from_recipe (cauldron, rp)) != NULL) |
331 | { |
331 | { |
332 | remove_contents (cauldron->inv, item); |
332 | remove_contents (cauldron->inv, item); |
333 | /* Recalc carrying of the cauldron, in case recipe did not conserve mass */ |
333 | /* Recalc carrying of the cauldron, in case recipe did not conserve mass */ |
334 | sum_weight (cauldron); |
334 | cauldron->update_weight (); |
335 | /* adj lvl, nrof on caster level */ |
335 | /* adj lvl, nrof on caster level */ |
336 | adjust_product (item, ability, rp->yield ? (rp->yield * batches) : batches); |
336 | adjust_product (item, ability, rp->yield ? (rp->yield * batches) : batches); |
337 | if (!item->env && (item = insert_ob_in_ob (item, cauldron)) == NULL) |
337 | if (!item->env && (item = insert_ob_in_ob (item, cauldron)) == NULL) |
338 | { |
338 | { |
339 | new_draw_info (NDI_UNIQUE, 0, caster, "Nothing happened."); |
339 | new_draw_info (NDI_UNIQUE, 0, caster, "Nothing happened."); |