destination dlevel for holes or trapdoors */
| 439 | |
| 440 | /* destination dlevel for holes or trapdoors */ |
| 441 | staticfn void |
| 442 | hole_destination(d_level *dst) |
| 443 | { |
| 444 | int bottom = dng_bottom(&u.uz); |
| 445 | |
| 446 | dst->dnum = u.uz.dnum; |
| 447 | dst->dlevel = dunlev(&u.uz); |
| 448 | while (dst->dlevel < bottom) { |
| 449 | dst->dlevel++; |
| 450 | if (rn2(4)) |
| 451 | break; |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | struct trap * |
| 456 | maketrap(coordxy x, coordxy y, int typ) |
no test coverage detected