From: Michael Meyer Date: Wed, 11 Aug 2021 00:14:27 +0000 (-0400) Subject: Permit blind feeling for objects on trapdoor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a326f622f6ed1f9f2bd5ac6f1eb0998a99417a88;p=nethack Permit blind feeling for objects on trapdoor Items on a trap door or on the edge of a hole are accessible (they can be picked up, kicked, etc), but these locations were considered inaccessible for purposes of feeling the ground for objects while blind. --- diff --git a/src/invent.c b/src/invent.c index 50c8b755b..66686b900 100644 --- a/src/invent.c +++ b/src/invent.c @@ -3431,7 +3431,8 @@ look_here(int obj_cnt, /* obj_cnt > 0 implies that autopickup is in progress */ } if (dfeature && !drift && !strcmp(dfeature, surface(u.ux, u.uy))) dfeature = 0; /* ice already identified */ - if (!can_reach_floor(TRUE)) { + trap = t_at(u.ux, u.uy); + if (!can_reach_floor(trap && is_pit(trap->ttyp))) { pline("But you can't reach it!"); return 0; }