* zappable - returns 1 if zap is available, 0 otherwise. * it removes a charge from the wand if zappable. * added by GAN 11/03/86 */
| 2511 | * added by GAN 11/03/86 |
| 2512 | */ |
| 2513 | int |
| 2514 | zappable(struct obj *wand) |
| 2515 | { |
| 2516 | if (wand->spe < 0 || (wand->spe == 0 && rn2(WAND_WREST_CHANCE))) |
| 2517 | return 0; |
| 2518 | if (wand->spe == 0) |
| 2519 | You("wrest one last charge from the worn-out wand."); |
| 2520 | wand->spe--; |
| 2521 | return 1; |
| 2522 | } |
| 2523 | |
| 2524 | void |
| 2525 | do_enlightenment_effect(void) |
no test coverage detected