Home | History | Annotate | Download | only in hack

Lines Matching defs:trap

77 	struct trap    *ttmp;
122 struct trap *trap;
157 for (trap = ftrap; trap; trap = trap->ntrap)
158 if (trap->tx == x && trap->ty == y &&
159 !trap->tseen && !rn2(8)) {
161 pline("You find a%s.", traps[trap->ttyp]);
162 if (trap->ttyp == PIERC) {
163 deltrap(trap);
167 trap->tseen = 1;
179 struct trap *trap;
185 for (trap = ftrap; trap; trap = trap->ntrap)
186 if (trap->tx == x && trap->ty == y && trap->tseen) {
188 if ((u.dz < 0) != (!xdnstair && trap->ttyp == TRAPDOOR))
190 pline("That is a%s.", traps[trap->ttyp]);
193 pline("I can't see a trap there.");