find a ring in a sink */
| 802 | |
| 803 | /* find a ring in a sink */ |
| 804 | void |
| 805 | sink_backs_up(coordxy x, coordxy y) |
| 806 | { |
| 807 | char buf[BUFSZ]; |
| 808 | |
| 809 | if (!Blind) |
| 810 | Strcpy(buf, "Muddy waste pops up from the drain"); |
| 811 | else if (!Deaf) |
| 812 | Strcpy(buf, "You hear a sloshing sound"); /* Deaf-aware */ |
| 813 | else |
| 814 | Sprintf(buf, "Something splashes you in the %s", body_part(FACE)); |
| 815 | pline("%s%s.", !Deaf ? "Flupp! " : "", buf); |
| 816 | |
| 817 | if (!(levl[x][y].looted & S_LRING)) { /* once per sink */ |
| 818 | if (!Blind) |
| 819 | You_see("a ring shining in its midst."); |
| 820 | (void) mkobj_at(RING_CLASS, x, y, TRUE); |
| 821 | newsym(x, y); |
| 822 | exercise(A_DEX, TRUE); |
| 823 | exercise(A_WIS, TRUE); /* a discovery! */ |
| 824 | levl[x][y].looted |= S_LRING; |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | /*fountain.c*/ |