when a monster deliberately enters a trap, make sure the spot becomes accessible (trap doors and teleporters inside niches are located at secret corridor locations; convert such into normal corridor even if hero doesn't see it happen) */
| 754 | secret corridor locations; convert such into normal corridor even if |
| 755 | hero doesn't see it happen) */ |
| 756 | staticfn void |
| 757 | reveal_trap(struct trap *t, boolean seeit) |
| 758 | { |
| 759 | struct rm *lev = &levl[t->tx][t->ty]; |
| 760 | |
| 761 | if (lev->typ == SCORR) { |
| 762 | lev->typ = CORR, lev->flags = 0; /* set_levltyp(,,CORR) */ |
| 763 | unblock_point(t->tx, t->ty); |
| 764 | } |
| 765 | if (seeit) |
| 766 | seetrap(t); |
| 767 | } |
| 768 | |
| 769 | /* Monsters without the Amulet escape the dungeon and |
| 770 | * are gone for good when they leave up the up stairs. |
no test coverage detected