| 693 | } |
| 694 | |
| 695 | staticfn void |
| 696 | peffect_hallucination(struct obj *otmp) |
| 697 | { |
| 698 | if (Halluc_resistance) { |
| 699 | gp.potion_nothing++; |
| 700 | return; |
| 701 | } else if (Hallucination) { |
| 702 | gp.potion_nothing++; |
| 703 | } |
| 704 | (void) make_hallucinated(itimeout_incr(HHallucination, |
| 705 | rn1(200, 600 - 300 * bcsign(otmp))), |
| 706 | TRUE, 0L); |
| 707 | if ((otmp->blessed && !rn2(3)) || (!otmp->cursed && !rn2(6))) { |
| 708 | You("perceive yourself..."); |
| 709 | display_nhwindow(WIN_MESSAGE, FALSE); |
| 710 | enlightenment(MAGICENLIGHTENMENT, ENL_GAMEINPROGRESS); |
| 711 | Your("awareness re-normalizes."); |
| 712 | exercise(A_WIS, TRUE); |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | staticfn void |
| 717 | peffect_water(struct obj *otmp) |
no test coverage detected